MachineShop: R package of models and tools for machine learning
na.rm
to MLModel()
for construction of a model that automatically removes all cases with missing values from model fitting and prediction, none, or only those whose missing values are in the response variable. Set the na.rm
values in supplied MLModels
to automatically remove cases with missing values if not supported by their model fitting and prediction functions.prob.model
to SVMModel()
.verbose
to fit()
and predict()
.Error in as.data.frame(x) : object 'x' not found
issue when fitting a BARTMachineModel
that started occurring with bartMachine
package version 1.2.7.ModeledInput
and rpp()
.na.rm
to MLModel
.method
to r2()
for calculation of Pearson or Spearman correlation.predict()
S4 method for MLModelFit
.MLModelFunction()
.as.MLInput()
methods for MLModelFit
and ModelSpecification
.as.MLModel()
method for ModelSpecification
.SelectedInput
terms.StackedModel
and SuperModel
..MachineShop
list attribute to MLModelFit
.mlmodel
in MLModelFit
to model
in .MachineShop
.input
in MLModel
to .MachineShop
..MachineShop
to the predict
and varimp
slot functions of MLModel
.TypeError
in dependence()
with numeric dummy variables from recipes.ModelRecipe
with retain = TRUE
for recipe steps that are skipped, for example, when test datasets are created.auc()
, pr_auc()
, and roc_auc()
for multiclass factor responses.conf
to set_optim_bayes()
.StackedModel
and SuperModel
in ModelSpecification()
.SelectedModelSpecification
.ModeledInput
, ModeledFrame
, and ModeledRecipe
.TunedModeledRecipe
.fixed
from TunedModel()
.Grid()
.rpp()
to ppr()
.ModeledInput()
with ModelSpecification()
.NNetModel
model-specific variable importance..type
with options "glance"
and "tidy"
to summary.MLModelFit()
.print.Resample()
.ModelSpecification
.set_monitor()
: monitoring of resampling and optimizationset_optim_bayes()
: Bayesian optimization with a Gaussian process modelset_optim_bfgs()
: low-memory quasi-Newton BFGS optimizationset_optim_grid()
: exhaustive and random grid searchesset_optim_method()
: user-defined optimization functionsset_optim_pso()
: particle swarm optimizationset_optim_sann()
: simulated annealingperformance()
method for MLModel
to replicate the previous behavior of summary.MLModel()
.performance()
, plot()
, and summary()
methods for TrainingStep
.Resample
performances.type
of predict()
.
"default"
for model-specific default predictions."numeric"
for numeric predictions."prob"
to be for probabilities between 0 and 1.confusion()
default behavior to convert factor probabilities to levels.control
to object
in set functions.f
to fun
in roc_index()
.ListOf
training step summaries from summary.MLModel()
.TrainingStep
object from rfe()
.expand_params()
.EnsembleModel
.MLOptimization
, GridSearch
, NullOptimization
, RandomGridSearch
, and SequentialOptimization
.NullControl
.control
to PerformanceCurve
.method
to TrainingStep
.optim
to TrainingParams
.params
to MLInput
.SelectedModel
from EnsembleModel
.StackedModel
from EnsembleModel
.SuperModel
from StackedModel
.case_comps
to vars
in Resample
.grid
to log
in TrainingStep
.GLMModel
print.TrainingStep()
TunedModel()
terms.formula()
.distr
and method
to dependence()
.ParsnipModel()
for model specifications (model_spec
) from the parsnip package.rfe()
for recursive feature elimination.as.MLModel()
for model_spec
and ModeledInput
.as.MLModel()
method.metric
of auc()
.method
default from "model"
to "permute"
in varimp()
.ModelFrame
to an S4 class; generally requires explicit conversion to a data frame with as.data.frame()
in MLModel
fit
and predict
functions.stat.Trained
to stat.TrainingParams
.stats.VarImp
.ParsnipModel
.SurvTimes
.TrainingParams
.Grid
.Params
.name
, selected
, and metrics
to slot grid
of TrainingStep
class.grid
to TunedInput
.id
to MLInput
and MLModel
classes.id
and name
to TrainingStep
class.models
to SelectedModel
.name
from MLControl
classes.selected
, values
, and metric
from TrainingStep
class.shift
from VariableImportance
class.Grid
to TuningGrid
.Resamples
to Resample
.TrainStep
to TrainingStep
.VarImp
to VariableImportance
.MLControl
.
MLBootControl
→ BootControl
MLBootOptimismControl
→ BootOptimismControl
MLCVControl
→ CVControl
MLCVOptimismControl
→ CVOptimismControl
MLOOBControl
→ OOBControl
MLSplitControl
→ SplitControl
MLTrainControl
→ TrainControl
Input
and Model
to params
in slot grid
of TrainingStep
class.Resample
to Iteration
in Resample
classx
to input
in MLModel
class.XGBModel
nrounds
from 1 to 100.nrounds
and max_depth
in automated grids for XGBDARTModel
and XGBTreeModel
.nrounds
, lambda
, and alpha
in automated grid for XGBLinearModel
.survival:aft
prediction.survival:cox
to survival:aft
.TrainingStep
objects and output.varimp()
.model
→ object
in TunedModel()
x
→ object
in expand_model()
x
→ formula
/input
/model
in expand_modelgrid()
, fit()
, ModelFrame()
, resample()
, rfe()
methodsx
→ formula
/object
/model
in ModeledInput()
methodsx
→ object
in ParameterGrid()
methodsx
→ control
in set_monitor()
, set_predict()
, set_strata()
x
→ object
in TunedInput()
Grid()
to TuningGrid()
.ModelFrame()
.MLModel
params
slots.