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

📄 neuralb.h

📁 预测神经网络
💻 H
字号:
// NeuralB.h: interface for the NeuralB class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_NEURALB_H__9BE8DF63_EE51_11D6_A51F_00000E98E3F5__INCLUDED_)
#define AFX_NEURALB_H__9BE8DF63_EE51_11D6_A51F_00000E98E3F5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"Back_Topology.h"
#include"Training.h"
#include"Testing.h"
#include"stdafx.h"
#include"AFXTEMPL.H."
#include<fstream.h>
class NeuralB  
{
public:
	void caculateAntiNormalize();
	bool realtesting;
	void copyNormalizeInfo();
	void prepareRealTest(const char * samfilename);
	void inference(CString samFilename);

	void CopyBpNet(Back_Topology bp);
	ofstream savefile_ptr;
  Training Training_Data;      
  Testing Test_Data;           // files containing data to test the network
  Back_Topology Net_Design; 
  void initialize_training_storage_array();
  void establish_test_battery_size(void);
  void train_net_with_backpropagation(void);
  void test_neural_network();
  
	bool trainHasBegin;
	bool beginTrainBp();
	  float target_minimum_average_squared_error;
	  float *maxdifference;
	  float *meandifference;
	  float sum_of_error;
	  int hidenode[2];
	  int epoch;//记录已训练次数
	  NeuralB::NeuralB();
     // NeuralB(const NeuralB &);
  
  // specifications for backpropagating network
	  void establish_backprop_network(void);
	  void network_training_testing();
	  void realtest();
  ~NeuralB();
};
typedef CTypedPtrList<CObList, NeuralB*> CNeuralBList;
#endif // !defined(AFX_NEURALB_H__9BE8DF63_EE51_11D6_A51F_00000E98E3F5__INCLUDED_)

⌨️ 快捷键说明

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