Skip to content

Commit

Permalink
create output dir on run
Browse files Browse the repository at this point in the history
  • Loading branch information
mayu-ot committed Aug 20, 2020
1 parent 0b1c5f8 commit 587e73c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/experiments/blind_baselines.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import Dict
import pandas as pd
import os
import json
import numpy as np
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -107,6 +108,10 @@ def plot_performance_summary(
plt.legend()
plt.title(title)
sns.despine(left=False)

if not os.path.exists(os.path.dirname(outfile)):
os.makedirs(os.path.dirname(outfile))

plt.savefig(outfile, bbox_inches="tight")


Expand Down

0 comments on commit 587e73c

Please sign in to comment.