Brush C++ API
A flexible interpretable machine learning framework
|
delete subtree and replace it with a terminal of the same return type More...
Static Public Member Functions | |
template<Brush::ProgramType T> | |
static auto | mutate (Program< T > &program, Iter spot, Variation< T > &variator, const Parameters ¶ms) |
![]() | |
template<Brush::ProgramType T> | |
static auto | find_spots (Program< T > &program, Variation< T > &variator, const Parameters ¶ms) |
template<Brush::ProgramType T> | |
static auto | mutate (Program< T > &program, Iter spot, Variation< T > &variator, const Parameters ¶ms) |
Additional Inherited Members | |
![]() | |
using | Iter = tree<Node>::pre_order_iterator |
delete subtree and replace it with a terminal of the same return type
prog | the program |
Tree | the program tree |
spot | an iterator to the node that is being mutated |
SS | the search space to sample a node like spot |
Definition at line 146 of file variation.cpp.
|
inlinestatic |
Definition at line 150 of file variation.cpp.