Documentation of 'jsat.classifiers.linear.SMIDAS' Java class
SMIDAS
jsat.classifiers.linear

Class SMIDAS

    • Constructor Detail

      • SMIDAS

        public SMIDAS(double eta)
        Creates a new SMIDAS learner
        Parameters:
        eta - the learning rate for each iteration
      • SMIDAS

        public SMIDAS(double eta,
                      int epochs,
                      double lambda,
                      StochasticSTLinearL1.Loss loss)
        Creates a new SMIDAS learner
        Parameters:
        eta - the learning rate for each iteration
        epochs - the number of learning iterations
        lambda - the regularization penalty
        loss - the loss function to use
      • SMIDAS

        public SMIDAS(double eta,
                      int epochs,
                      double lambda,
                      StochasticSTLinearL1.Loss loss,
                      boolean reScale)
        Creates a new SMIDAS learner
        Parameters:
        eta - the learning rate for each iteration
        epochs - the number of learning iterations
        lambda - the regularization penalty
        loss - the loss function to use
        reScale - whether or not to rescale the feature values
    • Method Detail

      • setEta

        public void setEta(double eta)
        Sets the learning rate used during training
        Parameters:
        eta - the learning rate to use
      • getEta

        public double getEta()
        Returns the current learning rate used during training
        Returns:
        the learning rate in use
      • classify

        public CategoricalResults classify(DataPoint data)
        Description copied from interface: Classifier
        Performs classification on the given data point.
        Parameters:
        data - the data point to classify
        Returns:
        the results of the classification.
      • regress

        public double regress(DataPoint data)
      • 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.
        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.
        Parameters:
        dataSet - the data set to train on
      • supportsWeightedData

        public boolean supportsWeightedData()
        Description copied from interface: Classifier
        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.