Description Usage Arguments Details Value
Building blocks are a means for protecting expression subtrees from modification through variation operators. Often, certain functional units, represented as expression subtrees in GP individuals, should stay intact during evolutionary search. Building blocks at the leafs of expressions can be introduced by adding them to the input variable set. Support for building blocks is planned for a future release of RGP.
1 2 3 | buildingBlock(expr, hardness = 1)
buildingBlockq(expr, hardness = 1)
|
expr |
The expresion to transform to a building block. |
hardness |
The strength of the protection against varition inside
the building block. Must be a numeric in the interval [0.0, 1.0].
A |
buildingBlock
transforms an R expression to a building block
to be used as an element of the input variable (or function) set. The
parameter hardness
(a numerical value in the interval [0.0 , 1.0])
determines the protection strength against variation inside the building
building block. When hardness
is set to 1.0
(the default),
the building block will never be subject to variaton through mutation
or crossover.
buildingBlockq
is equivaltent to buildingBlock
, but
quotes it's argument expr
first.
A building block.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.