Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
record.h
Go to the documentation of this file.
1#ifndef SIMPLIFICATION_RECORD_H
2#define SIMPLIFICATION_RECORD_H
3
4#include <string>
5#include <vector>
6
7namespace Brush { namespace Simpl{
8
12{
13 unsigned generation = 0;
14 unsigned individual_id = 0;
15 std::string simplifier;
16 std::string ret_type;
17 std::string original;
18 std::string replacement;
19 float distance = 0.0f;
20};
21
22using SimplificationRecords = std::vector<SimplificationRecord>;
23
24} // Simpl
25} // Brush
26
27#endif
std::vector< SimplificationRecord > SimplificationRecords
Definition record.h:22
< nsga2 selection operator for getting the front
Definition bandit.cpp:3
One replacement performed by a simplifier, as written to <logfile>_simplifications....
Definition record.h:12
std::string simplifier
"constants" or "inexact"
Definition record.h:15
float distance
mse between program predictions before/after (inexact only)
Definition record.h:19
std::string ret_type
return type of the replaced subtree
Definition record.h:16
std::string original
subtree before the replacement
Definition record.h:17
std::string replacement
subtree after the replacement
Definition record.h:18