train.h

来自「预测神经网络」· C头文件 代码 · 共 98 行

H
98
字号
#if !defined(AFX_TRAIN_H__91219D3D_0C29_11D6_A522_00000E98E3F5__INCLUDED_)
#define AFX_TRAIN_H__91219D3D_0C29_11D6_A522_00000E98E3F5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Train.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTrain dialog
#include"NeuralB.h"

class CTrain: public CPropertyPage
{
DECLARE_DYNCREATE(CTrain)

// Construction
public:
	bool readycontinue;
	bool sampleOpened;
	bool readytoRealse;
	bool testHasBegin;
	bool testHasEnd;
	bool testCanGo;
	float sumErrorNow;
	float lastsumError;
	bool trainHasDone;
	bool trainHasBegin;
	bool constructOK;
	void prepareTestData();
	void displayTestResult();
	void savetempBP();
	NeuralB * m_Neural;
	NeuralB * NeuralMemCopy;
    NeuralB * NeuralDiskCopy;
    CTrain();
	~CTrain();

// Dialog Data
	//{{AFX_DATA(CTrain)
	enum { IDD = IDD_Train };
	CListBox	m_TeList;
	CEdit	m_ResultEdit;
	CListBox	m_trainResultList;
	CButton	m_BeginTrain;
	CButton	m_ContinueTrainButton;
	CString	m_SampleFileName;
	float	m_UpdateWeightRate;
	float	m_moment;
	float	m_maxerror;
	float	m_Dmoment;
	float	m_referenceB;
	int		m_trainEpoches;
	CString	m_constructSuccess;
	int		m_Inputdim;
	int		m_Outputdim;
	int		m_hidenode;
	int		m_sampleNum;
	CString	m_trainEnd;
	BOOL	m_savebptosee;
	CString	m_TestResult;
	//}}AFX_DATA
	

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CTrain)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CTrain)
	afx_msg void OnOpenSample();
	afx_msg void Oncontinue();
	afx_msg void Onbegintrain();
	afx_msg void OnconstructNet();
	afx_msg void OnsaveTrain();
	afx_msg void OnseebpCHECK();
	afx_msg void OnbeginTestNow();
	afx_msg void OnendTest();
	afx_msg void Ongoback();
	afx_msg void OnoneStep();
	afx_msg void OnChangeUpdataWeightRate();
	afx_msg void OnChangemaxerror();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TRAIN_H__91219D3D_0C29_11D6_A522_00000E98E3F5__INCLUDED_)

⌨️ 快捷键说明

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