T
- the type of the valuepublic class HpVal<T> extends Hyperparameter<T>
Hyperparameter
with a known value instead of a range of possible values.
HpVal
s and HpSet
s of HpVal
s 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() |
getName
public T random()
HpVal
.random
in class Hyperparameter<T>
HpVal
public java.lang.String toString()
toString
in class java.lang.Object