Edinburgh Speech Tools  2.1-release
EST_Wagon.h File Reference
#include "EST_String.h"
#include "EST_Val.h"
#include "EST_TVector.h"
#include "EST_TList.h"
#include "EST_simplestats.h"
#include "EST_Track.h"
#include "siod.h"
Include dependency graph for EST_Wagon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WVector
 
class  WDataSet
 
class  WQuestion
 
class  WImpurity
 
class  WDlist
 
class  WNode
 

Macros

#define wagon_error(WMESS)   (std::cerr << WMESS << std::endl,exit(-1))
 
#define WGN_HUGE_VAL   1.0e20
 
#define wgn_ques_feature(X)   (get_c_string(car(X)))
 
#define wgn_ques_oper_str(X)   (get_c_string(car(cdr(X))))
 
#define wgn_ques_operand(X)   (car(cdr(cdr(X))))
 

Typedefs

typedef EST_TList< WVector * > WVectorList
 
typedef EST_TVector< WVector * > WVectorVector
 

Enumerations

enum  wn_dtype {
  wndt_binary, wndt_float, wndt_class, wndt_cluster,
  wndt_vector, wndt_matrix, wndt_trajectory, wndt_ols,
  wndt_ignore
}
 
enum  wn_oper {
  wnop_equal, wnop_binary, wnop_greaterthan, wnop_lessthan,
  wnop_is, wnop_in, wnop_matches
}
 
enum  wnim_type {
  wnim_unset, wnim_float, wnim_class, wnim_cluster,
  wnim_vector, wnim_matrix, wnim_ols, wnim_trajectory
}
 

Functions

void wgn_load_datadescription (EST_String fname, LISP ignores)
 
void wgn_load_dataset (WDataSet &ds, EST_String fname)
 
WNodewgn_build_tree (float &score)
 
WNodewgn_build_dlist (float &score, ostream *output)
 
WNodewagon_stepwise (float limit)
 
float wgn_score_question (WQuestion &q, WVectorVector &ds)
 
void wgn_find_split (WQuestion &q, WVectorVector &ds, WVectorVector &y, WVectorVector &n)
 
float summary_results (WNode &tree, ostream *output)
 
int wagon_ask_question (LISP question, LISP value)
 
int stepwise_ols (const EST_FMatrix &X, const EST_FMatrix &Y, const EST_StrList &feat_names, float limit, EST_FMatrix &coeffs, const EST_FMatrix &Xtest, const EST_FMatrix &Ytest, EST_IVector &included, float &best_score)
 
int robust_ols (const EST_FMatrix &X, const EST_FMatrix &Y, EST_IVector &included, EST_FMatrix &coeffs)
 
int ols_apply (const EST_FMatrix &samples, const EST_FMatrix &coeffs, EST_FMatrix &res)
 
int ols_test (const EST_FMatrix &real, const EST_FMatrix &predicted, float &correlation, float &rmse)
 

Variables

Discretes wgn_discretes
 
WDataSet wgn_dataset
 
WDataSet wgn_test_dataset
 
EST_FMatrix wgn_DistMatrix
 
EST_Track wgn_VertexTrack
 
EST_Track wgn_UnitTrack
 
EST_Track wgn_VertexFeats
 
int wgn_min_cluster_size
 
int wgn_held_out
 
int wgn_prune
 
int wgn_quiet
 
int wgn_verbose
 
int wgn_predictee
 
int wgn_count_field
 
EST_String wgn_count_field_name
 
EST_String wgn_predictee_name
 
float wgn_float_range_split
 
float wgn_balance
 
EST_String wgn_opt_param
 
EST_String wgn_vertex_output
 

Macro Definition Documentation

#define wagon_error (   WMESS)    (std::cerr << WMESS << std::endl,exit(-1))

Definition at line 50 of file EST_Wagon.h.

#define WGN_HUGE_VAL   1.0e20

Definition at line 54 of file EST_Wagon.h.

#define wgn_ques_feature (   X)    (get_c_string(car(X)))

Definition at line 285 of file EST_Wagon.h.

#define wgn_ques_oper_str (   X)    (get_c_string(car(cdr(X))))

Definition at line 286 of file EST_Wagon.h.

#define wgn_ques_operand (   X)    (car(cdr(cdr(X))))

Definition at line 287 of file EST_Wagon.h.

Typedef Documentation

Definition at line 66 of file EST_Wagon.h.

Definition at line 67 of file EST_Wagon.h.

Enumeration Type Documentation

enum wn_dtype
Enumerator
wndt_binary 
wndt_float 
wndt_class 
wndt_cluster 
wndt_vector 
wndt_matrix 
wndt_trajectory 
wndt_ols 
wndt_ignore 

Definition at line 70 of file EST_Wagon.h.

enum wn_oper
Enumerator
wnop_equal 
wnop_binary 
wnop_greaterthan 
wnop_lessthan 
wnop_is 
wnop_in 
wnop_matches 

Definition at line 96 of file EST_Wagon.h.

enum wnim_type
Enumerator
wnim_unset 
wnim_float 
wnim_class 
wnim_cluster 
wnim_vector 
wnim_matrix 
wnim_ols 
wnim_trajectory 

Definition at line 139 of file EST_Wagon.h.

Function Documentation

void wgn_load_datadescription ( EST_String  fname,
LISP  ignores 
)

Definition at line 111 of file wagon.cc.

void wgn_load_dataset ( WDataSet ds,
EST_String  fname 
)

Definition at line 118 of file wagon.cc.

WNode* wgn_build_tree ( float &  score)

Definition at line 239 of file wagon.cc.

WNode* wgn_build_dlist ( float &  score,
ostream *  output 
)

Definition at line 60 of file dlist.cc.

WNode* wagon_stepwise ( float  limit)

Definition at line 1098 of file wagon.cc.

float wgn_score_question ( WQuestion q,
WVectorVector ds 
)

Definition at line 1091 of file wagon.cc.

void wgn_find_split ( WQuestion q,
WVectorVector ds,
WVectorVector y,
WVectorVector n 
)

Definition at line 775 of file wagon.cc.

float summary_results ( WNode tree,
ostream *  output 
)

Definition at line 215 of file wagon.cc.

int wagon_ask_question ( LISP  question,
LISP  value 
)

Definition at line 49 of file wagonint.cc.

int stepwise_ols ( const EST_FMatrix X,
const EST_FMatrix Y,
const EST_StrList feat_names,
float  limit,
EST_FMatrix coeffs,
const EST_FMatrix Xtest,
const EST_FMatrix Ytest,
EST_IVector included,
float &  best_score 
)
int robust_ols ( const EST_FMatrix X,
const EST_FMatrix Y,
EST_IVector included,
EST_FMatrix coeffs 
)

Definition at line 87 of file EST_ols.cc.

int ols_apply ( const EST_FMatrix samples,
const EST_FMatrix coeffs,
EST_FMatrix res 
)

Definition at line 185 of file EST_ols.cc.

int ols_test ( const EST_FMatrix real,
const EST_FMatrix predicted,
float &  correlation,
float &  rmse 
)

Definition at line 288 of file EST_ols.cc.

Variable Documentation

Discretes wgn_discretes

Definition at line 57 of file wagon.cc.

WDataSet wgn_dataset

Definition at line 59 of file wagon.cc.

WDataSet wgn_test_dataset

Definition at line 60 of file wagon.cc.

EST_FMatrix wgn_DistMatrix

Definition at line 61 of file wagon.cc.

EST_Track wgn_VertexTrack

Definition at line 62 of file wagon.cc.

EST_Track wgn_UnitTrack

Definition at line 64 of file wagon.cc.

EST_Track wgn_VertexFeats

Definition at line 63 of file wagon.cc.

int wgn_min_cluster_size

Definition at line 66 of file wagon.cc.

int wgn_held_out

Definition at line 67 of file wagon.cc.

int wgn_prune

Definition at line 68 of file wagon.cc.

int wgn_quiet

Definition at line 69 of file wagon.cc.

int wgn_verbose

Definition at line 70 of file wagon.cc.

int wgn_predictee

Definition at line 73 of file wagon.cc.

int wgn_count_field

Definition at line 71 of file wagon.cc.

EST_String wgn_count_field_name

Definition at line 72 of file wagon.cc.

EST_String wgn_predictee_name

Definition at line 74 of file wagon.cc.

float wgn_float_range_split

Definition at line 75 of file wagon.cc.

float wgn_balance

Definition at line 76 of file wagon.cc.

EST_String wgn_opt_param

Definition at line 77 of file wagon.cc.

EST_String wgn_vertex_output

Definition at line 78 of file wagon.cc.