C++ API#
The API below mostly covers C++ code that can be called from Python.
See also
For the full C++ API, browse the Doxygen docs.
- Dataset
Brush::Data::Dataset
operator()()
init()
make_features()
copy_and_make_features()
Dataset()
Dataset()
Dataset()
Dataset()
print()
get_X()
get_training_data()
get_validation_data()
get_n_samples()
get_n_features()
get_batch()
get_batch_size()
set_batch_size()
split()
operator[]()
unique_data_types
feature_types
feature_names
features_of_type
features
y
classification
Xref
validation_size
use_validation
shuffle_split
batch_size
use_batch
- TimeSeries
Brush::Data::TimeSeries
Scalar
EntryType
ValType
TimeType
TimeSeries()
TimeSeries()
operator()()
size()
rows()
cols()
begin()
end()
cbegin()
cend()
tbegin()
tend()
ctbegin()
ctend()
transform()
reduce()
cast()
abs()
pow()
log()
logabs()
log1p()
ceil()
floor()
exp()
sin()
cos()
tan()
asin()
acos()
atan()
sinh()
cosh()
tanh()
sqrt()
sqrtabs()
square()
median()
mean()
std()
max()
min()
sum()
count()
prod()
operator*()
before()
after()
during()
print()
time
value
NumDimensions
- SearchSpace
Brush::SearchSpace
ArgsHash
Map
make_program()
make_regressor()
make_classifier()
make_multiclass_classifier()
make_representer()
SearchSpace()
SearchSpace()
init()
check()
check()
check()
has_solution_space()
get()
get()
get()
get_weights()
get_weights()
get_weights()
sample_terminal()
sample_terminal()
sample_op()
sample_op()
sample_op_with_arg()
get_node_like()
sample_subtree()
print()
repr()
make_program()
node_map
node_map_weights
terminal_map
terminal_weights
terminal_types
op_names
- Program
Brush::Program
RetType
TreeType
Program()
Program()
copy()
set_search_space()
complexity()
linear_complexity()
size()
size_at()
depth()
depth_at()
depth_to_reach()
fit()
predict_with_weights()
predict_with_weights()
predict()
predict()
predict()
predict_proba()
fit()
predict()
predict_proba()
update_weights()
get_n_weights()
get_weights()
set_weights()
lock_nodes()
unlock_nodes()
get_model()
get_dot_model()
linearize()
is_fitted_
Tree
SSref
program_type
- Node
Brush::Node
HashTuple
Node()
Node()
set_signature()
init()
get_name()
get_model()
get_ret_type()
args_type()
get_arg_types()
get_arg_count()
get_node_hash()
operator==()
operator!=()
operator<()
operator<=()
operator>()
operator>=()
get_prob_change()
set_prob_change()
get_prob_keep()
set_feature()
get_feature()
set_feature_type()
get_feature_type()
get_is_weighted()
set_is_weighted()
name
center_op
prob_change
fixed
node_type
sig_hash
sig_dual_hash
ret_type
arg_types
is_weighted
W
- NodeTypes
NodeType
Abs
Acos
Asin
Atan
Cos
Cosh
Sin
Sinh
Tan
Tanh
Ceil
Floor
Exp
Log
Logabs
Log1p
Sqrt
Sqrtabs
Square
Logistic
Before
After
During
Min
Max
Mean
Median
Prod
Sum
OffsetSum
Softmax
Add
Sub
Mul
Div
Pow
SplitBest
SplitOn
And
Or
Not
MeanLabel
Constant
Terminal
ArgMax
Count
CustomUnaryOp
CustomBinaryOp
CustomSplit
- Individual and Fitness
Brush::Pop::Individual
Individual()
Individual()
init()
fit()
fit()
predict()
predict()
predict_proba()
predict_proba()
get_size()
get_depth()
get_complexity()
get_linear_complexity()
get_program()
get_model()
get_dot_model()
set_fitness()
get_fitness()
set_variation()
get_variation()
get_is_fitted()
set_is_fitted()
set_sampled_nodes()
get_sampled_nodes()
set_id()
set_parents()
set_parents()
get_objectives()
set_objectives()
program
is_fitted_
id
parent_id
variation
sampled_nodes
error
fitness
objectives
weightsMap
Brush::Fitness
set_dominated()
get_dominated()
set_loss()
get_loss()
get_prev_loss()
set_loss_v()
get_loss_v()
get_prev_loss_v()
set_size()
get_size()
get_prev_size()
set_complexity()
get_complexity()
get_prev_complexity()
set_linear_complexity()
get_linear_complexity()
get_prev_linear_complexity()
set_depth()
get_depth()
get_prev_depth()
set_dcounter()
get_dcounter()
set_rank()
get_rank()
set_crowding_dist()
get_crowding_dist()
Fitness()
hash()
set_weights()
get_weights()
get_values()
get_wvalues()
set_values()
clearValues()
valid()
operator==()
operator!=()
operator<()
operator>()
operator<=()
operator>=()
toString()
repr()
dominates()
loss
loss_v
complexity
linear_complexity
size
depth
prev_loss
prev_loss_v
prev_complexity
prev_linear_complexity
prev_size
prev_depth
dcounter
dominated
rank
crowding_dist
values
weights
wvalues
- Evaluation
- Population
Brush::Pop::Population
Population()
~Population()
init()
init()
save()
load()
size()
get_island_indexes()
add_offspring_indexes()
update()
operator[]()
operator[]()
print_models()
sorted_front()
hall_of_fame()
migrate()
pop_size
num_islands
mig_prob
linear_complexity
individuals
island_indexes
Brush::Pop::Population::SameFitComplexity
Brush::Pop::Population::SortComplexity
Brush::Pop::Population::SortLinearComplexity
- Variation (Crossover/Mutation)
- Selection
- Archive
- Engine (and parameters)
Brush::Parameters
Parameters()
~Parameters()
set_verbosity()
get_verbosity()
set_random_state()
get_random_state()
set_pop_size()
get_pop_size()
set_max_gens()
get_max_gens()
set_bandit()
get_bandit()
set_max_stall()
get_max_stall()
set_max_time()
get_max_time()
set_scorer()
get_scorer()
set_load_population()
get_load_population()
set_save_population()
get_save_population()
get_logfile()
set_logfile()
set_current_gen()
get_current_gen()
set_num_islands()
get_num_islands()
set_max_depth()
get_max_depth()
set_n_jobs()
get_n_jobs()
set_max_size()
get_max_size()
set_objectives()
get_objectives()
set_sel()
get_sel()
set_surv()
get_surv()
set_cx_prob()
get_cx_prob()
set_mig_prob()
get_mig_prob()
set_use_arch()
get_use_arch()
set_val_from_arch()
get_val_from_arch()
set_classification()
get_classification()
set_shuffle_split()
get_shuffle_split()
set_constants_simplification()
get_constants_simplification()
set_inexact_simplification()
get_inexact_simplification()
set_weights_init()
get_weights_init()
set_n_classes()
set_class_weights()
set_sample_weights()
get_n_classes()
get_class_weights()
get_sample_weights()
set_validation_size()
get_validation_size()
set_feature_names()
get_feature_names()
set_feature_types()
get_feature_types()
set_batch_size()
get_batch_size()
set_mutation_probs()
get_mutation_probs()
set_functions()
get_functions()
random_state
verbosity
mode
current_gen
pop_size
max_gens
max_stall
max_time
max_depth
max_size
objectives
bandit
sel
surv
functions
num_islands
use_arch
val_from_arch
constants_simplification
inexact_simplification
mutation_probs
cx_prob
mig_prob
scorer
classes
class_weights
sample_weights
classification
n_classes
shuffle_split
validation_size
feature_names
feature_types
batch_size
weights_init
load_population
save_population
logfile
n_jobs
Brush::Engine
Engine()
Engine()
~Engine()
print_progress()
calculate_stats()
print_stats()
log_stats()
get_params()
set_params()
get_search_space()
set_search_space()
get_is_fitted()
update_best()
get_best_ind()
fit()
fit()
predict()
predict()
predict_proba()
predict_proba()
get_archive_size()
get_archive()
get_population()
set_population()
lock_nodes()
unlock_nodes()
predict_archive()
predict_archive()
predict_proba_archive()
predict_proba_archive()
run()
params
ss
best_ind
archive
pop
is_fitted