10 #include "../util/error.h"
23 struct NodeVector :
public std::vector<std::unique_ptr<Node>> {
43 vector<Node*> get_data(
int start=0,
int end=0);
46 vector<size_t> roots()
const;
48 size_t subtree(
size_t i,
char otype=
'0',
string indent=
"> ")
const;
50 void set_weights(vector<vector<float>>& weights);
52 vector<vector<float>> get_weights();
54 bool is_valid_program(
unsigned num_features,
55 vector<string> longitudinalMap);
59 const vector<float>& term_weights,
60 const vector<float>& op_weights,
61 char otype,
const vector<char>& term_types);
65 const vector<float>& term_weights,
66 const vector<float>& op_weights,
68 vector<string> longitudinalMap,
const vector<char>& term_types);
void from_json(const json &j, NodeVector &nv)
void to_json(json &j, const NodeVector &nv)
an extension of a vector of unique pointers to nodes
NodeVector & operator=(NodeVector &&other)
NodeVector(NodeVector &&other)