WPL0 | R Documentation |
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 = 100,
parallel = NULL,
...
)
X |
matrix of covariates |
Y |
matrix of predictions |
theta |
optional matrix of coefficients from original model, if relevant |
power |
power of the Wasserstein distance |
method |
One of "selection.variable" or "projection". Methods decide whether covariate matrix in |
transport.method |
Method for Wasserstein distance calculation. Should be one of the outputs of |
epsilon |
hyperparameter for sinkhorn iterations |
OTmaxit |
max iteration for sinkhorn iterations |
parallel |
foreach backend |
WpProj
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.