CreateDataSet: Create DataSet

Description Usage Arguments Value Examples

Description

Creates a DataSet object type, to be used with the models provided with this package

Usage

1
CreateDataSet(X, Y, Name, type, task)

Arguments

X

A Matrix.

Y

A numeric vector of classes or values.

Name

A character string, as dataset name.

type

A character string, the types of values for X (numeric or integer).

task

A character string vector of task to be performed, check GetPossibleTasks().

Value

A DataSet object type.

Examples

1
2
3
4
5
6
X <- as.matrix(cbind(runif(n = 100), runif(n = 100)))
Y <- sample(x = c(1, 2), size = 100, replace = TRUE)
Name <- 'randomData'
type <- 'numeric'
task <- 'BinClas'
newData <- CreateDataSet(X = X, Y = Y, Name = Name, type = type, task = task)

PauloCirino/MLAT documentation built on May 13, 2019, 1:22 p.m.