www.pudn.com > 基于VC的神经网络开发程序包(源码).rar > tester.cpp
#include#include #include #include #include "../include/annie.h" using namespace std; //All members of the NeuralNetwork library are in this namespace using namespace annie; void TrainingSet2SVMLearn(); void nnSVMcompare() { vector in; vector out; try { TrainingSet T("C:/tmp/test.txt"); Network2Layer net("C:/tmp/network.txt"); T.initialize(); cout< in,out; try { TrainingSet T("C:/tmp/test.txt"); ofstream ofile("C:/tmp/test_svm.txt",ios::out); T.initialize(); cout< 0.004) ofile<<(i+1)<<":"< in; vector out; bool bsempty=false; bool tsempty=false; try { TrainingSet TS_BS("C:/tmp/TS_BS.txt"); cout< output; cout<<"Results before training:"<