Skip to content

Commit 8801d17

Browse files
committed
dont make UnivariateFinite a subtype of anything
1 parent c785a8a commit 8801d17

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/types.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,14 @@ same size as the array.
129129

130130
# # TYPES - PLAIN AND ARRAY
131131

132-
# extend Ditributions type hiearchy to account for non-euclidean
133-
# supports:
134-
abstract type Categorical{S<:Finite} <: Dist.ValueSupport end
135-
136-
# not exported:
137-
const _UnivariateFinite_{S} =
138-
Dist.Distribution{Dist.Univariate,Categorical{S}}
139-
140132
# R - reference type <: Unsigned
141133
# V - type of class labels (eg, Char in `categorical(['a', 'b'])`)
142134
# P - raw probability type
143135
# S - scitype of samples
144136

145137
# Note that the keys of `prob_given_ref` need not exhaust all the
146138
# refs of all classes but will be ordered (LittleDicts preserve order)
147-
struct UnivariateFinite{S,V,R,P} <: _UnivariateFinite_{S}
139+
struct UnivariateFinite{S,V,R,P}
148140
scitype::Type{S}
149141
decoder::CategoricalDecoder{V,R}
150142
prob_given_ref::LittleDict{R,P,Vector{R}, Vector{P}}

0 commit comments

Comments
 (0)