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
The expresion to transform to a building block.
The strength of the protection against varition inside
the building block. Must be a numeric in the interval [0.0, 1.0].
buildingBlock transforms an R expression to a building block
to be used as an element of the input variable (or function) set. The
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
buildingBlockq is equivaltent to
quotes it's argument
A building block.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.