| layer | R Documentation |
layer object store specific information on each layer in tree for StoSOO
nodesList[list] List of nodes ('node' class object) in this layer
depth[numeric] Depth of this layer
optimizeType[character] Either 'deterministic' for optimizing a deterministic function or 'stochastic' for a stochastic one
nChildrenPerExpansion[numeric] Number of children per expansion
nNodes[numeric] Number nodes in this layer
positions[numeric] Positions of the nodes in this layer
ucbValues[numeric] Upper confidence bounds of the nodes in this layer
rewardMeans[numeric] Empirical averages of 'rewards' of the nodes in this layer
isLeaves[numeric] Are the nodes in this layer leaves of the tree or not
withCheck[logical] Check arguments for 'node', 'layer', and 'tree' class or not
maxUcbValues[numeric] Maximum UCB value (or ‘rewardMean' for ’deterministic' function) of the leaf node in the layer
positionMaxUcbValues[numeric] Position of the leaf node which shows maximum UCB value (or ‘rewardMean' for ’deterministic' function)
maxUcbValuesSoFar[numeric] Maximum UCB value for the layers shallower than this layer
new()Create a new layer object
layer$new( nodesList, depth = NULL, optimizeType, nChildrenPerExpansion, withCheck = FALSE )
nodesList[list] List of nodes ('node' class object) in this layer
depth[numeric] Depth of this layer
optimizeType[character] Either 'deterministic' for optimizing a deterministic function or 'stochastic' for a stochastic one
nChildrenPerExpansion[numeric] Number of children per expansion
withCheck[logical] Check arguments for 'node', 'layer', and 'tree' class or not
addNodes()Add new nodes to the layer object
layer$addNodes(newNodesList = NULL)
newNodesList[list] List of new nodes ('node' class object) to be added to this layer
sortedByPosition()Sort nodes in this layer by position
layer$sortedByPosition()
evaluateMaximum()Evaluate maximum value of the leaf node in this layer
layer$evaluateMaximum()
performOneAction()Update layer information once
layer$performOneAction(maxUcbValuesSoFar)
maxUcbValuesSoFar[numeric] Maximum UCB value for the layers shallower than this layer
print()Display information about the object
layer$print()
clone()The objects of this class are cloneable with this method.
layer$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.