Mercurial > repos > bgruening > sklearn_feature_selection
comparison feature_selection.xml @ 13:f8dfdb47508b draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
author | bgruening |
---|---|
date | Fri, 17 Aug 2018 12:28:35 -0400 |
parents | 96f9b73327f2 |
children | dc411a215138 |
comparison
equal
deleted
inserted
replaced
12:bc434eb66fdc | 13:f8dfdb47508b |
---|---|
14 <configfiles> | 14 <configfiles> |
15 <inputs name="inputs" /> | 15 <inputs name="inputs" /> |
16 <configfile name="feature_selection_script"> | 16 <configfile name="feature_selection_script"> |
17 <![CDATA[ | 17 <![CDATA[ |
18 import sys | 18 import sys |
19 import os | |
19 import json | 20 import json |
20 import pandas | 21 import pandas |
21 import pickle | |
22 import ast | |
23 import numpy as np | |
24 import xgboost | |
25 import sklearn.feature_selection | 22 import sklearn.feature_selection |
26 from sklearn import svm, linear_model, ensemble, naive_bayes, tree, neighbors | 23 |
27 | 24 execfile("$__tool_directory__/utils.py") |
28 @COLUMNS_FUNCTION@ | 25 |
29 @GET_ESTIMATOR_FUNCTION@ | 26 safe_eval = SafeEval() |
30 @FEATURE_SELECTOR_FUNCTION@ | |
31 | 27 |
32 input_json_path = sys.argv[1] | 28 input_json_path = sys.argv[1] |
33 with open(input_json_path, "r") as param_handler: | 29 with open(input_json_path, "r") as param_handler: |
34 params = json.load(param_handler) | 30 params = json.load(param_handler) |
35 | 31 |
115 <test> | 111 <test> |
116 <param name="selected_algorithm" value="SelectFromModel"/> | 112 <param name="selected_algorithm" value="SelectFromModel"/> |
117 <param name="input_mode" value="new"/> | 113 <param name="input_mode" value="new"/> |
118 <param name="selected_module" value="ensemble"/> | 114 <param name="selected_module" value="ensemble"/> |
119 <param name="selected_estimator" value="RandomForestRegressor"/> | 115 <param name="selected_estimator" value="RandomForestRegressor"/> |
120 <param name="text_params" value="'n_estimators': 10, 'random_state': 10"/> | 116 <param name="text_params" value="n_estimators=10, random_state=10"/> |
121 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> | 117 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> |
122 <param name="header1" value="false"/> | 118 <param name="header1" value="false"/> |
123 <param name="col1" value="1,2,3,4,5"/> | 119 <param name="col1" value="1,2,3,4,5"/> |
124 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> | 120 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> |
125 <param name="col2" value="6"/> | 121 <param name="col2" value="6"/> |
193 <test> | 189 <test> |
194 <param name="selected_algorithm" value="RFE"/> | 190 <param name="selected_algorithm" value="RFE"/> |
195 <param name="input_mode" value="new"/> | 191 <param name="input_mode" value="new"/> |
196 <param name="selected_module" value="ensemble"/> | 192 <param name="selected_module" value="ensemble"/> |
197 <param name="selected_estimator" value="RandomForestRegressor"/> | 193 <param name="selected_estimator" value="RandomForestRegressor"/> |
198 <param name="text_params" value="'n_estimators': 10, 'random_state':10"/> | 194 <param name="text_params" value="n_estimators=10, random_state=10"/> |
199 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> | 195 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> |
200 <param name="header1" value="false"/> | 196 <param name="header1" value="false"/> |
201 <param name="col1" value="1,2,3,4,5"/> | 197 <param name="col1" value="1,2,3,4,5"/> |
202 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> | 198 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> |
203 <param name="col2" value="6"/> | 199 <param name="col2" value="6"/> |
207 <test> | 203 <test> |
208 <param name="selected_algorithm" value="RFECV"/> | 204 <param name="selected_algorithm" value="RFECV"/> |
209 <param name="input_mode" value="new"/> | 205 <param name="input_mode" value="new"/> |
210 <param name="selected_module" value="ensemble"/> | 206 <param name="selected_module" value="ensemble"/> |
211 <param name="selected_estimator" value="RandomForestRegressor"/> | 207 <param name="selected_estimator" value="RandomForestRegressor"/> |
212 <param name="text_params" value="'n_estimators': 10, 'random_state':10"/> | 208 <param name="text_params" value="n_estimators=10, random_state=10"/> |
213 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> | 209 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> |
214 <param name="header1" value="false"/> | 210 <param name="header1" value="false"/> |
215 <param name="col1" value="1,2,3,4,5"/> | 211 <param name="col1" value="1,2,3,4,5"/> |
216 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> | 212 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> |
217 <param name="col2" value="6"/> | 213 <param name="col2" value="6"/> |