📄 constants.h
字号:
#ifndef CONSTANTS_H
#define CONSTANTS_H
const int constWindowWidth = 400;
const int constWindowHeight = 400;
const int constNumCellsAcross = 40;
const int constNumCellsDown = 40;
//number of weights each node must contain. One for each element of
//the input vector. In this example it is 3 because a color is
//represented by its red, green and blue components. (RGB)
const int constSizeOfInputVector = 3;
//the number of epochs desired for the training
const int constNumIterations = 1000;
//the value of the learning rate at the start of training
const double constStartLearningRate = 0.1;
/* uncomment the following if you'd like the SOM to classify randomly created training sets */
//#define RANDOM_TRAINING_SETS
#ifdef RANDOM_TRAINING_SETS
const int constMaxNumTrainingSets = 20;
const int constMinNumTrainingSets = 5;
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -