Skip to content

Commit

Permalink
set TMPDIR from script
Browse files Browse the repository at this point in the history
  • Loading branch information
MorrisNein committed Nov 7, 2023
1 parent b6d57f5 commit 8de268c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions experiments/fedot_warm_start/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
seed: 42
tmpdir: '/var/essdata/tmp'
#data_settings:
n_datasets: null # null for all available datasets
test_size: 0.25
Expand Down
4 changes: 4 additions & 0 deletions experiments/fedot_warm_start/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import functools
import json
import logging
import os
import pickle
import timeit
from dataclasses import dataclass, field
Expand Down Expand Up @@ -56,6 +57,8 @@
COLLECT_METRICS = config['collect_metrics']
COMMON_FEDOT_PARAMS = config['common_fedot_params']
BASELINE_MODEL = config['baseline_model']
TMPDIR = config.get('tmpdir')

UPDATE_TRAIN_TEST_DATASETS_SPLIT = config.get('update_train_test_datasets_split')

# Postprocess constants
Expand Down Expand Up @@ -324,6 +327,7 @@ def main():
experiment_date, experiment_date_iso, experiment_date_for_path = get_current_formatted_date()
save_dir = get_save_dir(experiment_date_for_path)
setup_logging(save_dir)
os.environ.putenv('TMPDIR', TMPDIR)
progress_file_path = save_dir.joinpath('progress.txt')
meta_learner_path = save_dir.joinpath('meta_learner.pkl')

Expand Down

0 comments on commit 8de268c

Please sign in to comment.