Class AbstractClassifier

    • Constructor Detail

      • AbstractClassifier

        public AbstractClassifier()
    • Method Detail

      • train

        public void train​(de.jungblut.math.DoubleVector[] features,
                          de.jungblut.math.DoubleVector[] outcome)
        Description copied from interface: Classifier
        Trains this classifier with the given features and the outcome.
        Specified by:
        train in interface Classifier
        outcome - the outcome must have classes labeled as doubles. E.G. in the binary case you have a single element and decide between 0d and 1d. In higher dimensional cases you have each of these single elements mapped to a dimension.
      • train

        public void train​(java.lang.Iterable<de.jungblut.math.DoubleVector> features,
                          java.lang.Iterable<de.jungblut.math.DoubleVector> outcome)
        Description copied from interface: Classifier
        Trains this classifier with the given features and the outcome. This is the streaming method for training, it takes parallel iterables.
        Specified by:
        train in interface Classifier
        outcome - the outcome must have classes labeled as doubles. E.G. in the binary case you have a single element and decide between 0d and 1d. In higher dimensional cases you have each of these single elements mapped to a dimension.