parsnip 0.1.6
Model Specification Changes
-
A new linear SVM model
svm_linear()is now available with theLiblineaRengine (#424) and thekernlabengine (#438), and theLiblineaRengine is available forlogistic_reg()as well (#429). These models can use sparse matrices viafit_xy()(#447) and have atidymethod (#474). -
For models with
glmnetengines:- A single value is required for
penalty(either a single numeric value or a value oftune()) (#481). - A special argument called
path_valuescan be used to set thelambdapath as a specific set of numbers (independent of the value ofpenalty). A pure ridge regression models (i.e.,mixture = 1) will generate incorrect values if the path does not include zero. See issue #431 for discussion (#486).
- A single value is required for
-
The
liquidSVMengine forsvm_rbf()was deprecated due to that package's removal from CRAN. (#425) -
The xgboost engine for boosted trees was translating
mtryto xgboost'scolsample_bytree. We now mapmtrytocolsample_bynodesince that is more consistent with how random forest works.colsample_bytreecan still be optimized by passing it in as an engine argument.colsample_bynodewas added to xgboost after theparsnippackage code was written. (#495) -
For xgboost,
mtryandcolsample_bytreecan be passed as integer counts or proportions, whilesubsampleandvalidationshould always be proportions.xgb_train()now has a new optioncounts(TRUEorFALSE) that states which scale formtryandcolsample_bytreeis being used. (#461)
Other Changes
-
Re-licensed package from GPL-2 to MIT. See consent from copyright holders here.
-
set_mode()now checks ifmodeis compatible with the model class, similar tonew_model_spec()(@jtlandis, #467). Bothset_mode()andset_engine()now error forNULLor missing arguments (#503). -
Re-organized model documentation for
updatemethods (#479). -
generics::required_pkgs()was extended forparsnipobjects. -
Prediction functions now give a consistent error when a user uses an unavailable value of
type(#489) -
The
augment()method was changed to avoid failing if the model does not enable class probabilities. The method now returns tibbles despite the input data class (#487) (#478) -
xgboost engines now respect the
event_leveloption for predictions (#460).