We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We cannot call model.thresholds_and_metric_scores() or performance.thresholds_and_metric_scores() with Binomial models and metrics.
model.thresholds_and_metric_scores()
performance.thresholds_and_metric_scores()
>>> from h2o.estimators.gbm import H2OGradientBoostingEstimator >>> pros = h2o.import_file("https://raw.github.com/h2oai/h2o/master/smalldata/logreg/prostate.csv") >>> pros["CAPSULE"] = pros["CAPSULE"].asfactor() >>> train, test = pros.split_frame(ratios = [.75], seed = 1234) >>> model = H2OGradientBoostingEstimator(distribution = "bernoulli", ... ntrees = 100, ... max_depth = 4, ... learn_rate = 0.1, ... seed = 1234) >>> model.train(y = "CAPSULE", ... x = ["AGE", "RACE", "PSA", "GLEASON"], ... training_frame = train) >>> model.thresholds_and_metric_scores() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/htillman/miniconda3/lib/python3.8/site-packages/h2o/utils/metaclass.py", line 352, in __getattr__ return getattr(new_clz, name) File "/Users/htillman/miniconda3/lib/python3.8/site-packages/h2o/utils/metaclass.py", line 397, in __getattribute__ return type.__getattribute__(cls, name) AttributeError: type object 'ModelBase' has no attribute 'thresholds_and_metric_scores'
Thanks, @hannah-tillman, for discovering this bug.
The text was updated successfully, but these errors were encountered:
GH-15889 Fix thresholds_and_metric scores API for binomial models (#1…
f4688b2
…5890) * Fix API * Fix failed tests * Fix R param desc --------- Co-authored-by: Adam Valenta <adam.valenta@h2o.ai>
maurever
No branches or pull requests
We cannot call
model.thresholds_and_metric_scores()
orperformance.thresholds_and_metric_scores()
with Binomial models and metrics.Thanks, @hannah-tillman, for discovering this bug.
The text was updated successfully, but these errors were encountered: