Skip to content

Dataset

Dataset - CreateDataset_CreateFromFeatures

Constructs a new Dataset object given input features.

IN

Name Type Description
InFeatures FloatArrayArray Input features.
InHeader StringArray Input header (containing the features' names). If empty, is not considered.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutDataset Dataset The Dataset instance.
Error ErrorState Gets the execution error message

Dataset - CreateDataset_CreateFromFeaturesAndClasses

Constructs a new Dataset object given input features and their corresponding classes.

IN

Name Type Description
InFeatures FloatArrayArray Input features.
InClasses IntArray Input classes.
InHeader StringArray Input header (containing the features' names). If empty, is not considered.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutDataset Dataset The Dataset instance.
Error ErrorState Gets the execution error message

Dataset - CreateDataset_CreateFromFeaturesAndLabels

Constructs a new Dataset object given input features and their corresponding labels.

IN

Name Type Description
InFeatures FloatArrayArray Input features.
InLabels StringArray Input labels.
InHeader StringArray Input header (containing the features' names). If empty, is not considered.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutDataset Dataset The Dataset instance.
Error ErrorState Gets the execution error message

Dataset - GetLabelsSize

Returns the number of labels in the dataset.

IN

Name Type Description
InDataset Dataset The input Dataset
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutInt Int Labels size.
Error ErrorState Gets the execution error message

Dataset - GetSize

Returns the number of samples in the entire dataset.

IN

Name Type Description
InDataset Dataset The input Dataset
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutInt Int Dataset size.
Error ErrorState Gets the execution error message

Dataset - LoadFromCSV

Loads a dataset from a CSV file.

IN

Name Type Description
InFilename PathFile Filename.
InHeaderLinesToSkip Int Number of header lines (to exclude when extracting features).
InDelimiter Char Delimiter between features.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutDataset Dataset Dataset
Error ErrorState Gets the execution error message

Dataset - SaveToCSV

Saves the dataset to a CSV file.

IN

Name Type Description
InDataset Dataset The input Dataset
InFilename PathFile Filename.
InDelimiter Char Delimiter between features.
InWriteHeader Bool Whether to write the header as the first line.
InWriteLabels Bool Whether to write the labels in the first column.
InDecimalPrecision Int How many decimal places to write.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutDataset Dataset The modified Core.Data.Types.Dataset
Error ErrorState Gets the execution error message

Dataset - Split

Splits the dataset into training and testing sets.

IN

Name Type Description
InDataset Dataset The input Dataset
InTrainingRatio Float Ratio of the training set.
InShuffle Bool Whether to shuffle the dataset before splitting.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutTrainDataset Dataset Training dataset.
OutTestDataset Dataset Testing dataset.
Error ErrorState Gets the execution error message

Dataset - Standardize

Standardize dataset features (i.e., zero mean, unitary standard deviation)

IN

Name Type Description
InDataset Dataset The input Dataset
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutDataset Dataset The modified Core.Data.Types.Dataset
Error ErrorState Gets the execution error message

Dataset - SaveFeatureToDataset

Saves image and corresponding Array of features into a dataset folder and append them to dataset.oeml file, where the N-th image corresponds to the N-th row of the file.If InHeaderNames specified, its size must be the same of InFeature

IN

Name Type Description
InFolder PathFile The folder where data must be saved.
InImage Image The current image related to input InFeatures.
InFeatures FloatArray The current array of features.
InHeaderNames StringArray The header's names that will appear in the first row.The header length must be the same size of features.
InImageFileFormat Enum < ImageFileFormat > Defines the format used to save images
InReset Bool Specifies if the InFolder must be resetted before appending new data.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutNumRecords Int Gets the number of records (images and rows) that are currently saved in dataset folder.TYPE : Int
Error ErrorState Gets the execution error message

Dataset - GetClasses

Returns all the classes.

IN

Name Type Description
InDataset Dataset The input Dataset
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
Outint IntArray Classes.
Error ErrorState Gets the execution error message

Dataset - GetFeatures

Returns all the features.

IN

Name Type Description
InDataset Dataset The input Dataset
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
Outfloat FloatArrayArray Features.
Error ErrorState Gets the execution error message

Dataset - GetHeader

Returns the file header.

IN

Name Type Description
InDataset Dataset The input Dataset
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
Outstring StringArray Header.
Error ErrorState Gets the execution error message

Dataset - GetLabels

Returns all the labels.

IN

Name Type Description
InDataset Dataset The input Dataset
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
Outstring StringArray Labels.
Error ErrorState Gets the execution error message