Despite seed-setting, some ordinalNet model fits (on some systems) initialize penalty paths differently.
This patch modifies two unit tests of these fits by omitting metadata equality checks and reducing the precision of path comparisons.
A bug in the prediction of vglm models, and associated tests, were patched.
Previously, predict() was used, which triggers S3 dispatch when VGAM is not attached but S4 dispatched when it is.
Now predictvglm() is used instead.
Additionally, vglm and vgam probability predictions now use the outcome levels as column names.
ordinal_reg() argument value translation has been moved from the translate() method in parsnip to engine wrappers in ordered, with the exception of penalty path assembly for ordinalNet and glmnetcr, in coordination with parsnip PR #1393.
Penalty path arguments in ordinalNet are no longer silently internally modified; for example, the user must specify includeLambda0 = TRUE if they want the path to include zero.
Extrapolative predictions, which err in ordinalNet, are overridden to use path endpoint values for consistency with glmnet and glmnetcr.
This version introduces source code and unit tests for new engines and dials:
clm from the ordinal package
ordinal_link dial valueslrm and orm from the rms package
glmnetcr from the glmnetcr package
ordinalNetorf from the orf package
sample.fraction, honesty, and honesty.fraction argumentsordinalNet from the ordinalNet package (pre-existing engine)
parallelPenaltyFactor argumentCoordinated with parsnip PR #1384.
Linear predictions are enabled for the clm, lrm, orm, vglm, and ordinalNet ordinal regression engines and for the vgam generalized additive model engine.
They consistently return a single column of linear predictors (without threshold contributions).
Coordinated with parsnip PR #1391.
The threshold_structure model argument for ordinal_reg() controls what constraints, if any, are imposed on the ordered thresholds.
It can be used by the clm and vglm engines, including with VGAM version 1.1-9.
The parallel_reg model argument for ordinal_reg() controls the parallel regression assumption with a logical value applied to all predictors.
It can be used by the clm, vglm, and ordinalNet engines.
Note that the default is to defer to the engine, and the vglm engine defaults to non-parallel terms.
The gen_additive_mod() vgam engine additionally registers the Thresh and parallel engine arguments.
These may be tuned using the threshold_structure and parallel_reg dials.
Accordingly, the vgam engine now defaults to non-parallel terms.
Coordinated with parsnip PR #1393 and dials PR #462.
Initial CRAN submission.