Class ConcentricCirclesDataSource

java.lang.Object
org.tribuo.classification.example.DemoLabelDataSource
org.tribuo.classification.example.ConcentricCirclesDataSource
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>

public final class ConcentricCirclesDataSource extends DemoLabelDataSource
A data source for two concentric circles, one per class.
  • Constructor Details

    • ConcentricCirclesDataSource

      public ConcentricCirclesDataSource(int numSamples, long seed, double radius, double classProportion)
      Constructs a data source for two concentric circles, one per class.
      Parameters:
      numSamples - The number of samples to generate.
      seed - The RNG seed.
      radius - The radius of the outer circle.
      classProportion - The proportion of the circle area that forms class 1.
  • Method Details