Package org.tribuo.datasource
Class AggregateDataSource<T extends Output<T>>
java.lang.Object
org.tribuo.datasource.AggregateDataSource<T>
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.Provenancable<DataSourceProvenance>
,Iterable<Example<T>>
,DataSource<T>
Aggregates multiple
DataSource
s, uses AggregateDataSource.IterationOrder
to control the
iteration order.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Provenance for theAggregateDataSource
.static enum
Specifies the iteration order of the inner sources. -
Constructor Summary
ConstructorDescriptionAggregateDataSource
(List<DataSource<T>> sources) Creates an aggregate data source which will iterate the provided sources in the order of the list (i.e., usingAggregateDataSource.IterationOrder.SEQUENTIAL
.AggregateDataSource
(List<DataSource<T>> sources, AggregateDataSource.IterationOrder order) Creates an aggregate data source using the supplied sources and iteration order. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AggregateDataSource
Creates an aggregate data source which will iterate the provided sources in the order of the list (i.e., usingAggregateDataSource.IterationOrder.SEQUENTIAL
.- Parameters:
sources
- The sources to aggregate.
-
AggregateDataSource
Creates an aggregate data source using the supplied sources and iteration order.- Parameters:
sources
- The sources to iterate.order
- The iteration order.
-
-
Method Details
-
toString
-
getOutputFactory
Description copied from interface:DataSource
Returns the OutputFactory associated with this Output subclass.- Specified by:
getOutputFactory
in interfaceDataSource<T extends Output<T>>
- Returns:
- The output factory.
-
iterator
-
getProvenance
-