Mercurial > repos > bgruening > sklearn_model_validation
comparison stacking_ensembles.py @ 22:1b053380c798 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit eb703290e2589561ea215c84aa9f71bcfe1712c6"
| author | bgruening | 
|---|---|
| date | Fri, 01 Nov 2019 16:47:58 -0400 | 
| parents | 00671f5ae52c | 
| children | 376c88f35e0e | 
   comparison
  equal
  deleted
  inserted
  replaced
| 21:00671f5ae52c | 22:1b053380c798 | 
|---|---|
| 80 # set n_jobs | 80 # set n_jobs | 
| 81 options['n_jobs'] = N_JOBS | 81 options['n_jobs'] = N_JOBS | 
| 82 | 82 | 
| 83 weights = options.pop('weights', None) | 83 weights = options.pop('weights', None) | 
| 84 if weights: | 84 if weights: | 
| 85 options['weights'] = ast.literal_eval(weights) | 85 weights = ast.literal_eval(weights) | 
| 86 if weights: | |
| 87 options['weights'] = weights | |
| 86 | 88 | 
| 87 mod_and_name = estimator_type.split('_') | 89 mod_and_name = estimator_type.split('_') | 
| 88 mod = sys.modules[mod_and_name[0]] | 90 mod = sys.modules[mod_and_name[0]] | 
| 89 klass = getattr(mod, mod_and_name[1]) | 91 klass = getattr(mod, mod_and_name[1]) | 
| 90 | 92 | 
