-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaths.py
More file actions
32 lines (25 loc) · 1.17 KB
/
Copy pathpaths.py
File metadata and controls
32 lines (25 loc) · 1.17 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
"""Where the files of this repository live.
Every script resolves its inputs and outputs through this module, so scripts can
be run from any working directory:
python code/train_dbft.py
cd code && python train_dbft.py
Layout: data/ holds the datasets, weights/ the trained models and their scalers
and held-out predictions, results/ the metric files, figures/ the generated
figures, paper/figure/ the manuscript figures.
"""
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
CODE = ROOT / "code"
DATA = ROOT / "data"
WEIGHTS = ROOT / "weights"
RESULTS = ROOT / "results"
FIGURES = ROOT / "figures"
PAPER_FIGURES = ROOT / "paper" / "figure"
REPORTS = ROOT / "FWD_Reports" / "FWD_DOH" # raw DOH reports, not redistributed
SURROGATE = DATA / "strain_result.xlsx" # 2,430-case factorial
SURROGATE_EXT = DATA / "strain_result_extended.csv" # 14,174 rows
SURROGATE_EXT_XLSX = DATA / "strain_result_extended.xlsx"
FIELD_RAW = DATA / "field_data.csv" # extract of the reports
FIELD = DATA / "field_dataset.csv" # training form
for _d in (WEIGHTS, RESULTS, FIGURES):
_d.mkdir(exist_ok=True)