Changeset 3555 for trunk/yat/classifier/NCC.h
- Timestamp:
- Jan 3, 2017, 9:00:33 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/NCC.h
r3554 r3555 261 261 prediction.resize(centroids_.columns(), test.columns()); 262 262 263 // If weighted training data has resulted in NaN in centroids: weighted calculations 263 // If weighted training data has resulted in NaN in centroids: 264 // weighted calculations 264 265 if(centroids_nan_) { 265 266 predict_weighted(MatrixLookupWeighted(test),prediction); … … 296 297 template <typename Distance> 297 298 void NCC<Distance>::predict_weighted(const MatrixLookupWeighted& test, 298 299 utility::Matrix& prediction) const 299 300 { 300 301 utility::MatrixWeighted weighted_centroids(centroids_);
Note: See TracChangeset
for help on using the changeset viewer.