readTrainSet: Training set reading

View source: R/sampleClustering.R

readTrainSetR Documentation

Training set reading

Description

Read a training set built from prototypes, to train a classifier for supervised classification.

Usage

readTrainSet(
  traindir,
  keep_ = FALSE,
  operations = NULL,
  RclusTool.env = initParameters()
)

Arguments

traindir

character vector specifying the path of the training set.

keep_

boolean: if FALSE (default), the '_' directory is not considered in the training set.

operations

list of data.frames describing all preprocessing operations.

RclusTool.env

environment in which all global parameters, raw data and results are stored.

Details

readTrainSet reads a training set built from prototypes, to train a classifier for supervised classification

Value

prototypes data.frame containing the features of each prototype associated to a class.

See Also

dropTrainSetVars

Examples


rep <- system.file("extdata", package="RclusTool")
traindir <- file.path(rep, "train_example")
train <- readTrainSet(traindir)


RclusTool documentation built on May 29, 2024, 5:23 a.m.