| xplus | R Documentation |
Fit a PLUS-derived model for positive-unlabeled learning.
xplus(
x,
y,
alpha = 1,
sample_use_time = 30,
learning_rate = 1,
qq = 0.1,
verbose = FALSE,
nfolds = 4,
max_iter = 10000,
convergence_threshold = 0.9,
seed = NULL,
sigmoid_scale = 10,
min_iter = 5,
stability_window = 5,
min_coverage = 0.9,
sampling = c("bootstrap", "unique"),
cv_measure = c("deviance", "auc"),
degenerate_threshold = 1e-06
)
x |
Finite numeric feature matrix with at least two columns. |
y |
Binary vector where |
alpha |
Elastic-net mixing parameter in |
sample_use_time |
Unlabeled-sampling budget inherited from the reference implementation: maximum number of completed sampling rounds containing each unlabeled case, not the number of bootstrap copies within a round. |
learning_rate |
Pseudo-label smoothing rate in |
qq |
Quantile used to define the positive-reference cutoff. |
verbose |
Logical; print iterative progress messages. |
nfolds |
Requested CV folds, an integer at least three; reduced for small classes. |
max_iter |
Maximum number of pseudo-labeling iterations. |
convergence_threshold |
Required stability score in |
seed |
Integer or |
sigmoid_scale, degenerate_threshold |
Positive sigmoid scale and nonnegative residual-clamping tolerance. |
min_iter, stability_window |
Minimum iterations and consecutive stable iterations required before declaring convergence.
|
min_coverage |
Minimum fraction of unlabeled cases sampled before convergence, in |
sampling, cv_measure |
Sampling convention ( |
Core PLUS behavior alternates between fitting penalized logistic models on known positives plus sampled unlabeled cases, anchoring predictions to a positive quantile cutoff, and iteratively relabeling unlabeled samples.
An object of class "xplus" containing predictions, original and final labels, pseudo-labels, fallback metadata, sampling counts, and history.
Zhou et al. (2022). doi:10.1371/journal.pcbi.1009956
predict.xplus(), summary.xplus(), assess.xplus()
set.seed(1)
x <- matrix(rnorm(200 * 10), ncol = 10)
y <- c(rep(1, 40), rep(0, 160))
fit <- xplus(x, y, max_iter = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.