Changeset 1031 for trunk/test/ncc_test.cc
 Timestamp:
 Feb 4, 2008, 4:44:44 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/test/ncc_test.cc
r1013 r1031 31 31 #include "yat/classifier/Target.h" 32 32 #include "yat/utility/matrix.h" 33 #include "yat/statistics/euclidean_ vector_distance.h"34 #include "yat/statistics/pearson_ vector_distance.h"33 #include "yat/statistics/euclidean_distance.h" 34 #include "yat/statistics/pearson_distance.h" 35 35 #include "yat/utility/utility.h" 36 36 … … 78 78 vec[3]="bjds"; 79 79 classifier::Target target(vec); 80 classifier::NCC<statistics::pearson_ vector_distance_tag> ncctmp(ml,target);80 classifier::NCC<statistics::pearson_distance_tag> ncctmp(ml,target); 81 81 *error << "training...\n"; 82 82 ncctmp.train(); … … 100 100 classifier::Target target1(vec1); 101 101 102 classifier::NCC<statistics::euclidean_ vector_distance_tag> ncc1(ml1,target1);102 classifier::NCC<statistics::euclidean_distance_tag> ncc1(ml1,target1); 103 103 ncc1.train(); 104 104 utility::matrix prediction1; … … 150 150 151 151 classifier::MatrixLookupWeighted dataviewweighted(data,weights); 152 classifier::NCC<statistics::pearson_ vector_distance_tag> ncc(dataviewweighted,targets);152 classifier::NCC<statistics::pearson_distance_tag> ncc(dataviewweighted,targets); 153 153 *error << "training...\n"; 154 154 ncc.train();
Note: See TracChangeset
for help on using the changeset viewer.