Package: uniml 0.5.1

Steve Shi
uniml: Unified Predictive Modeling Toolkit
A unified toolkit for binary and multiclass classification modelling that chains preprocessing, feature selection, model training and tuning, evaluation, visualization, and SHAP interpretability behind one set of objects, while keeping a strict separation between the data that fits a model and the data that judges it. Models, tasks, resampling, and tuning are 'mlr3' objects, multiple imputation is pooled with Rubin's rules, and results are exported in a layout that can be reopened outside R.
Authors:
uniml_0.5.1.tar.gz
uniml_0.5.1.zip(r-4.7-any)uniml_0.5.1.zip(r-4.6-any)
uniml_0.5.1.tar.gz(r-4.7-any)uniml_0.5.1.tar.gz(r-4.6-any)
uniml_0.5.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
uniml/json (API)
| # Install 'uniml' in R: |
| install.packages('uniml', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/zhengyangszy/uniml/issues
Last updated from:986a5edb56. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 299 | ||
| source / vignettes | OK | 382 | ||
| linux-release | OK | 256 | ||
| windows-devel | OK | 156 | ||
| windows-release | OK | 203 | ||
| wasm-release | OK | 201 |
Exports:apply_balanceapply_encodeapply_imputerapply_preprocessorapply_scaleapply_stepas_uniml_binaryas_uniml_dataas_uniml_multiclassassemble_resultbalance_classescalc_cicalc_metricscalc_nri_idicalibrate_probabilitiescalibration_metricscombine_selectionsdcadelong_testdetect_var_typesdiagnose_missingencode_categoricalexplain_shapexport_resultsextract_thresholdsfind_thresholdfit_balancefit_encodefit_imputerfit_preprocessorfit_scaleget_task_typehl_testimpute_datalist_task_typesmake_splitmake_taskmulticlass_calibrationnew_uniml_resultplot_calibrationplot_confusionplot_dcaplot_pr_curveplot_rocplot_shap_beeswarmplot_shap_dependenceplot_shap_forceplot_shap_importanceplot_shap_waterfallpool_mipredict_unimlrank_modelsread_resultregister_learnerregister_task_typeregister_workflow_adapterremove_collinearresolve_learnersrun_workflowsave_resultscale_numericselect_borutaselect_featuresselect_lassoselect_multivariateselect_rf_importanceselect_rfeselect_univariateset_evaluationset_explainset_feature_selectionset_labelsset_leakage_policyset_learnersset_outputset_preprocessset_tuningtask_type_spectheme_unimltrain_modeltripod_ai_checktune_modeluniml_specvalidate_uniml_datavalidate_uniml_preprocessorvalidate_uniml_resultvalidate_uniml_specvalidate_uniml_splitvalidate_uniml_task_typeworkflow_adapterworkflow_engine
Dependencies:backportsbbotkbitbit64bootBorutabroomcheckmateclicliprcodetoolscpp11crayoncurldata.tabledigestdoFuturedplyrevaluatefarverforcatsforeachfrufuturefuture.applygenericsggfittextgggenesggplot2ggrepelglmnetglobalsgluegridtextgtablehavenhmsisobanditeratorsjomojpegjsonlitekernelshaplabelinglatticelgrlifecyclelistenvlitedownlme4magrittrmarkdownMASSMatrixmatrixStatsmiceminqamiraimitmlmlbenchmlr3mlr3filtersmlr3fselectmlr3learnersmlr3measuresmlr3miscmlr3pipelinesmlr3tuningmoocorenanonextnlmenloptrnnetnumDerivordinalpalmerpenguinspanparadoxparallellypatchworkpillarpkgconfigpngprettyunitspROCprogressPRROCpurrrR6rangerrbibutilsRColorBrewerRcppRcppEigenRdpackreadrreformulasrlangrpartS7scalesshadesshapeshapvizstabmstringistringrsurvivaltibbletidyrtidyselecttzdbucminfutf8uuidvctrsviridisLitevroomwithrxfunxgboostxml2
Last update: 2026-11-17
Started: 2026-11-17
Last update: 2026-11-17
Started: 2026-11-17
Last update: 2026-11-17
Started: 2026-11-17
Last update: 2026-11-17
Started: 2026-11-17
Last update: 2026-11-17
Started: 2026-11-17
Last update: 2026-11-17
Started: 2026-11-17
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Apply a fitted class-balancing step | apply_balance apply_balance.default apply_balance.uniml_step_balance |
| Apply a fitted encoding step | apply_encode apply_encode.default apply_encode.uniml_step_encode |
| Apply an imputation step | apply_imputer apply_imputer.default apply_imputer.uniml_step_impute |
| Apply a fitted preprocessing pipeline | apply_preprocessor |
| Apply a fitted scaling step | apply_scale apply_scale.default apply_scale.uniml_step_scale |
| Apply a single preprocessing step | apply_step apply_step.default apply_step.uniml_step_balance apply_step.uniml_step_encode apply_step.uniml_step_impute apply_step.uniml_step_scale |
| Convert an mlr3 prediction into a 'uniml_binary' object | as_uniml_binary |
| Convert data to a uniml data object | as_uniml_data |
| Convert an mlr3 prediction into a 'uniml_multiclass' object | as_uniml_multiclass |
| Assemble a complete uniml result | assemble_result |
| Balance class frequencies | balance_classes |
| Bootstrap confidence intervals for binary metrics | calc_ci |
| Calculate binary classification metrics | calc_metrics calc_metrics.data.frame calc_metrics.default calc_metrics.matrix calc_metrics.numeric calc_metrics.PredictionClassif calc_metrics.uniml_binary calc_metrics.uniml_multiclass |
| Calculate continuous or categorical NRI and IDI | calc_nri_idi |
| Calibrate predicted probabilities | calibrate_probabilities calibrate_probabilities.default calibrate_probabilities.matrix calibrate_probabilities.numeric calibrate_probabilities.uniml_binary |
| Calibrate multiclass probabilities by temperature scaling | calibrate_probabilities.uniml_multiclass |
| Calibration intercept and slope | calibration_metrics |
| Combine feature-selection results | combine_selections |
| Decision-curve analysis | dca dca.default dca.uniml_binary |
| Decision-curve analysis | dca.numeric |
| Compare binary model AUCs with DeLong tests | delong_test |
| Detect feature variable types | detect_var_types |
| Diagnose missing values | diagnose_missing |
| Encode categorical variables | encode_categorical |
| Compute SHAP explanations | explain_shap explain_shap.default explain_shap.Learner explain_shap.list explain_shap.uniml_binary explain_shap.uniml_result |
| Export a uniml result | export_results |
| Extract SHAP-zero clinical thresholds | extract_thresholds |
| Find a binary classification threshold | find_threshold |
| Fit a class-balancing step | fit_balance |
| Fit a categorical encoding step | fit_encode |
| Fit an imputer | fit_imputer |
| Fit a preprocessing pipeline | fit_preprocessor |
| Fit a numeric scaling step | fit_scale |
| Get a task-type descriptor | get_task_type |
| Hosmer-Lemeshow goodness-of-fit test | hl_test |
| Impute missing values | impute_data |
| List registered task types | list_task_types |
| Split uniml data into train, validation, and optional test sets | make_split |
| Build an mlr3 classification task | make_task |
| Calibration of a multiclass model | multiclass_calibration |
| Construct a uniml result container | new_uniml_result |
| Plot probability-calibration curves | plot_calibration plot_calibration.data.frame plot_calibration.PredictionClassif plot_calibration.uniml_binary plot_calibration.uniml_multiclass plot_calibration.uniml_result |
| Plot confusion-matrix heatmaps | plot_confusion plot_confusion.data.frame plot_confusion.PredictionClassif plot_confusion.uniml_binary plot_confusion.uniml_multiclass plot_confusion.uniml_result |
| Plot decision curves | plot_dca plot_dca.uniml_binary plot_dca.uniml_dca plot_dca.uniml_multiclass plot_dca.uniml_result |
| Plot precision-recall curves | plot_pr_curve plot_pr_curve.data.frame plot_pr_curve.PredictionClassif plot_pr_curve.uniml_binary plot_pr_curve.uniml_result |
| Plot ROC curves | plot_roc plot_roc.data.frame plot_roc.PredictionClassif plot_roc.uniml_binary plot_roc.uniml_multiclass plot_roc.uniml_result |
| Plot a SHAP beeswarm | plot_shap_beeswarm plot_shap_beeswarm.mshapviz plot_shap_beeswarm.shapviz plot_shap_beeswarm.uniml_binary plot_shap_beeswarm.uniml_result |
| Plot a SHAP dependence curve | plot_shap_dependence plot_shap_dependence.mshapviz plot_shap_dependence.shapviz plot_shap_dependence.uniml_binary plot_shap_dependence.uniml_result |
| Plot a single-observation SHAP force plot | plot_shap_force plot_shap_force.mshapviz plot_shap_force.shapviz plot_shap_force.uniml_binary plot_shap_force.uniml_result |
| Plot SHAP importance | plot_shap_importance plot_shap_importance.mshapviz plot_shap_importance.shapviz plot_shap_importance.uniml_binary plot_shap_importance.uniml_result |
| Plot a single-observation SHAP waterfall | plot_shap_waterfall plot_shap_waterfall.mshapviz plot_shap_waterfall.shapviz plot_shap_waterfall.uniml_binary plot_shap_waterfall.uniml_result |
| Plot a uniml result | plot.uniml_result |
| Pool estimates across multiple imputations (strict Rubin's rules) | pool_mi |
| Predict with a fitted uniml workflow | predict.uniml_result predict_uniml |
| Print a fitted calibration | print.uniml_calibration |
| Print a uniml data object | print.uniml_data |
| Print a uniml preprocessor | print.uniml_preprocessor |
| Print a uniml result | print.uniml_result |
| Print a SHAP result | print.uniml_shap |
| Print a uniml specification | print.uniml_spec |
| Print a uniml split | print.uniml_split |
| Print a task-type descriptor | print.uniml_task_type |
| Rank models on a comparison set | rank_models |
| Register a learner for use by 'resolve_learners()' | register_learner |
| Register a task type | register_task_type |
| Register a workflow adapter for a task type | register_workflow_adapter |
| Remove collinear features | remove_collinear |
| Resolve learners from a uniml specification | resolve_learners |
| Run a complete uniml workflow | run_workflow |
| Save and read a fitted result | read_result save_result |
| Scale numeric variables | scale_numeric |
| Select features with Boruta | select_boruta |
| Run feature selection from a uniml specification | select_features |
| Select features with LASSO | select_lasso |
| Select features with multivariable logistic regression | select_multivariate |
| Select features with random-forest importance | select_rf_importance |
| Select features with recursive feature elimination | select_rfe |
| Select features with univariable logistic regression | select_univariate |
| Set evaluation options | set_evaluation |
| Set explanation options | set_explain |
| Set feature-selection options | set_feature_selection |
| Set display labels | set_labels |
| Set the data-leakage policy | set_leakage_policy |
| Set learners | set_learners |
| Set output options | set_output |
| Set preprocessing options | set_preprocess |
| Set tuning options | set_tuning |
| Summarise a uniml result | summary.uniml_result |
| Task-type descriptor | task_type_spec |
| Unified plotting theme | theme_uniml |
| Train a final classification model | train_model |
| Audit a result against the TRIPOD+AI reporting domains | tripod_ai_check |
| Tune an mlr3 learner | tune_model |
| Construct a uniml specification | uniml_spec |
| Validate a uniml data object | validate_uniml_data |
| Validate a uniml preprocessor | validate_uniml_preprocessor |
| Validate a uniml result | validate_uniml_result |
| Validate a uniml specification | validate_uniml_spec |
| Validate a uniml split | validate_uniml_split |
| Validate a task-type descriptor | validate_uniml_task_type |
| Get the workflow adapter of a task type | workflow_adapter |
| Fit a task type's models and predict the evaluation sets | workflow_engine |
