predict.bestLayerLearner | R Documentation |
Predict function for models from class bestLayerLearner
.
## S3 method for class 'bestLayerLearner'
predict(object, data, ...)
object |
|
data |
|
... |
|
Predicted target values are returned.
set.seed(20240625)
x = data.frame(x1 = runif(n = 50L, min = 0, max = 1))
y <- sample(x = 0:1, size = 50L, replace = TRUE)
my_model <- bestLayerLearner(x = x, y = y)
x_new <- data.frame(x1 = rnorm(10L))
my_predictions <- predict(object = my_model, data = x_new)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.