Package io.bhagat.ai.supervised
Class DataSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<DataPoint>
-
- io.bhagat.ai.supervised.DataSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<DataPoint>,java.util.Collection<DataPoint>,java.util.List<DataPoint>,java.util.RandomAccess
public class DataSet extends java.util.ArrayList<DataPoint>
A class to hold multiple data points- Author:
- Bhagat
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description DataSet()creates a data set
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataSetcreate(double[][] inputs, double[][] outputs)creates a dataset from arrays of inputs and outputsvoidshuffle()randomizes the order of the data setjava.lang.StringtoString()string representation of the data set-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
shuffle
public void shuffle()
randomizes the order of the data set
-
create
public static DataSet create(double[][] inputs, double[][] outputs)
creates a dataset from arrays of inputs and outputs- Parameters:
inputs- the inputsoutputs- the outputs- Returns:
- the data set
-
toString
public java.lang.String toString()
string representation of the data set- Overrides:
toStringin classjava.util.AbstractCollection<DataPoint>
-
-