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

📄 main.cpp

📁 bp神经网络源程序
💻 CPP
字号:
#include "BPNet.h"
void main()
{	
	//InputFileName:存放输入数据的文件
 	//Optimize.dat:存放满足指标的数据,反归一化后的数据
	char* InputFileName=".\\InputData.dat";
 	char* WeightFileName=".\\Weight.dat";
	char* OptimizeFileName=".\\Optimize.dat";
	//前4个节点有9组输入,第5个节点6组输入
	int n=9,m=6;
	double target=0;
	CBPNet TestBPNet(InputFileName,n,m);
  	TestBPNet.BPModel(WeightFileName);
	//指标为target,优化数据存入OptimizeFileName所指文件中
	cout<<"The main purpose of this program is to test the Standard Back Prop. method.\n"
		<<"First you should input the target of optimization.Generally,the target is"<<endl
		<<"between 90 and 100.Now please input first."<<endl;
	cout<<"target is: ";
	cin>>target;
	TestBPNet.Optimize(OptimizeFileName,target);
	cout<<"____________________________\n"
		<<"Hello! The program is over. \nIf you want to know more information,\n"
		<<"Please open the file of Optimize.dat.\n\n";
}

⌨️ 快捷键说明

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