Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-process_models_or_automl

Do basic validation and transform object to a "standardized" list containing models, and their properties such as x, y, whether it is a (multinomial) clasification or not etc.


Description

Do basic validation and transform object to a "standardized" list containing models, and their properties such as x, y, whether it is a (multinomial) clasification or not etc.

Usage

.process_models_or_automl(
  object,
  newdata,
  require_single_model = FALSE,
  require_multiple_models = FALSE,
  top_n_from_AutoML = NA,
  only_with_varimp = FALSE,
  best_of_family = FALSE,
  require_newdata = TRUE
)

Arguments

object

Can be a single model/model_id, vector of model_id, list of models, H2OAutoML object

newdata

An H2OFrame with the same format as training frame

require_single_model

If true, make sure we were provided only one model

require_multiple_models

If true, make sure we were provided at least two models

top_n_from_AutoML

If set, don't return more than top_n models (applies only for AutoML object)

only_with_varimp

If TRUE, return only models that have variable importance

best_of_family

If TRUE, return only the best of family models; if FALSE return all models in object

require_newdata

If TRUE, require newdata to be specified; otherwise allow NULL instead, this can be used when there is no need to know if the problem is (multinomial) classification.

Value

a list with the following names leader, is_automl, models, is_classification, is_multinomial_classification, x, y, model


h2o

R Interface for the 'H2O' Scalable Machine Learning Platform

v3.32.1.2
Apache License (== 2.0)
Authors
Erin LeDell [aut, cre], Navdeep Gill [aut], Spencer Aiello [aut], Anqi Fu [aut], Arno Candel [aut], Cliff Click [aut], Tom Kraljevic [aut], Tomas Nykodym [aut], Patrick Aboyoun [aut], Michal Kurka [aut], Michal Malohlava [aut], Ludi Rehak [ctb], Eric Eckstrand [ctb], Brandon Hill [ctb], Sebastian Vidrio [ctb], Surekha Jadhawani [ctb], Amy Wang [ctb], Raymond Peck [ctb], Wendy Wong [ctb], Jan Gorecki [ctb], Matt Dowle [ctb], Yuan Tang [ctb], Lauren DiPerna [ctb], Tomas Fryda [ctb], H2O.ai [cph, fnd]
Initial release
2021-04-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.