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

KMeansModel.KMeansParameter does not has a member '_estimate_k' #162

Closed
YMorisawa opened this issue Dec 26, 2016 · 1 comment
Closed

KMeansModel.KMeansParameter does not has a member '_estimate_k' #162

YMorisawa opened this issue Dec 26, 2016 · 1 comment

Comments

@YMorisawa
Copy link

Platform : MapR 5.1
Package : Sparkling-water-1.6.8.zip
Language : Scala 2.10

Hi. I'm using a sparkling water with scala.
I tried KMeans and met an error.

--
$spark-shell --master yarn-client --jars "sparkling-water-1.6.8/assembly/build/libs/sparkling-water-assembly-1.6.8-all.jar"
scala>import root.hex.kmeans.KMeansModel.KMeansParameter
scala>val param = new KMeansParameter
scala>param._estimate_k
error:value _estimate_k is not a member of hex.kmeans.KMeansModel.KMeansParameters

Any other parameters are OK e.g. _k, _max_iterations,etc

Maybe, the '_estimate_k' is defined in the below code.
https://github.com/h2oai/h2o-3/blob/b0801ec5bdadb9e1ff55f995c572e4906bb27cf5/h2o-algos/src/main/java/hex/kmeans/KMeansModel.java

How can I use '_estimate_k'?

@mdymczyk
Copy link
Contributor

@YMorisawa Sparkling Water 1.6.x is using an older H2O version, which doesn't support this parameter yet that's why it's not there.

You can try our latest Sparkling Water 2.x branch, otherwise you'd have to wait for the next 1.6.x release.

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