h2o.average_objective: Extracts the final training average objective function of a...

View source: R/models.R

h2o.average_objectiveR Documentation

Extracts the final training average objective function of a GLM model.

Description

Extracts the final training average objective function of a GLM model.

Usage

h2o.average_objective(model)

Arguments

model

an H2OModel object.

Value

The final training average objective of a GLM model.

Examples

## Not run: 
library(h2o)
h2o.init()

f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv"
cars <- h2o.importFile(f)
predictors <- c("displacement", "power", "weight", "acceleration", "year")
response <- "acceleration"
cars_model <- h2o.glm(y=response, 
                       x=predictors, 
                       training_frame = cars, 
                       family="gaussian",
                       generate_scoring_history=TRUE)
objValue <- h2o.average_objective(cars_model)

## End(Not run)

h2o documentation built on Aug. 9, 2023, 9:06 a.m.