|
Revision 12838, 0.7 kB
(checked in by tosik, 7 months ago)
|
|
hebilife : updated some comments
|
-
Property svn:eol-style set to
CRLF
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | class NN
|
|---|
| 4 | {
|
|---|
| 5 | public:
|
|---|
| 6 | // �p�[�Z�v�g�����̐�
|
|---|
| 7 | // static const int N_NEURON_LAYER = 2;
|
|---|
| 8 | // static const int N_NEURON = 2;
|
|---|
| 9 | static const int N_NEURON_LAYER = 3;
|
|---|
| 10 | static const int N_NEURON = 3;
|
|---|
| 11 | // static const int N_NEURON_LAYER = 6;
|
|---|
| 12 | // static const int N_NEURON = 6;
|
|---|
| 13 | // static const int N_NEURON_LAYER = 16;
|
|---|
| 14 | // static const int N_NEURON = 16;
|
|---|
| 15 |
|
|---|
| 16 | /** �j���[�����̏��^ */
|
|---|
| 17 | int neurons[N_NEURON_LAYER][N_NEURON];
|
|---|
| 18 |
|
|---|
| 19 | /** �j���[�������m�̌����d */
|
|---|
| 20 | float weight[N_NEURON_LAYER][N_NEURON][N_NEURON];
|
|---|
| 21 |
|
|---|
| 22 | NN();
|
|---|
| 23 |
|
|---|
| 24 | int* step(int input[N_NEURON]);
|
|---|
| 25 |
|
|---|
| 26 | };
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | class Brain
|
|---|
| 30 | {
|
|---|
| 31 | public:
|
|---|
| 32 | Brain();
|
|---|
| 33 |
|
|---|
| 34 | NN nn;
|
|---|
| 35 | int input_and_output(int *input);
|
|---|
| 36 | void copy(Brain *b);
|
|---|
| 37 | };
|
|---|
| 38 |
|
|---|