Record Class OLS.Options
java.lang.Object
java.lang.Record
smile.regression.OLS.Options
- Record Components:
method- the fitting method.stderr- if true, compute the standard errors of the estimate of parameters.recursive- if true, the return model supports recursive least squares.
- Enclosing class:
OLS
public static record OLS.Options(OLS.Method method, boolean stderr, boolean recursive)
extends Record
Least squares hyperparameters.
-
Constructor Summary
ConstructorsConstructorDescriptionOptions()Constructor.Options(OLS.Method method, boolean stderr, boolean recursive) Creates an instance of aOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.static OLS.Optionsof(Properties props) Returns the options from properties.booleanReturns the value of therecursiverecord component.booleanstderr()Returns the value of thestderrrecord component.Returns the persistent set of hyperparameters includingsmile.ols.method(default "svd") is a string (svd or qr) for the fitting methodsmile.ols.standard.error(default true) is a boolean.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toProperties
Returns the persistent set of hyperparameters includingsmile.ols.method(default "svd") is a string (svd or qr) for the fitting methodsmile.ols.standard.error(default true) is a boolean. If true, compute the estimated standard errors of the estimate of parameterssmile.ols.recursive(default true) is a boolean. If true, the return model supports recursive least squares
- Returns:
- the persistent set.
-
of
Returns the options from properties.- Parameters:
props- the hyperparameters.- Returns:
- the options.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
method
-
stderr
-
recursive
-