h2oai / h2o-tutorials

Tutorials and training material for the H2O Machine Learning Platform
http://h2o.ai
1.48k stars 1k forks source link

fix index upper bound #115

Closed MartinBarus closed 4 years ago

MartinBarus commented 4 years ago

First comparison of h2o and scikit-learn isolation forests was using different features for h2o and scikit-learn. This PR fixes the difference.

H2O:

isoforest.train(x=df.col_names[0:31], training_frame=df)

scikit-learn:

df_train_pandas = df_pandas.iloc[:, :30]