Icon

02_H2O_GBM_Classification_Model

H2O Gradient Boosting Machine for classification

This workflow explains how to train a GBM classifier in H2O, predict classes of new data and evaluate the performance.

1. Prepare:
Load the IRIS data, import the resulting KNIME Table to H2O and partition the data for test and train set 30/70.

2. Learn:
We learn the GBM Model using the H2O Gradient Boosting Machine Learner (Classification). We want H2O to build 1000 Trees using a multinominal distribution of the reponse, for it is a multilabel problem. All other model parameters are H2Os defaults.

3. Predict:
Make predictions on new data using your model(s). In order to compute the Scoring metrics, we need to enable the "append individual class probabilities" parameter in the "H2O Predictor (Classification)" Node

4. Score:
In order to evaluate our model, we asess the Classifiers accuracy by scoring the predictions made on the test data.

Annotations and comments
  • Training GBM Model for classification with H2O This tutorial shows how to train an H2O Model in KNIME. We will train a Gradient Boosting Machine Model Classifier to predict the reponse class of the IRIS dataset (https://en.wikipedia.org/wiki/Iris_flower_data_set).
  • Learn the GBM with 1000 Trees
  • Start local H2O Node
  • Multinominal classification metrics and Confusion Matrix
  • Partition data 30/70
  • Predict test data with appended class probabilities
  • Import IRIS data to H2O Frame
  • Load IRIS data

Nodes

Extensions

Links