public class DropoutSpace extends java.lang.Object implements ParameterSpace<IDropout>
Constructor and Description |
---|
DropoutSpace(double activationRetainProbability) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ParameterSpace> |
collectLeaves()
Collect a list of parameters, recursively.
|
java.util.Map<java.lang.String,ParameterSpace> |
getNestedSpaces()
Get a list of nested parameter spaces by name.
|
IDropout |
getValue(double[] parameterValues)
Generate a candidate given a set of values.
|
boolean |
isLeaf()
Is this ParameterSpace a leaf? (i.e., does it contain other ParameterSpaces internally?)
|
int |
numParameters()
Get the total number of parameters (hyperparameters) to be optimized.
|
void |
setIndices(int... indices)
For leaf ParameterSpaces: set the indices of the leaf ParameterSpace.
|
public IDropout getValue(double[] parameterValues)
ParameterSpace
getValue
in interface ParameterSpace<IDropout>
parameterValues
- A set of values, each in the range [0,1], of length ParameterSpace.numParameters()
public int numParameters()
ParameterSpace
numParameters
in interface ParameterSpace<IDropout>
public java.util.List<ParameterSpace> collectLeaves()
ParameterSpace
collectLeaves
in interface ParameterSpace<IDropout>
public java.util.Map<java.lang.String,ParameterSpace> getNestedSpaces()
ParameterSpace
getNestedSpaces
in interface ParameterSpace<IDropout>
public boolean isLeaf()
ParameterSpace
isLeaf
in interface ParameterSpace<IDropout>
public void setIndices(int... indices)
ParameterSpace
ParameterSpace.numParameters()
. Throws exception if ParameterSpace.isLeaf()
is false.setIndices
in interface ParameterSpace<IDropout>
indices
- Indices to set. Length should equal ParameterSpace.numParameters()