SSLDataFrameToMatrices {RSSL} | R Documentation |
Convert data.frame to matrices for semi-supervised learners
Description
Given a formula object and a data.frame, extract the design matrix X for the labeled observations, X_u for the unlabeled observations and y for the labels of the labeled observations. Note: always removes the intercept
Usage
SSLDataFrameToMatrices(model, D)
Arguments
model |
Formula object with model |
D |
data.frame object with objects |
Value
list object with the following objects:
X |
design matrix of the labeled data |
X_u |
design matrix of the unlabeled data |
y |
integer vector indicating the labels of the labeled data |
classnames |
names of the classes corresponding to the integers in y |
See Also
Other RSSL utilities:
LearningCurveSSL()
,
add_missinglabels_mar()
,
df_to_matrices()
,
measure_accuracy()
,
missing_labels()
,
split_dataset_ssl()
,
split_random()
,
true_labels()
[Package RSSL version 0.9.7 Index]