-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefinitions.py
More file actions
72 lines (67 loc) · 2.79 KB
/
Copy pathdefinitions.py
File metadata and controls
72 lines (67 loc) · 2.79 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# MIT License
#
# Copyright (c) 2017 Jonatan Almén, Alexander Håkansson, Jesper Jaxing, Gmal
# Tchaefa, Maxim Goretskyy, Axel Olivecrona
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# ==============================================================================
import os
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
DATASETS_PATH = os.path.join(ROOT_DIR, "resources/datasets")
LOGS_DIR = os.path.join(ROOT_DIR, "logs")
TENSOR_DIR_TRAIN = 'tensorDir/train'
TENSOR_DIR_VALID = 'tensorDir/valid'
CHECKPOINTS_DIR = 'checkpoints'
LOGGING_RESULTS_FILE = os.path.join(LOGS_DIR, 'logs_results_all.csv')
NET_TYPE = 'type'
NET_NAME = 'name'
VOC_SIZE = 'vocabulary_size'
USER_COUNT = 'user_count'
LEARN_RATE = 'learning_rate'
EMBEDD_SIZE = 'embedding_size'
MAX_TITLE_LENGTH = 'max_title_length'
RNN_NEURONS = 'rnn_neurons'
RNN_UNIT = "rnn_unit"
HIDDEN_NEURONS = 'hidden_neurons'
HIDDEN_LAYERS = 'hidden_layers'
SUB_INPUT_NEURONS = 'subreddit_input_neurons'
USE_CONCAT_INPUT = 'use_concat_input'
BATCH_SIZE = 'batch_size'
TRAINING_EPOCHS = 'training_epochs'
USE_L2_LOSS = 'use_l2_loss'
L2_FACTOR = 'l2_factor'
USE_DROPOUT = 'use_dropout'
DROPOUT_PROB = 'dropout_prob'
USE_CONSTANT_LIMIT = 'use_constant_limit'
CONSTANT_PREDICTION_LIMIT = 'constant_prediction_limit'
TRAINABLE_MATRIX = 'trainable_matrix'
PRE_TRAINED_MATRIX = 'pre_trained_matrix'
USE_PRETRAINED = 'use_pretrained'
USE_PRETRAINED_NET = 'pre_train_subreddit'
VALIDATION_DATA = 'validation_data'
TRAINING_DATA = 'training_data'
TESTING_DATA = 'testing_data'
F1_SCORE_TOP_VALID = 'F1 Score highest valid'
F1_SCORE_TRAIN = 'F1 Score training'
EPOCH_WHEN_F1_TOP = 'Epoch for highest F1'
PRECISION_VALIDATION = 'Precision validation'
PRECISION_TRAINING = 'Precision training'
RECALL_VALIDATION = 'Recall validation'
RECALL_TRAINING = 'Recall training'
DATE = 'Date of experiment'