T
- Type of elements in this data set.public class TabularDataSet<T extends MLDataItem>
extends javax.visrec.ml.data.BasicDataSet<T>
Modifier and Type | Class and Description |
---|---|
static class |
TabularDataSet.Item
Represents a basic data set item (single row) with input tensor and
target vector in a data set.
|
Constructor and Description |
---|
TabularDataSet(int numInputs,
int numOutputs)
Create a new instance of BasicDataSet with specified size of input and output.
|
Modifier and Type | Method and Description |
---|---|
int[] |
countMissingValues() |
int |
countMissingValues(int colIdx) |
String[] |
getColumnNames() |
int |
getNumInputs() |
int |
getNumOutputs() |
String[] |
getTargetColumnsNames() |
boolean[] |
hasMissingValues() |
boolean |
hasMissingValues(int colIdx) |
void |
setColumnNames(String[] columnNames) |
void |
shuffle()
Shuffles the data set items using the default random generator.
|
void |
shuffle(int seed)
Shuffles data set items using java random generator initializes with
specified seed
|
javax.visrec.ml.data.DataSet[] |
split(double... parts)
Splits data set into several parts specified by the input parameter
partSizes.
|
javax.visrec.ml.data.DataSet[] |
split(int parts)
Split data set into specified number of part of equal sizes.
|
getColumns, getItems, setAsTargetColumns, setAsTargetColumns, setColumns
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addAll, clear, get, isEmpty, iterator, shuffle, size, split, split, split, stream
forEach, spliterator
public TabularDataSet(int numInputs, int numOutputs)
numInputs
- number of input featuresnumOutputs
- number of output featurespublic int getNumInputs()
public int getNumOutputs()
public javax.visrec.ml.data.DataSet[] split(int parts)
parts
- public javax.visrec.ml.data.DataSet[] split(double... parts)
split
in interface javax.visrec.ml.data.DataSet<T extends MLDataItem>
split
in class javax.visrec.ml.data.BasicDataSet<T extends MLDataItem>
parts
- sizes of the parts in percentspublic void shuffle()
public void shuffle(int seed)
seed
- a seed number to initialize random generatorRandom
public String[] getColumnNames()
getColumnNames
in class javax.visrec.ml.data.BasicDataSet<T extends MLDataItem>
public void setColumnNames(String[] columnNames)
setColumnNames
in class javax.visrec.ml.data.BasicDataSet<T extends MLDataItem>
public String[] getTargetColumnsNames()
getTargetColumnsNames
in interface javax.visrec.ml.data.DataSet<T extends MLDataItem>
getTargetColumnsNames
in class javax.visrec.ml.data.BasicDataSet<T extends MLDataItem>
public boolean hasMissingValues(int colIdx)
public boolean[] hasMissingValues()
public int countMissingValues(int colIdx)
public int[] countMissingValues()
Copyright © 2022. All rights reserved.