Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


Package: gbts

An implementation of hyperparameter optimization for Gradient Boosted Trees on binary classification and regression problems. The current version provides two optimization methods: Bayesian optimization and random search.

Example

Binary Classification

# Load German credit data
data(german_credit)
train <- german_credit$train
test <- german_credit$test
target_idx <- german_credit$target_idx
pred_idx <- german_credit$pred_idx

# Train a GBT model with optimization on AUC
model <- gbts(train[, pred_idx], train[, target_idx], nitr = 200, pfmc = "auc")

# Predict on test data
prob_test <- predict(model, test[, pred_idx])

# Compute AUC on test data
comperf(test[, target_idx], prob_test, pfmc = "auc")

Regression

# Load Boston housing data
data(boston_housing)
train <- boston_housing$train
test <- boston_housing$test
target_idx <- boston_housing$target_idx
pred_idx <- boston_housing$pred_idx

# Train a GBT model with optimization on MSE
model <- gbts(train[, pred_idx], train[, target_idx], nitr = 200, pfmc = "mse")

# Predict on test data
prob_test <- predict(model, test[, pred_idx])

# Compute MSE on test data
comperf(test[, target_idx], prob_test, pfmc = "mse")

Installation

To get the current released version from CRAN:

install.packages("gbts")

Main Components

To see a list of functions and datasets provided by gbts:

help(package = "gbts")

Copy Link

Version

Install

install.packages('gbts')

Monthly Downloads

572

Version

1.0.1

License

GPL (>= 2) | file LICENSE

Maintainer

Waley J. Liang

Last Published

October 17th, 2016