layer.h
来自「多层神经网络范例 http://www.codeproject.com/cpp」· C头文件 代码 · 共 25 行
H
25 行
#pragma once
#include "Neuron.h"
static const int LEN = 100;
struct Samples
{
double samples[LEN];
int nLenght;
};
class Layer
{
public:
~Layer(void);
CList<Neuron*> neurons;
int size;
CString name;
Layer(CString strLbl,int size);
Neuron* getNeuron(int i);
void computeOutputs();
void computeBackpropDeltas(Samples s); // for output neurons
void computeBackpropDeltas(); // for hidden neurons
void computeWeights();
CString print();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?