public class ListDataSource<T extends Output<T>> extends Object implements DataSource<T>
Example
s
along with their DataSourceProvenance
and an OutputFactory
.
Used for machine generated data, or some other place where it's difficult to write a specific data source.
Constructor and Description |
---|
ListDataSource(List<Example<T>> list,
OutputFactory<T> factory,
DataSourceProvenance provenance) |
Modifier and Type | Method and Description |
---|---|
OutputFactory<T> |
getOutputFactory()
Returns the OutputFactory associated with this Output subclass.
|
DataSourceProvenance |
getProvenance() |
Iterator<Example<T>> |
iterator() |
int |
size()
Number of examples.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ListDataSource(List<Example<T>> list, OutputFactory<T> factory, DataSourceProvenance provenance)
public int size()
public OutputFactory<T> getOutputFactory()
DataSource
getOutputFactory
in interface DataSource<T extends Output<T>>
public DataSourceProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<DataSourceProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.