Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Pop Namespace Reference

Classes

struct  Archive
 The Archive struct represents a collection of individual programs. More...
 
class  Individual
 
class  Population
 

Functions

template<ProgramType T>
void to_json (json &j, const Individual< T > &p)
 
template<ProgramType T>
void from_json (const json &j, Individual< T > &p)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Archive< PT::Regressor >, individuals, sort_complexity)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Archive< PT::BinaryClassifier >, individuals, sort_complexity)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Archive< PT::MulticlassClassifier >, individuals, sort_complexity)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Archive< PT::Representer >, individuals, sort_complexity)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Population< PT::Regressor >, individuals, island_indexes, pop_size, num_islands)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Population< PT::BinaryClassifier >, individuals, island_indexes, pop_size, num_islands)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Population< PT::MulticlassClassifier >, individuals, island_indexes, pop_size, num_islands)
 
 NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Population< PT::Representer >, individuals, island_indexes, pop_size, num_islands)
 

Function Documentation

◆ from_json()

template<ProgramType T>
void Brush::Pop::from_json ( const json & j,
Individual< T > & p )

Definition at line 162 of file individual.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [1/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Archive< PT::BinaryClassifier > ,
individuals ,
sort_complexity  )

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [2/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Archive< PT::MulticlassClassifier > ,
individuals ,
sort_complexity  )

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [3/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Archive< PT::Regressor > ,
individuals ,
sort_complexity  )

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [4/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Archive< PT::Representer > ,
individuals ,
sort_complexity  )

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [5/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Population< PT::BinaryClassifier > ,
individuals ,
island_indexes ,
pop_size ,
num_islands  )

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [6/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Population< PT::MulticlassClassifier > ,
individuals ,
island_indexes ,
pop_size ,
num_islands  )

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [7/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Population< PT::Regressor > ,
individuals ,
island_indexes ,
pop_size ,
num_islands  )

◆ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE() [8/8]

Brush::Pop::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE ( Population< PT::Representer > ,
individuals ,
island_indexes ,
pop_size ,
num_islands  )

◆ to_json()

template<ProgramType T>
void Brush::Pop::to_json ( json & j,
const Individual< T > & p )

Definition at line 150 of file individual.h.

Here is the call graph for this function:
Here is the caller graph for this function: