Class NoisyInterlockingCrescentsDataSource
java.lang.Object
org.tribuo.classification.example.DemoLabelDataSource
org.tribuo.classification.example.NoisyInterlockingCrescentsDataSource
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<DataSourceProvenance>
,Iterable<Example<Label>>
,ConfigurableDataSource<Label>
,DataSource<Label>
A data source of two interleaved half circles with some zero mean Gaussian noise applied to each point.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.tribuo.classification.example.DemoLabelDataSource
DemoLabelDataSource.DemoLabelDataSourceProvenance
-
Field Summary
Fields inherited from class org.tribuo.classification.example.DemoLabelDataSource
examples, factory, FIRST_CLASS, numSamples, rng, SECOND_CLASS, seed, X1, X2
-
Constructor Summary
ConstructorDescriptionNoisyInterlockingCrescentsDataSource
(int numSamples, long seed, double variance) Constructs a noisy interlocking crescents data source. -
Method Summary
Methods inherited from class org.tribuo.classification.example.DemoLabelDataSource
getOutputFactory, getProvenance, iterator
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
-
NoisyInterlockingCrescentsDataSource
public NoisyInterlockingCrescentsDataSource(int numSamples, long seed, double variance) Constructs a noisy interlocking crescents data source.It's the same as
InterlockingCrescentsDataSource
but each point has Gaussian noise with zero mean and the specified variance added to it.- Parameters:
numSamples
- The number of samples to generate.seed
- The RNG seed.variance
- The variance of the Gaussian noise.
-
-
Method Details
-
postConfig
public void postConfig()Used by the OLCUT configuration system, and should not be called by external code.- Specified by:
postConfig
in interfacecom.oracle.labs.mlrg.olcut.config.Configurable
- Overrides:
postConfig
in classDemoLabelDataSource
-
generate
Description copied from class:DemoLabelDataSource
Generates the examples using the configured fields.Is called internally by
DemoLabelDataSource.postConfig()
.- Specified by:
generate
in classDemoLabelDataSource
- Returns:
- The generated examples.
-
toString
-