Description Usage Arguments Value Examples
SSLBudget outputs what unlabeled data points should be labelled based on the budget
1 |
X |
n * p matrix of labelled data points. Here the rows contains the n labelled data points. Each data point belongs to R^p |
Y |
A numeric n vector of labels of Xtilde |
L |
positive integer - number of data points that user can label |
Z |
m * p matrix of Unlabeled data points |
K |
Number of classes, ( If K is NULL, it calculates K as maximum entry in Y) |
Tolabel - A L*p matrix of data points from Z that user should label
1 2 3 4 5 6 7 8 | X <- rbind(matrix(rnorm(10,0,1),5,2),matrix(rnorm(10,1,2),5,2), matrix(rnorm(10,4,3),5,2))
fold_ids <- sample(1:15)
X <- X[fold_ids, ]
Y <- c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3)
Y <- Y[fold_ids]
Z <- rbind(matrix(rnorm(80,0,1),40,2),matrix(rnorm(80,1,2),40,2), matrix(rnorm(80,4,3),40,2))
Z <- Z[sample(1:120), ]
out <- SSLBudget(X, Y,5, Z,3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.