backprop.h
来自「足球机器人仿真组CMU97的源码」· C头文件 代码 · 共 39 行
H
39 行
#ifndef _BACKPROP_#define _BACKPROP_#define EPOCHS 3000#define SAVE_WGTS_FREQ 50#define DISPLAY_FREQ 10#define NN_n_inp 3#define DEFAULT_HIDDENS 4#define NN_n_out 1#define DEFAULT_ETA1 .000001#define DEFAULT_ETA2 .000001#define DEFAULT_GAMMA1 .999#define DEFAULT_GAMMA2 1#define ONLY_SAVES/*#define TRAIN_FILE "results/RandomWait.dat" /* Use "none" for no training */#define TRAIN_FILE "Data/Random.dat" /* Use "none" for no training */#define TEST_FILE "none" /* Use "none" for no test */#define INITIALIZE_FILE "none" /* none => random init */#define TEST_WEIGHTS "none" /* none => test with trained wgts*/static float INP_BASES[] = { 7, -7, 1, -15};static float INP_RANGES[] = { 7, 14, 1, 30};static float OUT_BASES[] = {0, 2, 0}; /* Don't scale for linear */static float OUT_RANGES[] = {1, 3, 1}; /* output unit */void NN_initialize_to_use(char*);void NN_use(float*);void train(char*, int, int, char**);void test(char*);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?