forked from jkrijthe/RSSL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSSLDataFrameToMatrices.Rd
More file actions
35 lines (34 loc) · 1.17 KB
/
SSLDataFrameToMatrices.Rd
File metadata and controls
35 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Evaluate.R
\name{SSLDataFrameToMatrices}
\alias{SSLDataFrameToMatrices}
\title{Convert data.frame to matrices for semi-supervised learners}
\usage{
SSLDataFrameToMatrices(model, D)
}
\arguments{
\item{model}{Formula object with model}
\item{D}{data.frame object with objects}
}
\value{
list object with the following objects:
\item{X}{design matrix of the labeled data}
\item{X_u}{design matrix of the unlabeled data}
\item{y}{integer vector indicating the labels of the labeled data}
\item{classnames}{names of the classes corresponding to the integers in y}
}
\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
}
\seealso{
Other RSSL utilities:
\code{\link{LearningCurveSSL}()},
\code{\link{add_missinglabels_mar}()},
\code{\link{df_to_matrices}()},
\code{\link{measure_accuracy}()},
\code{\link{missing_labels}()},
\code{\link{split_dataset_ssl}()},
\code{\link{split_random}()},
\code{\link{true_labels}()}
}
\concept{RSSL utilities}