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

Class BaseUpdateableClassifier

    • Constructor Detail

      • BaseUpdateableClassifier

        public BaseUpdateableClassifier()
        Default constructor that does nothing
      • BaseUpdateableClassifier

        public BaseUpdateableClassifier(BaseUpdateableClassifier toCopy)
        Copy constructor
        Parameters:
        toCopy - object to copy
    • Method Detail

      • setEpochs

        public void setEpochs(int epochs)
        Sets the number of whole iterations through the training set that will be performed for training
        Parameters:
        epochs - the number of whole iterations through the data set
      • getEpochs

        public int getEpochs()
        Returns the number of epochs used for training
        Returns:
        the number of epochs used for training
      • train

        public void train(ClassificationDataSet dataSet,
                          boolean parallel)
        Description copied from interface: Classifier
        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.
        Specified by:
        train in interface Classifier
        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.
      • train

        public void train(ClassificationDataSet dataSet)
        Description copied from interface: Classifier
        Trains the classifier and constructs a model for classification using the given data set.
        Specified by:
        train in interface Classifier
        Parameters:
        dataSet - the data set to train on
      • trainEpochs

        public static void trainEpochs(ClassificationDataSet dataSet,
                                       UpdateableClassifier toTrain,
                                       int epochs)
        Performs training on an updateable classifier by going over the whole data set in random order one observation at a time, multiple times.
        Parameters:
        dataSet - the data set to train from
        toTrain - the classifier to train
        epochs - the number of passes through the data set

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.