Skip to content
Snippets Groups Projects
Commit a8cd279a authored by Laura Christine Kühle's avatar Laura Christine Kühle
Browse files

Ensured that output is written in log file and log command is positioned after the params command.

parent be18f1be
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,9 @@ rule approximate_solution:
DIR+'/log/approximate_solution.log'
run:
with open(str(log), 'w') as logfile:
sys.stdout = logfile
sys.stderr = logfile
tic = timeit.default_timer()
print(params.dg_params)
......@@ -49,13 +52,13 @@ rule test_model:
input:
DIR+'/input_data.npy',
DIR+'/output_data.npy'
log:
DIR+'/log/test_model.log'
output:
DIR+'/model evaluation/classification_accuracy/' + '_'.join(MODELS.keys()) + '.pdf'
params:
colors = config['classification_colors'],
compare_normalization = config['compare_normalization']
log:
DIR+'/log/test_model.log'
run:
models = {}
with open(str(log), 'w') as logfile:
......@@ -103,11 +106,11 @@ rule train_model:
DIR+'/input_data.npy',
DIR+'/normalized_input_data.npy',
DIR+'/output_data.npy'
log:
DIR+'/log/train_model_{model}.log'
output:
DIR+'/trained models/model__{model}.pt',
DIR+'/trained models/loss__{model}.pt'
log:
DIR+'/log/train_model_{model}.log'
run:
with open(str(log), 'w') as logfile:
sys.stdout = logfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment