Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Var::SubtreeMutation Class Reference

replaces the subtree rooted in spot More...

Inheritance diagram for Brush::Var::SubtreeMutation:
Collaboration diagram for Brush::Var::SubtreeMutation:

Static Public Member Functions

static auto find_spots (tree< Node > &Tree, const SearchSpace &SS, const Parameters &params)
 
static auto mutate (tree< Node > &Tree, Iter spot, const SearchSpace &SS, const Parameters &params)
 
- Static Public Member Functions inherited from Brush::Var::MutationBase
static auto find_spots (tree< Node > &Tree, const SearchSpace &SS, const Parameters &params)
 
static auto mutate (tree< Node > &Tree, Iter spot, const SearchSpace &SS, const Parameters &params)
 

Additional Inherited Members

- Public Types inherited from Brush::Var::MutationBase
using Iter = tree<Node>::pre_order_iterator
 

Detailed Description

replaces the subtree rooted in spot

Parameters
progthe program
Treethe program tree
spotan iterator to the node that is being mutated
SSthe search space to generate a compatible subtree
Returns
boolean indicating the success (true) or fail (false) of the operation

Definition at line 252 of file variation.cpp.

Member Function Documentation

◆ find_spots()

static auto Brush::Var::SubtreeMutation::find_spots ( tree< Node > & Tree,
const SearchSpace & SS,
const Parameters & params )
inlinestatic

Definition at line 255 of file variation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mutate()

static auto Brush::Var::SubtreeMutation::mutate ( tree< Node > & Tree,
Iter spot,
const SearchSpace & SS,
const Parameters & params )
inlinestatic

Definition at line 286 of file variation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: