Changeset 808 for trunk/yat/classifier
- Timestamp:
- Mar 15, 2007, 9:07:01 PM (17 years ago)
- Location:
- trunk/yat/classifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/NBC.cc
r768 r808 106 106 assert(data_.rows()==input.rows()); 107 107 108 // utility 109 //for (size_t i=0; 110 111 108 112 prediction = utility::matrix(centroids_.columns(),input.columns()); 109 113 for (size_t c=0; c<centroids_.columns(); ++c) { -
trunk/yat/classifier/NBC.h
r768 r808 82 82 83 83 84 / //85 /// For each sample, calculate the probabilies the sample belong86 ///to the corresponding class.87 ///84 /** 85 For each sample, calculate the probabilities the sample belong 86 to the corresponding class. 87 */ 88 88 void predict(const DataLookup2D& data, utility::matrix& res) const; 89 89
Note: See TracChangeset
for help on using the changeset viewer.