Record Class GaussianProcessRegression.Options
java.lang.Object
java.lang.Record
smile.regression.GaussianProcessRegression.Options
- Record Components:
noise- the noise variance, which also works as a regularization parameter.normalize- the flag if normalize the response variable.tol- the stopping tolerance for HPO.maxIter- the maximum number of iterations for HPO. No HPO ifmaxIter <= 0.
- Enclosing class:
GaussianProcessRegression<T>
public static record GaussianProcessRegression.Options(double noise, boolean normalize, double tol, int maxIter)
extends Record
Gaussian process regression hyperparameters.
-
Constructor Summary
Constructors -
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.intmaxIter()Returns the value of themaxIterrecord component.doublenoise()Returns the value of thenoiserecord component.booleanReturns the value of thenormalizerecord component.of(Properties props) Returns the options from properties.doubletol()Returns the value of thetolrecord component.Returns the persistent set of hyperparameters.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(double noise, boolean normalize, double tol, int maxIter) Constructor. -
Options
public Options(double noise) Constructor.- Parameters:
noise- the noise variance, which also works as a regularization parameter.
-
Options
public Options(double noise, boolean normalize) Constructor.- Parameters:
noise- the noise variance, which also works as a regularization parameter.normalize- the flag if normalize the response variable.
-
-
Method Details
-
toProperties
Returns the persistent set of hyperparameters.- 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
noise
-
normalize
-
tol
-
maxIter
-