Mercurial > repos > bgruening > sklearn_train_test_eval
diff stacking_ensembles.py @ 3:20bb2a45f922 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit eb703290e2589561ea215c84aa9f71bcfe1712c6"
author | bgruening |
---|---|
date | Fri, 01 Nov 2019 17:12:39 -0400 |
parents | e23cfe4be9d4 |
children | ead7adad8d0e |
line wrap: on
line diff
--- a/stacking_ensembles.py Wed Oct 02 03:46:45 2019 -0400 +++ b/stacking_ensembles.py Fri Nov 01 17:12:39 2019 -0400 @@ -82,7 +82,9 @@ weights = options.pop('weights', None) if weights: - options['weights'] = ast.literal_eval(weights) + weights = ast.literal_eval(weights) + if weights: + options['weights'] = weights mod_and_name = estimator_type.split('_') mod = sys.modules[mod_and_name[0]]