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

📄 defines.h

📁 bp训练网络学习认识鼠标轨迹的形状vc++6.0实现
💻 H
字号:
#ifndef DEFINES_H
#define DEFINES_H

//-----------------------------------------------
//  used in main
//-----------------------------------------------

#define WINDOW_WIDTH        400
#define WINDOW_HEIGHT       400

//define a custom msg we can use to send to the windproc
//to train the network
#define UM_TRAIN (WM_USER + 0)


//-----------------------------------------------
//  used in CData/CMouse
//-----------------------------------------------

//total number of built in patterns
#define NUM_PATTERNS        11

//how much the input data is perturbed by to make
//additional training sets
#define MAX_NOISE_TO_ADD         0.1

//how many vectors each pattern contains
#define NUM_VECTORS         12

//output has to be above this value for the program
//to agree on a pattern. Below this value and it
//will try to guess the pattern
#define MATCH_TOLERANCE     0.98



//-----------------------------------------------
//  used in CNeuralNet
//-----------------------------------------------
#define ACTIVATION_RESPONSE 1.0
#define BIAS                -1

//the learning rate for the backprop.
#define LEARNING_RATE       2

//when the total error is below this value the 
//backprop stops training
#define ERROR_THRESHOLD     0.05

#define NUM_HIDDEN_NEURONS  6

#define MOMENTUM            0.9





#endif

⌨️ 快捷键说明

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