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

toggle the node's weight OFF More...

Inheritance diagram for Brush::Var::ToggleWeightOffMutation:
Collaboration diagram for Brush::Var::ToggleWeightOffMutation:

Static Public Member Functions

template<Brush::ProgramType T>
static auto find_spots (Program< T > &program, Variation< T > &variator, const Parameters &params)
 
template<Brush::ProgramType T>
static auto mutate (Program< T > &program, Iter spot, Variation< T > &variator, const Parameters &params)
 
- Static Public Member Functions inherited from Brush::Var::MutationBase
template<Brush::ProgramType T>
static auto find_spots (Program< T > &program, Variation< T > &variator, const Parameters &params)
 
template<Brush::ProgramType T>
static auto mutate (Program< T > &program, Iter spot, Variation< T > &variator, const Parameters &params)
 

Additional Inherited Members

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

Detailed Description

toggle the node's weight OFF

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

Definition at line 230 of file variation.cpp.

Member Function Documentation

◆ find_spots()

template<Brush::ProgramType T>
static auto Brush::Var::ToggleWeightOffMutation::find_spots ( Program< T > & program,
Variation< T > & variator,
const Parameters & params )
inlinestatic

Definition at line 234 of file variation.cpp.

Here is the caller graph for this function:

◆ mutate()

template<Brush::ProgramType T>
static auto Brush::Var::ToggleWeightOffMutation::mutate ( Program< T > & program,
Iter spot,
Variation< T > & variator,
const Parameters & params )
inlinestatic

Definition at line 256 of file variation.cpp.

Here is the caller graph for this function:

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