⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ne-test.cpp

📁 neural network 一个演示原理的代码
💻 CPP
字号:
// ne-test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "aine.h"
#include "debug.h"

ofstream tron( "result.txt" );
namespace Didactic
{
	int BoolTest( const string path );
	int EORTest( const string );
}

namespace Biologic
{
	int BoolTest( const string path );
	int EORTest( const string );
}

namespace Natural
{
	int TestAdjust( const string );
	int TestInverse( const string );
	int BoolTest( const string path );
	int EORTest( const string );
}

int main( int argc, char * argv[] )
{
	cout << "Neurtal Entity test application\n" NNVERSION << endl;
	tron << "Neurtal Entity test application\n" NNVERSION << endl;

	INIT_DBG_MEM;

	string path = argv[0];
	path = path.substr( 0 , path.find_last_of( "\\/" ) );

#if 1
	cout << "**********************************\nTesting Didactic neuron connection" << endl;
	tron << "**********************************\nTesting Didactic neuron connection" << endl;
	Didactic::BoolTest( path );
	Didactic::EORTest( path );

	cout << "**************************************\nTesting \'Biologic\' neuron connection" << endl;
	tron << "\n\n**************************************\nTesting \'Biologic\' neuron connection" << endl;
	Biologic::BoolTest( path );
	Biologic::EORTest( path );

	cout << "*************************************\nTesting \'Natural\' neuron connection" << endl;
	tron << "\n\n*************************************\nTesting \'Natural\' neuron connection" << endl;
	Natural::TestInverse( path );
	Natural::BoolTest( path );
	Natural::EORTest( path );
	Natural::TestAdjust( path );
#endif

	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -