Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document fit! #88

Merged
merged 4 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "HiddenMarkovModels"
uuid = "84ca31d5-effc-45e0-bfda-5a68cd981f47"
authors = ["Guillaume Dalle"]
version = "0.4.0"
version = "0.4.1"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand Down
4 changes: 4 additions & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
```@meta
CollapsedDocStrings = true
```

# API reference

```@docs
Expand Down
5 changes: 4 additions & 1 deletion src/types/abstract_hmm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ function obs_logdensities!(
end

"""
$(SIGNATURES)
StatsAPI.fit!(
hmm, fb_storage::ForwardBackwardStorage,
obs_seq, [control_seq]; seq_ends,
)
Update `hmm` in-place based on information generated during forward-backward.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/fit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Default behavior:
Override for Distributions.jl (in the package extension)
dists[i] = fit(eltype(dists), x, w)
dists[i] = fit(eltype(dists), turn_into_vector(x), w)
"""
function fit_in_sequence!(dists::AbstractVector, i::Integer, x, w)
fit!(dists[i], x, w)
Expand Down
Loading