public final class HpSet extends Hyperparameter<HpSet>
Hyperparameter
s.name
Constructor and Description |
---|
HpSet(java.lang.String name)
Cosntructs a new empty
HpSet . |
HpSet(java.lang.String name,
java.util.List<Hyperparameter<?>> hyperParams)
Cosntructs a new
HpSet . |
Modifier and Type | Method and Description |
---|---|
void |
add(Hyperparameter<?> hparam)
Adds a hyperparameter to the set.
|
Hyperparameter<?> |
getHParam(java.lang.String name)
Returns the hyperparameter in the set with the given name.
|
HpSet |
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 HpSet(java.lang.String name, java.util.List<Hyperparameter<?>> hyperParams)
HpSet
.name
- the name of the hyperparameter sethyperParams
- the included hyperparameters in the setpublic HpSet(java.lang.String name)
HpSet
.name
- the name of the hyperparameter setpublic void add(Hyperparameter<?> hparam)
hparam
- the hyperparameter to addpublic Hyperparameter<?> getHParam(java.lang.String name)
name
- the name of the hyperparameter to returnpublic HpSet random()
HpVal
.random
in class Hyperparameter<HpSet>
HpVal
public java.lang.String toString()
toString
in class java.lang.Object