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

Function print_stat_tree not defined for KMeans #151

Closed
alesasse opened this issue Jul 24, 2019 · 0 comments
Closed

Function print_stat_tree not defined for KMeans #151

alesasse opened this issue Jul 24, 2019 · 0 comments

Comments

@alesasse
Copy link
Contributor

Hi Josh,
thank you for the great work!

I've spotted a micro-bug trying to run the example in the KMeans docstring. Executing the following code

x = [randn() + 5i for i in rand(Bool, 10^6), j in 1:2]
o = fit!(KMeans(2, 2), x)

returns UndefVarError: print_stat_tree not defined.

I think that the error is in stats/stats.jl, function Base.show(io::IO, o::KMeans). Comparing with line 278 in the same file, I think one simply has to add OnlineStatsBase. in line 393.

Thanks.

@joshday joshday closed this as completed Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants