Open exalate-issue-sync[bot] opened 1 year ago
JIRA Issue Migration Info
Jira Issue: PUBDEV-5671 Assignee: New H2O Bugs Reporter: Nidhi Mehta State: Open Fix Version: N/A Attachments: Available (Count: 1) Development PRs: N/A
Attachments From Jira
Attachment Name: Screen Shot 2018-06-19 at 3.32.33 PM.png Attached By: Nidhi Mehta File Link:https://h2o-3-jira-github-migration.s3.amazonaws.com/PUBDEV-5671/Screen Shot 2018-06-19 at 3.32.33 PM.png
!Screen Shot 2018-06-19 at 3.32.33 PM.png|thumbnail!
{code:java} import h2o from h2o.estimators.gbm import H2OGradientBoostingEstimator import pandas import sys h2o.init(strict_version_check=False)
ecology = h2o.import_file("https://s3.amazonaws.com/h2o-public-test-data/smalldata/gbm_test/ecology_model.csv") ecology['Angaus'] = ecology['Angaus'].asfactor()
Set the predictors and the response column name
response = 'Angaus' predictors = ecology.columns[3:13]
gbm_model = H2OGradientBoostingEstimator(ntrees=50, learn_rate=0.05) gbm_model.train(x=predictors, y=response, training_frame=ecology)
pdp1=gbm_model.partial_plot(data=ecology,cols=['SegSumT'],server=False, plot=False,nbins=30) pdp1 pdp1.as_data_frame() {code}