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

📄 main.cpp

📁 神经网络的结构实现
💻 CPP
字号:
#include <iostream>
using namespace std;

#include "NeuralNetWork.h"


void main()
{
	//NeuralNetWork *p = new PerceptionNetWork();
	const int n= 3;
	int a[3] = {2,3,1};

	NeuralNetWork *p = new BPNetWork();
	NeuralNet *net = p->CreateNet(a,n);

	std::ifstream fin("data.txt");
	if(!fin) return;

	net->PrintStruct();
	net->LoadData(fin);
	net->PrintSamples();
//	net->InitialWeight();
//	net->SaveWeightData();

	net->PrintWeight();

	net->LoadWeightData();
	net->PrintWeight();

	net->Train();
}

⌨️ 快捷键说明

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