bananas_trainset: bananas toy data set

Description Usage Arguments Value Examples

View source: R/bananas_trainset.R

Description

bananas toy data set

Usage

1
bananas_trainset(nP = 50, nU = 100, nN = 0, seed = NULL)

Arguments

nP

number of positive samples

nU

number of unlabeled samples

nN

number of negative samples

seed

seed point

Value

data frame with columns y (class label), x1 & x2 (predictor variables)

Examples

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)

benmack/oneClass documentation built on Dec. 15, 2020, 7:38 p.m.