Skip to content

Commit

Permalink
allowed the data not to be within the git directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
apmoore1 committed Aug 4, 2017
1 parent bb45609 commit 6c6647f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ models:
fin_word2vec: models/word2vec_models/all_fin_model_lower
data:
fin_data:
train_data: data/finance/Headline_Trainingdata.json
test_data: data/finance/Headlines_Testdata_withscores.json
trail_data: data/finance/Headline_Trialdata.json
train_data: ../data/finance/Headline_Trainingdata.json
test_data: ../data/finance/Headlines_Testdata_withscores.json
trail_data: ../data/finance/Headline_Trialdata.json
submitted_data:
early_stopping: final_output/early_stopping_submission.json
tweeked: final_output/tweeked_lstm_submission.json
2 changes: 1 addition & 1 deletion helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __read_config():
Void -> dict
'''

with open(os.path.join(__root_path(), 'config.yml'), 'r') as fp:
with open(os.path.abspath(os.path.join(__root_path(), 'config.yml')), 'r') as fp:
return yaml.load(fp.read())

def __root_path():
Expand Down

0 comments on commit 6c6647f

Please sign in to comment.