Mercurial > repos > bgruening > sklearn_feature_selection
diff 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 |
line wrap: on
line diff
--- a/feature_selection.xml Tue Aug 07 05:47:17 2018 -0400 +++ b/feature_selection.xml Fri Aug 17 12:28:35 2018 -0400 @@ -16,18 +16,14 @@ <configfile name="feature_selection_script"> <![CDATA[ import sys +import os import json import pandas -import pickle -import ast -import numpy as np -import xgboost import sklearn.feature_selection -from sklearn import svm, linear_model, ensemble, naive_bayes, tree, neighbors -@COLUMNS_FUNCTION@ -@GET_ESTIMATOR_FUNCTION@ -@FEATURE_SELECTOR_FUNCTION@ +execfile("$__tool_directory__/utils.py") + +safe_eval = SafeEval() input_json_path = sys.argv[1] with open(input_json_path, "r") as param_handler: @@ -117,7 +113,7 @@ <param name="input_mode" value="new"/> <param name="selected_module" value="ensemble"/> <param name="selected_estimator" value="RandomForestRegressor"/> - <param name="text_params" value="'n_estimators': 10, 'random_state': 10"/> + <param name="text_params" value="n_estimators=10, random_state=10"/> <param name="infile1" value="regression_train.tabular" ftype="tabular"/> <param name="header1" value="false"/> <param name="col1" value="1,2,3,4,5"/> @@ -195,7 +191,7 @@ <param name="input_mode" value="new"/> <param name="selected_module" value="ensemble"/> <param name="selected_estimator" value="RandomForestRegressor"/> - <param name="text_params" value="'n_estimators': 10, 'random_state':10"/> + <param name="text_params" value="n_estimators=10, random_state=10"/> <param name="infile1" value="regression_train.tabular" ftype="tabular"/> <param name="header1" value="false"/> <param name="col1" value="1,2,3,4,5"/> @@ -209,7 +205,7 @@ <param name="input_mode" value="new"/> <param name="selected_module" value="ensemble"/> <param name="selected_estimator" value="RandomForestRegressor"/> - <param name="text_params" value="'n_estimators': 10, 'random_state':10"/> + <param name="text_params" value="n_estimators=10, random_state=10"/> <param name="infile1" value="regression_train.tabular" ftype="tabular"/> <param name="header1" value="false"/> <param name="col1" value="1,2,3,4,5"/>