Skip to content

Commit 30e5d9b

Browse files
committed
indentation
1 parent 11a067c commit 30e5d9b

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

std_conf.h

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,46 +28,46 @@
2828
#ifndef STD_CONF_H
2929
#define STD_CONF_H
3030

31-
#define NEURONS 128
31+
#define NEURONS 128
3232

33-
#define STD_LEARNING_RATE 0.001
34-
#define STD_MOMENTUM 0.0
35-
#define STD_LAMBDA 0.05
36-
#define SOFTMAX_TEMP 1.0
37-
#define GRADIENT_CLIP_LIMIT 5.0
38-
#define MINI_BATCH_SIZE 100
39-
#define LOSS_MOVING_AVG 0.01
33+
#define STD_LEARNING_RATE 0.001
34+
#define STD_MOMENTUM 0.0
35+
#define STD_LAMBDA 0.05
36+
#define SOFTMAX_TEMP 1.0
37+
#define GRADIENT_CLIP_LIMIT 5.0
38+
#define MINI_BATCH_SIZE 100
39+
#define LOSS_MOVING_AVG 0.01
4040

41-
#define LAYERS 3
41+
#define LAYERS 3 // Has a tremendous impact on avaiable memory
4242

43-
#define STATEFUL 1
43+
#define STATEFUL 1
4444

45-
#define GRADIENTS_CLIP 1
46-
#define GRADIENTS_FIT 0
45+
#define GRADIENTS_CLIP 1
46+
#define GRADIENTS_FIT 0
4747

48-
#define MODEL_REGULARIZE 0
48+
#define MODEL_REGULARIZE 0
4949

50-
#define DECREASE_LR 0 // set to 0 to disable decreasing learning rate
50+
#define DECREASE_LR 0 // set to 0 to disable decreasing learning rate
5151

52-
#define STD_LEARNING_RATE_DECREASE 100000
53-
#define STD_NUMBER_OF_NO_RECORD_ITERATIONS_UNTIL_LR_DECREASE 1000000
52+
#define STD_LEARNING_RATE_DECREASE 100000
53+
#define STD_NUMBER_OF_NO_RECORD_ITERATIONS_UNTIL_LR_DECREASE 1000000
5454

5555
/*
5656
* These defines modify how the program interacts with the user
5757
* of the program during the training phase. Here you can
5858
* decide how often it should output its progress and wether or not
5959
* it should write to file among other things.
6060
*/
61-
#define PRINT_EVERY_X_ITERATIONS 100
62-
#define STORE_EVERY_X_ITERATIONS 8000
63-
#define PRINT_PROGRESS 1 // set to 0 to disable printing
64-
#define PRINT_SAMPLE_OUTPUT 1 // set to 0 to disable output sampling
65-
#define PRINT_SAMPLE_OUTPUT_TO_FILE 0 // set to 0 to disable output sampling to file
66-
#define PRINT_SAMPLE_OUTPUT_TO_FILE_ARG "a" // used as an argument to fopen (goes with "w" or "a")
67-
#define PRINT_SAMPLE_OUTPUT_TO_FILE_NAME "progress_output.txt" // name of the file containing samples
68-
#define STORE_PROGRESS_EVERY_X_ITERATIONS 1000 // set to 0 to disable writing loss value to file during training
69-
#define PROGRESS_FILE_NAME "progress.csv"
70-
#define NUMBER_OF_CHARS_TO_DISPLAY_DURING_TRAINING 200
61+
#define PRINT_EVERY_X_ITERATIONS 100
62+
#define STORE_EVERY_X_ITERATIONS 8000
63+
#define PRINT_PROGRESS 1 // set to 0 to disable printing
64+
#define PRINT_SAMPLE_OUTPUT 1 // set to 0 to disable output sampling
65+
#define PRINT_SAMPLE_OUTPUT_TO_FILE 0 // set to 0 to disable output sampling to file
66+
#define PRINT_SAMPLE_OUTPUT_TO_FILE_ARG "a" // used as an argument to fopen (goes with "w" or "a")
67+
#define PRINT_SAMPLE_OUTPUT_TO_FILE_NAME "progress_output.txt" // name of the file containing samples
68+
#define STORE_PROGRESS_EVERY_X_ITERATIONS 1000 // set to 0 to disable writing loss value to file during training
69+
#define PROGRESS_FILE_NAME "progress.csv"
70+
#define NUMBER_OF_CHARS_TO_DISPLAY_DURING_TRAINING 200
7171

7272
/*
7373
* Once the network has been trained it is stored to these files.
@@ -77,12 +77,12 @@
7777
* but not by the interactive HTML application.
7878
* For that, the .json program is intended to be used.
7979
*/
80-
#define STD_LOADABLE_NET_NAME "lstm_net.net"
81-
#define STD_JSON_NET_NAME "lstm_net.json"
80+
#define STD_LOADABLE_NET_NAME "lstm_net.net"
81+
#define STD_JSON_NET_NAME "lstm_net.json"
8282

8383
// ================== DO NOT CHANGE THE FOLLOWING DEFINES ======================
8484
// Don't change this one, else the HTML application will not work.
85-
#define JSON_KEY_NAME_SET "Feature mapping"
85+
#define JSON_KEY_NAME_SET "Feature mapping"
8686
// This define should be undeffed, it was defined during experimentation
8787
// #define INTERLAYER_SIGMOID_ACTIVATION
8888
// =============================================================================

0 commit comments

Comments
 (0)