Changeset 2336 for trunk/yat/classifier/KNN.h
- Timestamp:
- Oct 15, 2010, 2:26:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/KNN.h
r2335 r2336 136 136 this case the distance between the two is set to infinity. 137 137 */ 138 void predict(const MatrixLookupWeighted& data, utility::Matrix& results) const; 138 void predict(const MatrixLookupWeighted& data, 139 utility::Matrix& results) const; 139 140 140 141 … … 316 317 utility::yat_assert<utility::runtime_error> 317 318 (data_ml_->rows()==test.rows(), 318 "KNN::predict different number of rows in training and test data"); 319 "KNN::predict different number of rows in training and test data"); 319 320 distances=new utility::Matrix(data_ml_->columns(),test.columns()); 320 321 calculate_unweighted(*data_ml_,test,distances); … … 324 325 utility::yat_assert<utility::runtime_error> 325 326 (data_mlw_->rows()==test.rows(), 326 "KNN::predict different number of rows in training and test data"); 327 "KNN::predict different number of rows in training and test data"); 327 328 distances=new utility::Matrix(data_mlw_->columns(),test.columns()); 328 329 calculate_weighted(*data_mlw_,MatrixLookupWeighted(test),
Note: See TracChangeset
for help on using the changeset viewer.