Changeset 445 for trunk/lib/svm/SVM.cc
- Timestamp:
- Dec 15, 2005, 5:52:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/svm/SVM.cc
r377 r445 138 138 139 139 SVM::SVM(const Kernel& kernel, const gslapi::vector& target) 140 141 140 : alpha_(target.size(),0), 142 141 bias_(0), … … 149 148 trained_(false), 150 149 tolerance_(0.00000001) 151 152 150 { 153 151 if (max_epochs_>ULONG_MAX) … … 155 153 } 156 154 155 SVM::SVM(const SVM& other) 156 : alpha_(other.alpha_), 157 bias_(other.bias_), 158 C_inverse_(other.C_inverse_), 159 kernel_(other.kernel_), 160 max_epochs_(other.max_epochs_), 161 output_(other.output_), 162 sample_(other.sample_), 163 target_(other.target_), 164 trained_(other.trained_), 165 tolerance_(other.tolerance_) 166 { 167 } 157 168 158 169 bool SVM::train(void)
Note: See TracChangeset
for help on using the changeset viewer.