p-Wasserstein projections with an L0 penalty
WPL0(
X,
Y = NULL,
theta,
power = 2,
method = c("selection.variable", "projection"),
transport.method = transport_options(),
epsilon = 0.05,
OTmaxit = 0,
parallel = NULL,
...
)
WpProj
object
matrix of covariates
matrix of predictions
optional matrix of coefficients from original model, if relevant
power of the Wasserstein distance
One of "selection.variable" or "projection". Methods decide whether covariate matrix in theta
is preserved ("selection.variable") or if new projections are generated ("projection")
Method for Wasserstein distance calculation. Should be one of the outputs of transport_options()
.
hyperparameter for sinkhorn iterations
max iteration for sinkhorn iterations
foreach backend