pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::ExtractedRule Struct Reference

One leaf of a crisp tree as a rule. More...

#include <rule_extraction.hpp>

Collaboration diagram for pulsatrix::ExtractedRule:

Public Attributes

std::vector< RuleCondition > conditions
 The path's tests, merged per feature and direction, in the order they're first met.
 
int64_t predicted_class = 0
 
int64_t leaf = 0
 The leaf's node index in the tree.
 
int64_t support = 0
 Training samples that reached the leaf, and the share of them in its class.
 
double confidence = 0.0
 
datalog::Rule rule
 predict(S, <class>) :- sample(S), <conditions>.
 

Detailed Description

One leaf of a crisp tree as a rule.

Member Data Documentation

◆ conditions

std::vector<RuleCondition> pulsatrix::ExtractedRule::conditions

The path's tests, merged per feature and direction, in the order they're first met.

◆ confidence

double pulsatrix::ExtractedRule::confidence = 0.0

◆ leaf

int64_t pulsatrix::ExtractedRule::leaf = 0

The leaf's node index in the tree.

◆ predicted_class

int64_t pulsatrix::ExtractedRule::predicted_class = 0

◆ rule

datalog::Rule pulsatrix::ExtractedRule::rule

predict(S, <class>) :- sample(S), <conditions>.

◆ support

int64_t pulsatrix::ExtractedRule::support = 0

Training samples that reached the leaf, and the share of them in its class.


The documentation for this struct was generated from the following file: