Documentation of 'jsat.regression.RidgeRegression' Java class
RidgeRegression
jsat.regression

Class RidgeRegression

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Parameterized, Regressor


    public class RidgeRegression
    extends java.lang.Object
    implements Regressor, Parameterized
    An implementation of Ridge Regression that finds the exact solution. Ridge Regression is equivalent to MultipleLinearRegression with an added L2 penalty for the weight vector.

    Two different methods of finding the solution can be used. This algorithm should be used only for small dimensions problems with a reasonable number of example points.
    For large dimension sparse problems, or dense problems with many data points (or both), use the StochasticRidgeRegression. For small data sets that pose non-linear problems, you can also use KernelRidgeRegression
    See Also:
    Serialized Form
    • Constructor Detail

      • RidgeRegression

        public RidgeRegression()
      • RidgeRegression

        public RidgeRegression(double regularization)
    • Method Detail

      • setLambda

        public void setLambda(double lambda)
        Sets the regularization parameter used.
        Parameters:
        lambda - the positive regularization constant in (0, Inf)
      • getLambda

        public double getLambda()
        Returns the regularization constant in use
        Returns:
        the regularization constant in use
      • setSolverMode

        public void setSolverMode(RidgeRegression.SolverMode mode)
        Sets which solver is to be used
        Parameters:
        mode - the solver mode to use

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.