Learn R Programming

h2otools: Machine Learning Model Evaluation for 'h2o' Package

Model evaluation

There are plenty of procedures for evaluating machine learning models, many of which are not implemented in h2o platform. This repository provides additional functions for model performance evaluation that are not implemented in h2o.

The bootperformance function evaluates the model for n number of bootstrapped samples from the testing dataset, instead of evaluating the model on the testing dataset once. Therefore, evaluating the confidence interval of the model performance.

These functions are briefly described below:

FunctionDescription
automlModelParamfor extracting model parameters from AutoML grid
bootperformanceBootstrap performance evaluation
Fmeasurefor evaluating F3, F4, F5, or any beta value. h2o only provides F0.5, F1, and F2
getPerfMatrixretrieve performance matrix for all thresholds
kappaCalculates kappa for all thresholds
performanceprovides performance measures (AUC, AUCPR, MCC, Kappa, etc.) using objects from h2o package

Additional functions

There are plenty of procedures for evaluating machine learning models, many of which are not implemented in h2o platform. This repository provides additional functions for model performance evaluation that are not implemented in h2o.

The bootperformance function evaluates the model for n number of bootstrapped samples from the testing dataset, instead of evaluating the model on the testing dataset once. Therefore, evaluating the confidence interval of the model performance.

These functions are briefly described below:

FunctionDescription
checkFrameChecks data.frame format, which is useful before uploading it to H2O cloud
h2o.get_idsExtracts model IDs from h2o AutoML and Grids nd returns a vector of model IDs

Installation

You can install the latest stable package from CRAN:

install.packages("h2otools")

Copy Link

Version

Install

install.packages('h2otools')

Monthly Downloads

181

Version

0.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

E. F. Haghish

Last Published

March 18th, 2025

Functions in h2otools (0.4)

kappa

kappa
checkFrame

check input data.frame
performance

provides performance measures using objects from h2o
bootPerformance

bootPerformance
Fmeasure

F-Measure
bootImportance

Bootstrap Variable Importance And Averaged Grid Variable Importance
automlModelParam

AutoML Models' Parameters Summary
h2o.get_ids

h2o.get_ids
getPerfMatrix

getPerfMatrix
capture

Capture Evaluation Side Effects