T - the type of the valuepublic class HpVal<T> extends Hyperparameter<T>
Hyperparameter with a known value instead of a range of possible values.
HpVals and HpSets of HpVals are used to represent sampled
hyperparameters.
name| Constructor and Description |
|---|
HpVal(java.lang.String name,
T value)
Cosntructs a new
HpVal. |
| Modifier and Type | Method and Description |
|---|---|
T |
random()
Returns a random value for the hyperparameter for a range of a fixed value if it is a
HpVal. |
java.lang.String |
toString() |
getNamepublic T random()
HpVal.random in class Hyperparameter<T>HpValpublic java.lang.String toString()
toString in class java.lang.Object