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
features_of_type
features
y
classification
Xref
validation_size
use_validation
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()
make_program()
node_map
node_map_weights
terminal_map
terminal_weights
terminal_types
- Program
Brush::Program
RetType
TreeType
Program()
Program()
copy()
set_search_space()
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()
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()
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_is_fitted()
get_size()
get_depth()
get_complexity()
get_program()
get_model()
get_dot_model()
set_fitness()
get_fitness()
set_id()
set_parents()
set_parents()
get_objectives()
set_objectives()
program
is_fitted_
id
parent_id
error
fitness
objectives
weightsMap
Brush::Fitness
set_dominated()
get_dominated()
set_loss()
get_loss()
set_loss_v()
get_loss_v()
set_size()
get_size()
set_complexity()
get_complexity()
set_depth()
get_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
size
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
individuals
island_indexes
Brush::Pop::Population::SameFitComplexity
Brush::Pop::Population::SortComplexity
- 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_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_n_classes()
get_n_classes()
set_validation_size()
get_validation_size()
set_feature_names()
get_feature_names()
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
sel
surv
functions
num_islands
use_arch
val_from_arch
mutation_probs
cx_prob
mig_prob
scorer_
classes
class_weights
sample_weights
classification
n_classes
shuffle_split
validation_size
feature_names
batch_size
load_population
save_population
logfile
n_jobs
Brush::Engine
Engine()
~Engine()
print_progress()
calculate_stats()
print_stats()
log_stats()
get_params()
set_params()
get_is_fitted()
update_best()
get_best_ind()
fit()
fit()
predict()
predict()
predict_proba()
predict_proba()
get_archive_size()
get_archive()
predict_archive()
predict_archive()
predict_proba_archive()
predict_proba_archive()
run()
best_score
best_complexity
params
best_ind
archive