Brush C++ API
A flexible interpretable machine learning framework
|
Represents the fitness of an individual in the Brush namespace. More...
#include <fitness.h>
Public Attributes | |
float | loss |
aggregate loss score | |
float | loss_v |
aggregate validation loss score | |
unsigned int | complexity |
unsigned int | size |
unsigned int | depth |
unsigned int | dcounter |
number of individuals this dominates | |
vector< unsigned int > | dominated |
individual indices this dominates | |
unsigned int | rank |
pareto front rank | |
float | crowding_dist |
crowding distance on the Pareto front | |
vector< float > | values |
vector< float > | weights |
vector< float > | wvalues |
Represents the fitness of an individual in the Brush namespace.
The Fitness
struct stores various attributes related to the fitness of an individual in the Brush namespace. It includes the aggregate loss score, aggregate validation loss score, complexity, size, depth, dominance counter, dominated individuals, Pareto front rank, crowding distance on the Pareto front, weighted values, and weights.
The struct provides getter and setter methods for accessing and modifying these attributes. It also includes methods for calculating the hash value, setting values, clearing values, checking validity, and performing comparison operations.
Additionally, there are methods for converting the Fitness
object to JSON format and vice versa.
set obj vector given a string of objective names
Definition at line 41 of file fitness.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
float Brush::Fitness::crowding_dist |
float Brush::Fitness::loss_v |