Repeats [train_ratio_cnn()] across the default reproducibility seeds `c(42, 7, 2026)` and aggregates the predicted probabilities.
Usage
train_ratio_cnn_multiseed(
X_train,
y_train,
X_test,
seeds = .paper1_default_seeds(),
aggregate = c("mean", "median"),
epochs = 30L,
lr = 0.001,
batch_size = 256L,
class_weight = TRUE,
device = NULL,
verbose = TRUE,
positive = NULL
)Arguments
- X_train
Numeric matrix with training samples in rows and features in columns.
- y_train
Binary outcome vector. Factors, characters, logical values, and integer `0/1` labels are supported.
- X_test
Numeric matrix with test samples in rows and features in columns.
- seeds
Integer vector of seeds. Defaults to the reproducibility triplet `c(42, 7, 2026)`.
- aggregate
How to aggregate per-seed predictions; either `"mean"` or `"median"`.
- epochs
Number of training epochs. Defaults to `30`.
- lr
Learning rate. Defaults to `0.001`.
- batch_size
Mini-batch size. Defaults to `256`.
- class_weight
Logical; if `TRUE`, use inverse-frequency positive-class weighting. Defaults to `TRUE`.
- device
One of `"cpu"`, `"cuda"`, or `NULL`/`"auto"` for automatic selection.
- verbose
Logical; print training progress. Defaults to `TRUE`.
- positive
Optional positive-class label for non-numeric outcomes.