#include <phimbl.h>
Public Member Functions | |
Phimbl () | |
~Phimbl () | |
bool | Learn (const string &filename) |
bool | Write (const string &filename) |
bool | Classify (const BOSS::t_SVector &str, string &res, const t_Data &Data) const |
bool | operator() (string &filename) |
bool | LoadTree (const char *filename, t_Data &Data) |
void | DeleteData (t_Data &Data) |
Public Attributes | |
vector< int > | permutation |
Protected Member Functions | |
int | find_str (string &str, vector< t_classes > &data) |
int | find_str (string &str, vector< t_features > &data) |
void | ReduceTree (t_Node *node) |
void | DeleteNode (t_Node *node) |
void | SaveTree (t_Node *node, fstream &out) |
bool | Load (string filename) |
void | Calculate_Permutation () |
void | Bulid_Tree (string filename) |
void | ClassCount (t_Node *node) |
bool | Save (string outfile) |
void | Print_Permutation () |
void | AddChild (t_Node *parent, string &str, int pos, t_Data &Data) |
Protected Attributes | |
vector< t_classes > | classes |
vector< vector< t_features > > | features |
vector< t_features > | allfeatures |
int | feature_count |
int | line_count |
string | seperator |
t_Node * | tree |
t_Data | Data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|