Brush C++ API
A flexible interpretable machine learning framework
|
< nsga2 selection operator for getting the front More...
Namespaces | |
namespace | Data |
namespace containing Data structures used in Brush | |
namespace | detail |
namespace | Eval |
namespace | Pop |
namespace | Sel |
namespace | Split |
namespace | util |
namespace | Util |
namespace containing various utility functions | |
namespace | Var |
Concepts | |
concept | IsAnyOf |
Enumerations | |
enum class | NodeType : uint64_t { Abs = 1UL << 0UL , Acos = 1UL << 1UL , Asin = 1UL << 2UL , Atan = 1UL << 3UL , Cos = 1UL << 4UL , Cosh = 1UL << 5UL , Sin = 1UL << 6UL , Sinh = 1UL << 7UL , Tan = 1UL << 8UL , Tanh = 1UL << 9UL , Ceil = 1UL << 10UL , Floor = 1UL << 11UL , Exp = 1UL << 12UL , Log = 1UL << 13UL , Logabs = 1UL << 14UL , Log1p = 1UL << 15UL , Sqrt = 1UL << 16UL , Sqrtabs = 1UL << 17UL , Square = 1UL << 18UL , Logistic = 1UL << 19UL , Before = 1UL << 20UL , After = 1UL << 21UL , During = 1UL << 22UL , Min = 1UL << 23UL , Max = 1UL << 24UL , Mean = 1UL << 25UL , Median = 1UL << 26UL , Prod = 1UL << 27UL , Sum = 1UL << 28UL , OffsetSum = 1UL << 29UL , Softmax = 1UL << 30UL , Add = 1UL << 31UL , Sub = 1UL << 32UL , Mul = 1UL << 33UL , Div = 1UL << 34UL , Pow = 1UL << 35UL , SplitBest = 1UL << 36UL , SplitOn = 1UL << 37UL , And = 1UL << 38UL , Or = 1UL << 39UL , Not = 1UL << 40UL , MeanLabel = 1UL << 41UL , Constant = 1UL << 42UL , Terminal = 1UL << 43UL , ArgMax = 1UL << 44UL , Count = 1UL << 45UL , CustomUnaryOp = 1UL << 46UL , CustomBinaryOp = 1UL << 47UL , CustomSplit = 1UL << 48UL } |
enum class | ProgramType : uint32_t { Regressor , BinaryClassifier , MulticlassClassifier , Representer } |
enum class | DataType : uint32_t { ArrayB , ArrayI , ArrayF , MatrixB , MatrixI , MatrixF , TimeSeriesB , TimeSeriesI , TimeSeriesF , ArrayBJet , ArrayIJet , ArrayFJet , MatrixBJet , MatrixIJet , MatrixFJet , TimeSeriesBJet , TimeSeriesIJet , TimeSeriesFJet } |
data types. More... | |
< nsga2 selection operator for getting the front
Namespace for variation functions like crossover and mutation.
typedef Eigen::Array<bool,Eigen::Dynamic,1> Brush::ArrayXb |
typedef Eigen::Array<bJet,Eigen::Dynamic,1> Brush::ArrayXbJet |
typedef Eigen::Array<fJet,Eigen::Dynamic,1> Brush::ArrayXfJet |
typedef Eigen::Array<int,Eigen::Dynamic,1> Brush::ArrayXi |
typedef Eigen::Array<iJet,Eigen::Dynamic,1> Brush::ArrayXiJet |
typedef Eigen::Array<bool,Eigen::Dynamic,Eigen::Dynamic> Brush::ArrayXXb |
typedef Eigen::Array<bJet,Eigen::Dynamic,Eigen::Dynamic> Brush::ArrayXXbJet |
typedef Eigen::Array<fJet,Eigen::Dynamic,Eigen::Dynamic> Brush::ArrayXXfJet |
typedef Eigen::Array<int,Eigen::Dynamic,Eigen::Dynamic> Brush::ArrayXXi |
typedef Eigen::Array<iJet,Eigen::Dynamic,Eigen::Dynamic> Brush::ArrayXXiJet |
using Brush::Jetify_t = typename Jetify<T>::type |
Definition at line 43 of file signatures.h.
using Brush::NarySignature_t = typename NarySignature<R,Arg,ArgCount>::type |
Definition at line 157 of file signatures.h.
Definition at line 187 of file signatures.h.
Definition at line 13 of file tiny_cost_function.h.
Definition at line 45 of file search_space.h.
using Brush::UnderlyingNodeType = std::underlying_type_t<NodeType> |
Definition at line 112 of file nodetype.h.
using Brush::UnJetify_t = typename UnJetify<T>::type |
Definition at line 56 of file signatures.h.
using Brush::WeightType_t = typename WeightType<T>::type |
|
strong |
|
strong |
Definition at line 31 of file nodetype.h.
|
strong |
Definition at line 7 of file search_space.cpp.
|
inline |
|
inline |
void Brush::from_json | ( | const json & | j, |
Program< PType > & | p ) |
generate terminals from the dataset features and random constants.
d | a dataset |
weights_init | whether the terminal prob_change should be estimated from correlations with the target value |
Definition at line 51 of file search_space.cpp.
Brush::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE | ( | Engine< PT::BinaryClassifier > | , |
params | , | ||
best_ind | , | ||
archive | ) |
Brush::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE | ( | Engine< PT::MulticlassClassifier > | , |
params | , | ||
best_ind | , | ||
archive | ) |
Brush::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE | ( | Engine< PT::Regressor > | , |
params | , | ||
best_ind | , | ||
archive | ) |
Brush::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE | ( | Engine< PT::Representer > | , |
params | , | ||
best_ind | , | ||
archive | ) |
Brush::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE | ( | Parameters | , |
verbosity | , | ||
random_state | , | ||
pop_size | , | ||
max_gens | , | ||
max_stall | , | ||
max_time | , | ||
scorer_ | , | ||
load_population | , | ||
save_population | , | ||
logfile | , | ||
current_gen | , | ||
num_islands | , | ||
max_depth | , | ||
n_jobs | , | ||
max_size | , | ||
objectives | , | ||
sel | , | ||
surv | , | ||
cx_prob | , | ||
mig_prob | , | ||
classification | , | ||
n_classes | , | ||
validation_size | , | ||
feature_names | , | ||
batch_size | , | ||
mutation_probs | , | ||
functions | ) |
ostream & Brush::operator<< | ( | ostream & | os, |
DataType | n ) |
std::ostream & Brush::operator<< | ( | std::ostream & | output, |
const Brush::Data::TimeSeries< bool > & | ts ) |
std::ostream & Brush::operator<< | ( | std::ostream & | output, |
const Brush::Data::TimeSeries< float > & | ts ) |
std::ostream & Brush::operator<< | ( | std::ostream & | output, |
const Brush::Data::TimeSeries< int > & | ts ) |
T Brush::RandomDequeue | ( | std::vector< T > & | Q | ) |
queue for make program
Definition at line 671 of file search_space.h.
Definition at line 6 of file fitness.cpp.
void Brush::to_json | ( | json & | j, |
const Program< PType > & | p ) |
std::unordered_map< std::size_t, std::string > Brush::ArgsName |
Definition at line 160 of file search_space.cpp.
map< std::type_index, DataType > Brush::DataIDType = Util::reverse_map(DataTypeID) |
map< string, DataType > Brush::DataNameType = Util::reverse_map(DataTypeName) |
map< DataType, string > Brush::DataTypeName |
DispatchTable< true > Brush::dtable_fit |
Definition at line 5 of file dispatch_table.cpp.
DispatchTable< false > Brush::dtable_predict |
Definition at line 6 of file dispatch_table.cpp.
|
staticconstexpr |
|
staticconstexpr |
Definition at line 30 of file signatures.h.
std::map< std::string, NodeType > Brush::NodeNameType |
Definition at line 5 of file nodetype.cpp.
std::map< NodeType, std::string > Brush::NodeTypeName = Util::reverse_map(NodeNameType) |
Definition at line 81 of file nodetype.cpp.
|
extern |
Stacks Eigen arrays into a 2d-array, where each array is a column.
T | : underlying type in array |
Definition at line 408 of file functions.h.