Package se.hb.jcp.ml

Interface IClassifier

    • Method Detail

      • fit

        void fit​(cern.colt.matrix.DoubleMatrix2D x,
                 double[] y)
        Trains this classifier using the supplied data.
        Parameters:
        x - the attributes of the instances.
        y - the targets of the instances.
      • fitNew

        IClassifier fitNew​(cern.colt.matrix.DoubleMatrix2D x,
                           double[] y)
        Trains and returns a copy of this classifier using the supplied data.
        Parameters:
        x - the attributes of the instances.
        y - the targets of the instances.
        Returns:
        a new IClassifier instance trained with the supplied data and using the same algorithm and parameter settings as the parent instance.
      • predict

        double predict​(cern.colt.matrix.DoubleMatrix1D instance)
        Predicts the target for the supplied instance.
        Parameters:
        instance - the instance
        Returns:
        the predicted target of the instance.