h2o (version 3.30.0.1)

h2o.biases: Return the respective bias vector

Description

Return the respective bias vector

Usage

h2o.biases(object, vector_id = 1)

Arguments

object

An '>H2OModel or '>H2OModelMetrics

vector_id

An integer, ranging from 1 to number of layers + 1, that specifies the bias vector to return.

Examples

Run this code
# NOT RUN {
library(h2o)
h2o.init()

f <- "http://h2o-public-test-data.s3.amazonaws.com/smalldata/chicago/chicagoCensus.csv"
census <- h2o.importFile(f)
census[,1] <- as.factor(census[,1])

dlmodel <- h2o.deeplearning(x = c(1:3), y = 4, training_frame = census,
                            hidden = c(17,191),
                            epochs = 1, 
                            balance_classes = FALSE, 
                            export_weights_and_biases = TRUE)
h2o.biases(dlmodel, vector_id = 1)
# }

Run the code above in your browser using DataCamp Workspace