-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
50 lines (35 loc) · 1.47 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
Ethereal is a UCI chess playing engine authored by Andrew Grant.
<https://github.com/AndyGrant/Ethereal> <andrew@grantnet.us>
Ethereal is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Ethereal is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "activate.h"
#include "types.h"
#define BATCHSIZE 16384
#define LEARNRATE 0.001
#define BETA_1 0.9
#define BETA_2 0.999
static const uint64_t NSAMPLES = 1024 * 1024 * 128ULL;
static const char DATAFILE[] = "../Data/sxx.nndata.%d";
static const int NDATAFILES = 85;
static const int START_EPOCH = 0;
static const bool USE_WEIGHTS = false;
static const char NNWEIGHTS[] = "";
static const bool USE_STATE = false;
static const char NNSTATE[] = "";
static const float SIGM_COEFF = 2.315 / 400.00;
// Choose a Loss, LossProp, and NN Architecture
#define LOSS_FUNC l2_one_neuron_loss
#define LOSSPROP_FUNC l2_one_neuron_lossprop