Skip to content

RobustPrediction

Robust Tuning and Training for Cross-Source Prediction

v0.1.7 · Dec 16, 2024 · GPL-3

Description

Provides robust parameter tuning and model training for predictive models applied across data sources where the data distribution varies slightly from source to source. This package implements three primary tuning methods: cross-validation-based internal tuning, external tuning, and the 'RobustTuneC' method. External tuning includes a conservative option where parameters are tuned internally on the training data and validating on an external dataset, providing a slightly pessimistic estimate. It supports Lasso, Ridge, Random Forest, Boosting, and Support Vector Machine classifiers. Currently, only binary classification is supported. The response variable must be the first column of the dataset and a factor with exactly two levels. The tuning methods are based on the paper by Nicole Ellenbach, Anne-Laure Boulesteix, Bernd Bischl, Kristian Unger, and Roman Hornung (2021) "Improved Outcome Prediction Across Data Sources Through Robust Parameter Tuning" <doi:10.1007/s00357-020-09368-z>.

Downloads

CRAN

247

Last 30 days

20089th

532

Last 90 days

1.9K

Last year

Trend: +96% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

24

Last 90 days

95

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

6

Last 7 days

20

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

4,299

Files

48

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,638 (61.4%)Docs 1,661 (38.6%)

API

Exported functions

19

Internal functions

0

Recent export changes

v0.1.4+19 tuneandtrain, tuneandtrainExt, tuneandtrainExtBoost +16 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

31.8%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2024-11-14

Latest release

2024-12-16

Avg cadence

32 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.4: 4,058 LOCv0.1.7: 4,299 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies glmnet mboost mlr ranger e1071 pROC RobustPrediction

Version History

3 tracked
new 0.1.7 Mar 10, 2026
updated 0.1.7 ← 0.1.4 diff Dec 15, 2024
new 0.1.4 Nov 13, 2024