Documentation of 'jsat.classifiers.Classifier' Java class
Classifier
jsat.classifiers

Interface Classifier

    • Method Detail

      • classify

        CategoricalResults classify(DataPoint data)
        Performs classification on the given data point.
        Parameters:
        data - the data point to classify
        Returns:
        the results of the classification.
        Throws:
        UntrainedModelException - if the method is called before the model has been trained
        ModelMismatchException - if the given data point is incompatible with the model
      • train

        void train(ClassificationDataSet dataSet,
                   boolean parallel)
        Trains the classifier and constructs a model for classification using the given data set. If the training method knows how, it will used the threadPool to conduct training in parallel. This method will block until the training has completed.
        Parameters:
        dataSet - the data set to train on
        parallel - true if multiple threads should be used to train the model. false if it should be done in a single threaded manner.
        Throws:
        FailedToFitException - if the model is unable to be constructed for some reason
      • train

        default void train(ClassificationDataSet dataSet)
        Trains the classifier and constructs a model for classification using the given data set.
        Parameters:
        dataSet - the data set to train on
        Throws:
        FailedToFitException - if the model is unable to be constructed for some reason
      • supportsWeightedData

        boolean supportsWeightedData()
        Indicates whether the model knows how to train using weighted data points. If it does, the model will train assuming the weights. The values returned by this method may change depending on the parameters set for the model.
        Returns:
        true if the model supports weighted data, false otherwise

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.