MachineShop
Machine Learning Models and Tools
A mature R modelling framework refining variable importance and resampling controls
◆Recent moves
- 5mo ago
Documentation link cleanup and a BART example fix
Removes dead Rd cross-references to ParBayesianOptimization and sets the Java parameters an example needed. CRAN housekeeping with no effect on modelling behaviour.
View source ↗ - 8mo ago
Global settings now reach compute nodes during parallel varimp
Fixes parallel variable importance runs where compute nodes did not inherit the session's global settings, meaning results could differ from a serial run of the same code. Paired with XGBoost compatibility fixes across the DART, linear and tree variants.
View source ↗ - 1y ago
Offset support for XGBoost and per-iteration calibration curves
Adds offsets to XGBModel and introduces a pool argument letting calibration() average per-iteration curves rather than pooling all resampled predictions, with the older behaviour deprecated. The note also warns that pooling can exhaust memory when fitting smooth curves without breaks, which is likely why the default changed.
View source ↗ - 1y ago
Variable importance objects record their own method and metric
Adds method and metric slots to the VariableImportance class so a result carries whether it came from permutation or the model itself and under which metric, with an update() method for objects made by older versions. Term-specific p-values via drop1() extend to Cox, POLR and survival regression, aligning them with the linear and generalized linear cases.
View source ↗ - 2y ago
Grouped and stratified resampling in the control objects
Enables resampling by a grouping variable across BootControl, OOBControl and SplitControl, plus stratified splitting - the controls needed to keep clustered observations from spanning training and test sets. Also raises the R requirement to 4.1.0.
View source ↗ - 3y ago
Backward compatibility for older model objects
Handles MLModel objects saved before the na.rm slot existed, clears an S3 generic consistency warning, and relaxes the requirement that role variables appear in prediction data. Maintenance for users with serialized models from earlier versions.
View source ↗