Mercurial > repos > bgruening > sklearn_stacking_ensemble_models
diff train_test_eval.py @ 7:00819b7f2f55 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 756f8be9c3cd437e131e6410cd625c24fe078e8c"
author | bgruening |
---|---|
date | Wed, 22 Jan 2020 12:33:01 +0000 |
parents | 963e449636d3 |
children | b8c92e94ac1d |
line wrap: on
line diff
--- a/train_test_eval.py Thu Nov 07 05:15:47 2019 -0500 +++ b/train_test_eval.py Wed Jan 22 12:33:01 2020 +0000 @@ -2,6 +2,7 @@ import joblib import json import numpy as np +import os import pandas as pd import pickle import warnings @@ -29,8 +30,9 @@ setattr(_search, '_fit_and_score', _fit_and_score) setattr(_validation, '_fit_and_score', _fit_and_score) -N_JOBS = int(__import__('os').environ.get('GALAXY_SLOTS', 1)) -CACHE_DIR = './cached' +N_JOBS = int(os.environ.get('GALAXY_SLOTS', 1)) +CACHE_DIR = os.path.join(os.getcwd(), 'cached') +del os NON_SEARCHABLE = ('n_jobs', 'pre_dispatch', 'memory', '_path', 'nthread', 'callbacks') ALLOWED_CALLBACKS = ('EarlyStopping', 'TerminateOnNaN', 'ReduceLROnPlateau',