Package org.tribuo.datasource
Class AggregateConfigurableDataSource<T extends Output<T>>
java.lang.Object
org.tribuo.datasource.AggregateConfigurableDataSource<T>
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<DataSourceProvenance>
,Iterable<Example<T>>
,ConfigurableDataSource<T>
,DataSource<T>
public class AggregateConfigurableDataSource<T extends Output<T>>
extends Object
implements ConfigurableDataSource<T>
Aggregates multiple
ConfigurableDataSource
s, uses AggregateDataSource.IterationOrder
to control the
iteration order.
Identical to AggregateDataSource
except it can be configured.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Provenance for theAggregateConfigurableDataSource
. -
Constructor Summary
ConstructorDescriptionCreates an aggregate data source which will iterate the provided sources in the order of the list (i.e., usingAggregateDataSource.IterationOrder.SEQUENTIAL
.AggregateConfigurableDataSource
(List<ConfigurableDataSource<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 com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AggregateConfigurableDataSource
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.
-
AggregateConfigurableDataSource
public AggregateConfigurableDataSource(List<ConfigurableDataSource<T>> sources, AggregateDataSource.IterationOrder order) 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
-