Recent Releases of MachineShop
MachineShop - MachineShop 3.9.0
Version Updates
3.9.0
- Add offset support to
XGBModel. - Add logical argument
pooltocalibration()indicating whether to compute a single calibration curve on predictions pooled over all resampling iterations or to compute them for each iteration individually and return the mean calibration curve.- The new argument default is
pool = FALSE. The pooling that had been the only implementation in previous package versions (<= 3.8.0) can reproduced withpool = FALSEbut is deprecated and will be removed along with the argument in a future version. - Note that pooling can result in large memory allocation errors when fitting smooth curves with
breaks = NULL.
- The new argument default is
- R
Published by brian-j-smith 12 months ago
MachineShop - MachineShop 3.8.0
Version Updates
3.8.0
- Changes to
varimp()arguments.- Add argument
sort. - Extend argument
scaleto vectors of logical.
- Add argument
- Changes to model-based variable importance.
- Fix unused argument error from
CForestModel. - Use
drop1()to compute model term-specific p-values forCoxModel,POLRModel, andSurvRegModelas is done forGLMModelandLMModel.
- Fix unused argument error from
- Changes to
VariableImportanceclass.- Add slots
methodandmetricto store the computational method ("permute"or"model") and the performance metric used for computations. - Add
update()method to add the new slots to objects created with previous versions of the package.
- Add slots
- Deprecate
type = "default"option inpredict()and replace it withtype = "raw". - Fix unimplemented type 'list' in 'listgreater' error from
SelectedInput.recipe().
- R
Published by brian-j-smith almost 2 years ago
MachineShop - MachineShop 3.7.0
Version Updates
3.7.0
- Compatibility updates for parsnip.
- Enable resampling by a grouping variable with
BootControl,OOBControl, andSplitControl. - Enable resampling by a stratification variable with
SplitControl. - Require R 4.1.0 or later.
- R
Published by brian-j-smith over 2 years ago
MachineShop - MachineShop 3.6.2
Version Updates
3.6.2
- Add backward compatibility for older
MLModelobjects without ana.rmslot. - Fix CRAN check warning: S3 generic/method consistency.
- Update
role_binom(),role_case(), androle_surv()to remove the requirement that their variables be present innewdatasupplied topredict().
- R
Published by brian-j-smith about 3 years ago
MachineShop - MachineShop 3.6.1
Version Updates
3.6.1
- Compatibility updates for ggplot2, Matrix, and recipes package dependencies.
- R
Published by brian-j-smith over 3 years ago
MachineShop - MachineShop 3.6.0
Version Updates
3.6.0
- Add argument
na.rmtoMLModel()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 thena.rmvalues in suppliedMLModelsto automatically remove cases with missing values if not supported by their model fitting and prediction functions. - Add argument
prob.modeltoSVMModel(). - Add argument
verbosetofit()andpredict(). - Fix
Error in as.data.frame(x) : object 'x' not foundissue when fitting aBARTMachineModelthat started occurring withbartMachinepackage version 1.2.7. - Remove expired deprecations of
ModeledInputandrpp(). - Internal changes
- Add slot
na.rmtoMLModel.
- Add slot
- R
Published by brian-j-smith over 3 years ago
MachineShop - MachineShop 3.5.0
Version Updates
3.5.0
- Add argument
methodtor2()for calculation of Pearson or Spearman correlation. - Add
predict()S4 method forMLModelFit. - Export
MLModelFunction(). - Export
as.MLInput()methods forMLModelFitandModelSpecification. - Export
as.MLModel()method forModelSpecification. - Improve recursive feature elimination of
SelectedInputterms. - Improve speed of
StackedModelandSuperModel. - Internal changes
- Add
.MachineShoplist attribute toMLModelFit. - Move field
mlmodelinMLModelFittomodelin.MachineShop. - Move slot
inputinMLModelto.MachineShop. - Pass
.MachineShopto thepredictandvarimpslot functions ofMLModel.
- Add
- R
Published by brian-j-smith almost 4 years ago
MachineShop - MachineShop 3.4.3
Version Updates
3.4.3
- Fix
TypeErrorindependence()with numeric dummy variables from recipes. - Prep
ModelRecipewithretain = TRUEfor recipe steps that are skipped, for example, when test datasets are created. - Add generalized area under performance curves to
auc(),pr_auc(), androc_auc()for multiclass factor responses.
- R
Published by brian-j-smith about 4 years ago
MachineShop - MachineShop 3.4.2
Version Updates
3.4.2
- Add argument
selecttorfe(). - Fix object
perf_statsnot found inoptim().
- R
Published by brian-j-smith about 4 years ago
MachineShop - MachineShop 3.4.1
Version Updates
3.4.1
- Add argument
conftoset_optim_bayes(). - Enable global grid expansion and tuning of
StackedModelandSuperModelinModelSpecification().
3.4.0
- Fixes
- Enable prediction with survival times of 0.
- Implement class
SelectedModelSpecification. - Internal changes
- Deprecate classes
ModeledInput,ModeledFrame, andModeledRecipe. - Remove unused class
TunedModeledRecipe.
- Deprecate classes
- Expire deprecations
- Remove argument
fixedfromTunedModel(). - Remove
Grid().
- Remove argument
- Rename
rpp()toppr(). - Replace
ModeledInput()withModelSpecification(). - Require R >= 4.0.0.
- Use Olden algorithm for
NNetModelmodel-specific variable importance.
- R
Published by brian-j-smith about 4 years ago
MachineShop - MachineShop 3.3.0
Version Updates
3.3.0
- Add argument
.typewith options"glance"and"tidy"tosummary.MLModelFit(). - Add case components data (stratification and grouping variables) to
print.Resample(). - Add class and methods for
ModelSpecification. - Add training parameters set functions
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 annealing
- Add
performance()method forMLModelto replicate the previous behavior ofsummary.MLModel(). - Add
performance(),plot(), andsummary()methods forTrainingStep. - Add support for unordered plots of
Resampleperformances. - Changes to argument
typeofpredict().- Add option
"default"for model-specific default predictions. - Add option
"numeric"for numeric predictions. - Change option
"prob"to be for probabilities between 0 and 1.
- Add option
- Change
confusion()default behavior to convert factor probabilities to levels. - Rename argument
controltoobjectin set functions. - Rename argument
ftofuninroc_index(). - Return a
ListOftraining step summaries fromsummary.MLModel(). - Return a
TrainingStepobject fromrfe(). - Support tibble-convertible objects as arguments to
expand_params(). - Internal changes
- Add class
EnsembleModel. - Add classes
MLOptimization,GridSearch,NullOptimization,RandomGridSearch, andSequentialOptimization. - Add class
NullControl. - Add slot
controltoPerformanceCurve. - Add slot
methodtoTrainingStep. - Add slot
optimtoTrainingParams. - Add slot
paramstoMLInput. - Inherit class
SelectedModelfromEnsembleModel. - Inherit class
StackedModelfromEnsembleModel. - Inherit class
SuperModelfromStackedModel. - Rename slot
case_compstovarsinResample. - Rename slot
gridtologinTrainingStep.
- Add class
- Fixes
- error predicting single factor response in
GLMModel - 'size(x@performance, 3)' error in
print.TrainingStep() - 'Unmatched tuning parameters' error in
TunedModel()
- error predicting single factor response in
3.2.1
- Fix 'data' argument of wrong type error in
terms.formula(). - Require >= 3.1.0 version of cli package.
- R
Published by brian-j-smith over 4 years ago
MachineShop - MachineShop 3.2.0
Version Updates
3.2.0
- Add argument
distrandmethodtodependence(). - Add function
ParsnipModel()for model specifications (model_spec) from the parsnip package. - Add function
rfe()for recursive feature elimination. - Add method
as.MLModel()formodel_specandModeledInput. - Add support for any model specification whose object has an
as.MLModel()method. - Add support for cross-validation with case groups.
- Add support for names in argument
metricofauc(). - Change argument
methoddefault from"model"to"permute"invarimp(). - Change class
ModelFrameto an S4 class; generally requires explicit conversion to a data frame withas.data.frame()inMLModelfitandpredictfunctions. - Change progress bar display from elapsed to estimated completion time.
- Changes to global settings
- Rename
stat.Trainedtostat.TrainingParams. - Remove
stats.VarImp.
- Rename
- Changes to internal classes
- Add class
ParsnipModel. - Add class
SurvTimes. - Add class
TrainingParams. - Add class union
Grid. - Add class union
Params. - Add column
name,selected, andmetricsto slotgridofTrainingStepclass. - Add slot
gridtoTunedInput. - Add slot
idtoMLInputandMLModelclasses. - Add slot
idandnametoTrainingStepclass. - Add slot
modelstoSelectedModel. - Remove slot
namefromMLControlclasses. - Remove slot
selected,values, andmetricfromTrainingStepclass. - Remove slot
shiftfromVariableImportanceclass. - Rename class
GridtoTuningGrid. - Rename class
ResamplestoResample. - Rename class
TrainSteptoTrainingStep. - Rename class
VarImptoVariableImportance. - Rename classes of
MLControl. MLBootControl→BootControlMLBootOptimismControl→BootOptimismControlMLCVControl→CVControlMLCVOptimismControl→CVOptimismControlMLOOBControl→OOBControlMLSplitControl→SplitControlMLTrainControl→TrainControl- Rename column
InputandModeltoparamsin slotgridofTrainingStepclass. - Rename column
ResampletoIterationinResampleclass - Rename slot
xtoinputinMLModelclass.
- Add class
- Changes to
XGBModel- Change argument default for
nroundsfrom 1 to 100. - Rearrange constructor arguments.
- Reduce number of tuning grid parameters
- Include
nroundsandmax_depthin automated grids forXGBDARTModelandXGBTreeModel. - Include
nrounds,lambda, andalphain automated grid forXGBLinearModel. - Compute survival probabilities for
survival:aftprediction. - Change default survival objective from
survival:coxtosurvival:aft.
- Change argument default for
- Format and condense printout of objects.
- Include all computed performance metrics in
TrainingStepobjects and output. - Remove shift from variable importance scaling in
varimp(). - Rename and redefine dispatch (first) arguments in functions.
model→objectinTunedModel()x→objectinexpand_model()x→formula/input/modelinexpand_modelgrid(),fit(),ModelFrame(),resample(),rfe()methodsx→formula/object/modelinModeledInput()methodsx→objectinParameterGrid()methodsx→controlinset_monitor(),set_predict(),set_strata()x→objectinTunedInput()
- Rename function
Grid()toTuningGrid(). - Reorder optional arguments in
ModelFrame(). - Save model constructor arguments as the list elements in
MLModelparamsslots.
- R
Published by brian-j-smith over 4 years ago
MachineShop - MachineShop 3.1.0
Version Updates
3.1.0
- Add argument
na.rmtodependence(). - Add global setting
stats.VarImpfor summary statistics to compute on permutation-based variable importance. - Add permutation-based variable importance to
varimp(). - Sort variable importance by first column only if not scaled.
- Correct the estimated variances for cross-validation estimators of mean performance difference in
t.test.PerformanceDiff(). - Rename argument
metrictotypeinvarimp()functions forBartMachineModel,C50Model,EarthModel,RFSRCModel, andXGBModel. - Set argument
typedefault to"nsubsets"inEarthModelvarimp(). - Expand case weighted metrics support.
- Fix weights used in survival event-specific metrics.
- Use weights for
cross_entropy()numericmethod. - Use weights for predicted survival probabilities.
- Fix error with argument
finroc_index()Survmethod.
- R
Published by brian-j-smith over 4 years ago
MachineShop - MachineShop 3.0.0
Version Updates
3.0.0
- Add slot
weightstoMLModelclasses. - Allow case weights in
LMModelfor all response types. - Exclude infinite values from calculation of
breaksincalibration(). - Fix invalid
max = Infarguments toprint.default(). - Add support for case weights in performance metrics and curves.
- Evaluate
ModelFrame()argumentsstrataandweightsindataenvironment. - Fix issue introduced in package version 2.9.0 of recipe case weights not being used in model fitting.
- Add column
Weightof case weights toResamplesdata frame. - Rename
valuescolumn toget_valuesinMLModelgridinfoslot. - Move global settings
resample_progressandresample_verbosetoset_monitor()argumentsprogressandverbose. - Move
MLControl()argumentsstrata_breaks,strata_nunique,strata_prop, andstrata_sizetoset_strata()argumentsbreaks,nunique,prop, andsize. - Move
MLControl()argumentstimes,distr, andmethodtoset_predict(). - Export
%>%operator. - Return case stratification values in the 'strata' slot of
Resamplesobjects.
- R
Published by brian-j-smith almost 5 years ago