10 {
"weights",
f.weights},
11 {
"wvalues",
f.wvalues},
14 {
"complexity",
f.complexity},
17 {
"dcounter",
f.dcounter},
18 {
"dominated",
f.dominated},
20 {
"crowding_dist",
f.crowding_dist}
26 j.at(
"values").get_to(
f.values );
27 j.at(
"weights").get_to(
f.weights );
28 j.at(
"wvalues").get_to(
f.wvalues );
29 j.at(
"loss").get_to(
f.loss );
30 j.at(
"loss_v").get_to(
f.loss_v );
31 j.at(
"complexity").get_to(
f.complexity );
32 j.at(
"size").get_to(
f.size );
33 j.at(
"depth").get_to(
f.depth );
34 j.at(
"dcounter").get_to(
f.dcounter );
35 j.at(
"dominated").get_to(
f.dominated );
36 j.at(
"rank").get_to(
f.rank );
37 j.at(
"crowding_dist").get_to(
f.crowding_dist );
49 || std::isnan(
b.get_wvalues().at(
i))
void bind_engine(py::module &m, string name)
< nsga2 selection operator for getting the front
void from_json(const json &j, Fitness &f)
void to_json(json &j, const Fitness &f)
Represents the fitness of an individual in the Brush namespace.
vector< float > get_wvalues() const
int dominates(const Fitness &b) const
set obj vector given a string of objective names