-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
h20 learner : "Error in checkPredictLearnerOutput(.learner, .model, p)" #1787
Comments
Can you supply a minimum (not) working example? |
HI, ok, thanks task --> class levels are '0', '1'classif.task = makeClassifTask(id = "example", learnergbm.lrn = makeLearner("classif.h2o.gbm", cvrdesc = makeResampleDesc("CV", iters = 3, stratify = TRUE) r = resample(gbm.lrn, classif.task, rdesc, |
You haven't shown us your data. |
ok, sorry, this is a perfectly reproducible example:
thanks!! |
Thanks, this is indeed a bug (caused by completely broken code). I've fixed this in #1790. |
In test_that - “oneclass_h2oautoencoder”, reproducible = TRUE and seed= 1234 need to be set in parset.list before the for-block, instead of setting them in the for-block like in h2ogmb, otherwise testProbParsets return error because of different prediction values. In test_that-(“class names are integers and probabilities predicted (#1787)" activation function needs to be set to “Tanh” instead of the default “Rectifire”, otherwise resample() return an error: Error: DistributedException from localhost/127.0.0.1:54321, caused by java.lang.UnsupportedOperationException: (This error occurs very often when using h2o, there are no clear and not a lot explanation in the web how to solve it or why it happens, but it seems like to be related with the case if the model is “unstable”. The activation function “tanh” has a natural bound and suitable to “control” the instability.
Hi, A similar possible bug I've just found still exists when spaces occur in the class names. Here's an example based on the above that still breaks for me using mlr v2.13:
I get:
This will run when replacing e.g. Many thanks for the wonderful package. Andrew |
Ah, looks like the names are sometimes sanitized and sometimes not. The workaround for now is to sanitize everything yourself, e.g. using the |
HI
os: win7
Rstudio: 1.0.143
R : 3.4
issue:
all h2o learner fails in prediction task: seems this is class levels names conflit:
"Error in checkPredictLearnerOutput(.learner, .model, p) :
predictLearner for classif.h2o.gbm has returned not the class levels as column names: p0, p1"
checking current names in learner , those lacks 'p' prefix; in fact they are '0', '1' and not 'p0, p1' as needed
The text was updated successfully, but these errors were encountered: