Class SimpleDataset<D,T>
java.lang.Object
smile.data.SimpleDataset<D,T>
- Type Parameters:
D- the data type.T- the target type.
- All Implemented Interfaces:
Iterable<SampleInstance<D,T>>, Dataset<D, T>
- Direct Known Subclasses:
BinarySparseDataset, BinarySparseSequenceDataset, SparseDataset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(int i) Returns the instance at the specified index.iterator()intsize()Returns the number of elements in this collection.stream()Returns a (possibly parallel) Stream with this collection as its source.List<SampleInstance<D, T>> toList()Returns theListof data items.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
SimpleDataset
Constructor- Parameters:
instances- The sample instances.
-
-
Method Details
-
size
-
get
-
stream
-
iterator
-
toList
-