Changeset 11610:33695add91c0 in orange for source/orange/liblinear_interface.hpp
 Timestamp:
 07/01/13 16:27:24 (10 months ago)
 Branch:
 default
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

source/orange/liblinear_interface.hpp
r10948 r11610 51 51 int solver_type; //P(&LinearLearner_Lossfunction1) Solver type (loss function1) 52 52 float eps; //P Stopping criteria 53 float C; //P Regularization parameter 53 float C; //P Regularization parameter C 54 54 float bias; //P bias parameter (default 1.0  no bias) 55 55 … … 58 58 }; 59 59 60 class ORANGE_API TLinearClassifier : public TClassifierFD {60 class ORANGE_API TLinearClassifier : public TClassifierFD { 61 61 public: 62 62 __REGISTER_CLASS 63 63 64 TLinearClassifier() {}; 64 TLinearClassifier(const PVariable &var, PExampleTable examples, model *_model); 65 66 TLinearClassifier(PDomain domain, struct model * model); 67 65 68 ~TLinearClassifier(); 66 69 … … 69 72 70 73 PFloatListList weights; //P Computed feature weights 71 PExampleTable examples; //P Examples used to train the classifier72 74 float bias; //PR bias 75 73 76 model *getModel(){ return linmodel; } 77 74 78 private: 75 79 model *linmodel; 80 // bias in double precision. 76 81 double dbias; 77 82 int get_nr_values();
Note: See TracChangeset
for help on using the changeset viewer.