Package smile.regression
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 aOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.method()
Returns the value of themethod
record component.static OLS.Options
of
(Properties props) Returns the options from properties.boolean
Returns the value of therecursive
record component.boolean
stderr()
Returns the value of thestderr
record 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 String
toString()
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-
stderr
public boolean stderr()Returns the value of thestderr
record component.- Returns:
- the value of the
stderr
record component
-
recursive
public boolean recursive()Returns the value of therecursive
record component.- Returns:
- the value of the
recursive
record component
-