Skip to content

Commit 411bc18

Browse files
authored
Merge pull request #59 from alan-turing-institute/dev
fix univariatefinite doc string #53
2 parents 514f875 + d8d84f3 commit 411bc18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data_utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ julia> pdf(d, :y) # allowed as `:y in levels(v)`
388388
0.0
389389
390390
v = categorical([:x, :x, :y, :x, :z, :w])
391-
probs = rand(3, 100)
392-
probs = probs ./ sum(probs, dims=1)
391+
probs = rand(100, 3)
392+
probs = probs ./ sum(probs, dims=2)
393393
julia> UnivariateFinite([:x, :y, :z], probs, pool=v)
394394
100-element UnivariateFiniteVector{Multiclass{4},Symbol,UInt32,Float64}:
395395
UnivariateFinite{Multiclass{4}}(x=>0.194, y=>0.3, z=>0.505)

0 commit comments

Comments
 (0)