DataSet.Column, DataSet.ColumnType| Constructor and Description |
|---|
BasicDataSet(DataSet.Column[] cols)
Creates an instance of
BasicDataSet |
BasicDataSet(List<E> elements)
Creates an instance of
BasicDataSet |
| Modifier and Type | Method and Description |
|---|---|
DataSet<E> |
add(E item)
Adds an element to this data set.
|
DataSet<E> |
addAll(DataSet<E> items)
|
void |
clear()
Clear items of the
DataSet |
E |
get(int index)
Get an item from the
DataSet |
List<E> |
getItems()
Get a collection of the items in the
DataSet |
String[] |
getTargetLabels() |
boolean |
isEmpty()
Determines whether the
DataSet is empty or not. |
Iterator<E> |
iterator() |
int |
size()
Get the number of elements in
DataSet |
DataSet<E>[] |
split(double... parts)
Split data set into parts of specified sizes
|
DataSet<E>[] |
split(int parts)
Split dataset into specified number of equally sized parts.
|
DataSet<E>[] |
split(int parts,
Random rnd)
Split dataset into specified number of equally sized parts, using specified random generator.
|
DataSet[] |
split(Random rnd,
double... parts)
Split data set into parts of specified sizes using specified random generator
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic BasicDataSet(DataSet.Column[] cols)
BasicDataSetcols - columns of the data set.public BasicDataSet(List<E> elements)
BasicDataSetelements - items of the data set.public DataSet<E> add(E item)
DataSetpublic boolean isEmpty()
DataSetDataSet is empty or not.public int size()
DataSetDataSetpublic DataSet<E>[] split(int parts)
DataSetpublic DataSet<E>[] split(int parts, Random rnd)
DataSetpublic DataSet<E>[] split(double... parts)
DataSetpublic DataSet[] split(Random rnd, double... parts)
DataSetpublic String[] getTargetLabels()
Copyright © 2019. All rights reserved.