Skip to content
Snippets Groups Projects
Commit 7039b749 authored by Ann-Kathrin Margarete Edrich's avatar Ann-Kathrin Margarete Edrich
Browse files

Adapt output directory generation

parent 45fa240f
No related branches found
No related tags found
No related merge requests found
Pipeline #526281 passed
......@@ -374,7 +374,7 @@ class RandomForest(prepare_data):
self.output_dir = self.model_dir + self.model_to_load
if not os.path.isdir(self.output_dir):
os.mkdir(self.output_dir)
os.makedirs(self.output_dir, exist_ok=True)
def save_model(self):
......
......@@ -277,7 +277,7 @@ class RandomForest(prepare_data):
self.output_dir = self.model_dir + self.model_to_save
if not os.path.isdir(self.output_dir):
os.mkdir(self.output_dir)
os.makedirs(self.output_dir, exist_ok=True)
def save_model(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment