Changeset 552 for trunk/lib/classifier/SVM.cc
- Timestamp:
- Mar 7, 2006, 2:52:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/classifier/SVM.cc
r547 r552 110 110 111 111 assert(input.rows()==alpha_.size()); 112 prediction =gslapi::matrix(2,input.columns(),0);112 prediction = gslapi::matrix(2,input.columns(),0); 113 113 for (size_t i = 0; i<input.columns(); i++){ 114 for (size_t j = 0; i<input.rows(); i++)114 for (size_t j = 0; j<input.rows(); j++) 115 115 prediction(0,i) += target(j)*alpha_(i)*(*input_kernel)(j,i); 116 116 prediction(0,i) += bias_;
Note: See TracChangeset
for help on using the changeset viewer.