A crisp tree's rules, one per leaf.
More...
#include <rule_extraction.hpp>
|
| std::vector< datalog::Rule > | Program () const |
| | The rules alone, for the engine.
|
| |
| datalog::FactDatabase | Facts (const std::string &sample, const std::vector< float > &x) const |
| | sample(<id>) and an le or gt fact for every (feature, threshold) the rules test.
|
| |
A crisp tree's rules, one per leaf.
◆ Facts()
| datalog::FactDatabase pulsatrix::TreeRules::Facts |
( |
const std::string & |
sample, |
|
|
const std::vector< float > & |
x |
|
) |
| const |
sample(<id>) and an le or gt fact for every (feature, threshold) the rules test.
- Exceptions
-
| std::invalid_argument | if x has fewer values than the tree's features. |
◆ Program()
| std::vector< datalog::Rule > pulsatrix::TreeRules::Program |
( |
| ) |
const |
The rules alone, for the engine.
◆ class_names
| std::vector<std::string> pulsatrix::TreeRules::class_names |
◆ feature_names
| std::vector<std::string> pulsatrix::TreeRules::feature_names |
◆ rules
The documentation for this struct was generated from the following file: