📄 simplenet.h
字号:
#ifndef _SIMPLENET_H_
#define _SIMPLENET_H_
#include <stdlib.h>
#include <math.h>
class CSimpleNet {
public:
CSimpleNet();
~CSimpleNet();
void AlterWeights(float);
float Train(float, float, float);
float Run(float, float, float);
// Set/retrieve the weights
void SetWeights(float *);
void GetWeights(float *);
protected:
float m_fWeights[3][3];
inline float Sigmoid(float);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -