Description Usage Arguments Value Examples
View source: R/bananas_trainset.R
bananas toy data set
1 | bananas_trainset(nP = 50, nU = 100, nN = 0, seed = NULL)
|
nP |
number of positive samples |
nU |
number of unlabeled samples |
nN |
number of negative samples |
seed |
seed point |
data frame with columns y (class label), x1 & x2 (predictor variables)
1 2 3 4 5 6 7 8 | ## Not run:
trset <- bananas_trainset(nP=50, nU=100, nN=0, seed=0)
plot(trset[, -1], col=(trset$y=="un")+1)
trset <- bananas_trainset(nP=50, nU=0, nN=100, seed=0)
plot(trset[, -1], col=(trset$y=="neg")+1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.