Skip to content
Back to skills

H2o

ASecurity

R h2o package for scalable ML. Use for distributed machine learning with AutoML and deep learning.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 4, 2026
dataperformance

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill h2o --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of H2o?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for H2o
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-h2o/badge)](https://www.skillsdirectory.com/skills/leolin990405-h2o)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: h2o
description: R h2o package for scalable ML. Use for distributed machine learning with AutoML and deep learning.
---

# h2o Package

Scalable machine learning platform.

## Initialize

```r
library(h2o)
h2o.init(nthreads = -1, max_mem_size = "8G")

# Import data
df_h2o <- as.h2o(df)
df_h2o <- h2o.importFile("data.csv")

# Split
splits <- h2o.splitFrame(df_h2o, ratios = c(0.8), seed = 123)
train <- splits[[1]]
test <- splits[[2]]
```

## AutoML

```r
aml <- h2o.automl(
  x = predictors,
  y = "target",
  training_frame = train,
  max_runtime_secs = 300,
  seed = 123
)

# Leaderboard
aml@leaderboard

# Best model
best <- aml@leader
h2o.performance(best, test)
```

## Individual Models

```r
# GLM
glm <- h2o.glm(x = predictors, y = "target",
  training_frame = train, family = "binomial")

# Random Forest
rf <- h2o.randomForest(x = predictors, y = "target",
  training_frame = train, ntrees = 100)

# GBM
gbm <- h2o.gbm(x = predictors, y = "target",
  training_frame = train, ntrees = 100, learn_rate = 0.1)

# XGBoost
xgb <- h2o.xgboost(x = predictors, y = "target",
  training_frame = train, ntrees = 100)

# Deep Learning
dl <- h2o.deeplearning(x = predictors, y = "target",
  training_frame = train, hidden = c(200, 200))
```

## Predictions

```r
pred <- h2o.predict(model, test)
perf <- h2o.performance(model, test)
h2o.auc(perf)
h2o.confusionMatrix(perf)
```

## Save/Load

```r
h2o.saveModel(model, path = "models/")
model <- h2o.loadModel("models/model_id")
```

## Shutdown

```r
h2o.shutdown(prompt = FALSE)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.