model_info.WrappedModel {DALEXtra} | R Documentation |
Exract info from model
Description
This generic function let user extract base information about model. The function returns a named list of class model_info
that
contain about package of model, version and task type. For wrappers like mlr
or caret
both, package and wrapper information
are stored
Usage
## S3 method for class 'WrappedModel'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'H2ORegressionModel'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'H2OBinomialModel'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'H2OMultinomialModel'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'scikitlearn_model'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'keras'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'LearnerRegr'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'LearnerClassif'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'GraphLearner'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'xgb.Booster'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'workflow'
model_info(model, is_multiclass = FALSE, ...)
## S3 method for class 'model_stack'
model_info(model, is_multiclass = FALSE, ...)
Arguments
model |
- model object |
is_multiclass |
- if TRUE and task is classification, then multitask classification is set. Else is omitted. If |
... |
- another arguments |
Details
Currently supported packages are:
-
mlr
models created withmlr
package -
h2o
models created withh2o
package -
scikit-learn
models created withscikit-learn
Python library and accessed viareticulate
-
keras
models created withkeras
Python library and accessed viareticulate
-
mlr3
models created withmlr3
package -
xgboost
models created withxgboost
package -
tidymodels
models created withtidymodels
package
Value
A named list of class model_info