|
Brush C++ API
A flexible interpretable machine learning framework
|
#include <params.h>

Public Member Functions | |
| Parameters () | |
| ~Parameters () | |
| void | set_verbosity (int new_verbosity) |
| int | get_verbosity () |
| void | set_random_state (int new_random_state) |
| int | get_random_state () |
| void | set_pop_size (int new_pop_size) |
| int | get_pop_size () |
| void | set_max_gens (int new_max_gens) |
| int | get_max_gens () |
| void | set_bandit (string new_bandit) |
| string | get_bandit () |
| void | set_max_stall (int new_max_stall) |
| int | get_max_stall () |
| void | set_max_time (int new_max_time) |
| int | get_max_time () |
| void | set_scorer (string new_scorer) |
| string | get_scorer () |
| void | set_load_population (string new_load_population) |
| string | get_load_population () |
| void | set_save_population (string new_save_population) |
| string | get_save_population () |
| string | get_logfile () |
| void | set_logfile (string s) |
| void | set_current_gen (unsigned int gen) |
| unsigned int | get_current_gen () |
| void | set_num_islands (int new_num_islands) |
| int | get_num_islands () |
| void | set_max_depth (unsigned new_max_depth) |
| unsigned | get_max_depth () const |
| void | set_n_jobs (int new_n_jobs) |
| int | get_n_jobs () |
| void | set_max_size (unsigned new_max_size) |
| unsigned | get_max_size () const |
| void | set_objectives (vector< string > new_objectives) |
| vector< string > | get_objectives () const |
| void | set_sel (string new_sel) |
| string | get_sel () |
| void | set_surv (string new_surv) |
| string | get_surv () |
| void | set_cx_prob (float new_cx_prob) |
| float | get_cx_prob () |
| void | set_mig_prob (float new_mig_prob) |
| float | get_mig_prob () |
| void | set_classification (bool c) |
| bool | get_classification () |
| void | set_shuffle_split (bool shuff) |
| bool | get_shuffle_split () |
| void | set_constants_simplification (bool cs) |
| bool | get_constants_simplification () |
| void | set_inexact_simplification (bool is) |
| bool | get_inexact_simplification () |
| void | set_weights_init (bool init) |
| bool | get_weights_init () |
| void | set_n_classes (const ArrayXf &y) |
| void | set_class_weights (const vector< float > &weights) |
| void | set_sample_weights (const ArrayXf &y) |
| unsigned int | get_n_classes () |
| vector< float > | get_class_weights () |
| vector< float > | get_sample_weights () |
| string | get_class_weights_type () |
| void | set_class_weights_type (string cwt) |
| bool | get_start_from_decision_trees () |
| void | set_start_from_decision_trees (bool start_dt) |
| void | set_validation_size (float s) |
| float | get_validation_size () |
| void | set_feature_names (vector< string > vn) |
| vector< string > | get_feature_names () |
| void | set_feature_types (vector< string > ft) |
| vector< string > | get_feature_types () |
| void | set_batch_size (float c) |
| float | get_batch_size () |
| void | set_mutation_probs (std::map< std::string, float > new_mutation_probs) |
| std::map< std::string, float > | get_mutation_probs () |
| void | set_functions (std::unordered_map< std::string, float > new_functions) |
| std::unordered_map< std::string, float > | get_functions () |
Public Attributes | |
| int | random_state = 0 |
| int | verbosity = 0 |
| string | mode ="regression" |
| unsigned int | current_gen = 1 |
| int | pop_size = 100 |
| int | max_gens = 100 |
| int | max_stall = 0 |
| int | max_time = -1 |
| unsigned int | max_depth = 5 |
| unsigned int | max_size = 50 |
| vector< string > | objectives {"scorer","linear_complexity"} |
| string | bandit = "thompson" |
| string | sel = "lexicase" |
| string | surv = "nsga2" |
| std::unordered_map< string, float > | functions |
| int | num_islands =1 |
| bool | constants_simplification =true |
| bool | inexact_simplification =true |
| bool | start_from_decision_trees =false |
| std::map< std::string, float > | mutation_probs |
| float | cx_prob =0.2 |
| cross rate for variation | |
| float | mig_prob = 0.05 |
| string | scorer ="mse" |
| actual loss function used, determined by error | |
| vector< int > | classes = vector<int>() |
| class labels | |
| vector< float > | class_weights = vector<float>() |
| weights for each class | |
| vector< float > | sample_weights = vector<float>() |
| weights for each sample | |
| string | class_weights_type = "unbalanced" |
| bool | classification = false |
| unsigned int | n_classes = 0 |
| bool | shuffle_split = false |
| float | validation_size = 0.2 |
| vector< string > | feature_names = {} |
| vector< string > | feature_types = {} |
| float | batch_size = 0.0 |
| bool | weights_init =true |
| string | load_population = "" |
| string | save_population = "" |
| string | logfile = "" |
| int | n_jobs = 1 |
| number of parallel jobs -1 use all threads; 0 use same as number of islands; positive number specify the amouut of threads | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| float Brush::Parameters::cx_prob =0.2 |
| std::unordered_map<string, float> Brush::Parameters::functions |
| std::map<std::string, float> Brush::Parameters::mutation_probs |
| int Brush::Parameters::n_jobs = 1 |
| string Brush::Parameters::scorer ="mse" |