Mercurial > repos > bgruening > sklearn_searchcv
annotate search_model_validation.xml @ 1:f727f5ff7d60 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit cfc9fe24b7975fc5838bb3e456646202898eb977
author | bgruening |
---|---|
date | Sat, 04 Aug 2018 17:34:42 -0400 |
parents | 91bf3f0d7455 |
children | 907bb0418c9f |
rev | line source |
---|---|
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
1 <tool id="sklearn_searchcv" name="Hyperparameter Search" version="@VERSION@"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
2 <description>using exhausitive or randomized search</description> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
3 <macros> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
4 <import>main_macros.xml</import> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
5 </macros> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
6 <expand macro="python_requirements"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
7 <requirement type="package" version="0.9.12">asteval</requirement> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
8 </expand> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
9 <expand macro="macro_stdio"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
10 <version_command>echo "@VERSION@"</version_command> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
11 <command> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
12 <![CDATA[ |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
13 python "$sklearn_search_model_validation_script" '$inputs' |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
14 ]]> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
15 </command> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
16 <configfiles> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
17 <inputs name="inputs" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
18 <configfile name="sklearn_search_model_validation_script"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
19 <![CDATA[ |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
20 import sys |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
21 import json |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
22 import pandas |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
23 import pickle |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
24 import numpy as np |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
25 import xgboost |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
26 import scipy |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
27 from asteval import Interpreter, make_symbol_table |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
28 from sklearn import metrics, preprocessing, model_selection, ensemble |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
29 from sklearn.pipeline import Pipeline |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
30 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
31 @COLUMNS_FUNCTION@ |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
32 @GET_ESTIMATOR_FUNCTION@ |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
33 @GET_SEARCH_PARAMS_FUNCTION@ |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
34 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
35 input_json_path = sys.argv[1] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
36 with open(input_json_path, "r") as param_handler: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
37 params = json.load(param_handler) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
38 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
39 #handle cheatah |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
40 infile1 = "$input_options.infile1" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
41 infile2 = "$input_options.infile2" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
42 infile_pipeline = "$search_schemes.infile_pipeline" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
43 outfile_result = "$outfile_result" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
44 outfile_estimator = "$outfile_estimator" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
45 #if $search_schemes.selected_search_scheme == "RandomizedSearchCV": |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
46 np.random.seed($search_schemes.random_seed) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
47 #end if |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
48 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
49 params_builder = params['search_schemes']['search_params_builder'] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
50 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
51 input_type = params["input_options"]["selected_input"] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
52 if input_type=="tabular": |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
53 header = 'infer' if params["input_options"]["header1"] else None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
54 column_option = params["input_options"]["column_selector_options_1"]["selected_column_selector_option"] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
55 if column_option in ["by_index_number", "all_but_by_index_number", "by_header_name", "all_but_by_header_name"]: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
56 c = params["input_options"]["column_selector_options_1"]["col1"] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
57 else: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
58 c = None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
59 X = read_columns( |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
60 infile1, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
61 c = c, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
62 c_option = column_option, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
63 sep='\t', |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
64 header=header, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
65 parse_dates=True |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
66 ) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
67 else: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
68 X = mmread(open("$input_options.infile1", 'r')) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
69 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
70 header = 'infer' if params["input_options"]["header2"] else None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
71 column_option = params["input_options"]["column_selector_options_2"]["selected_column_selector_option2"] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
72 if column_option in ["by_index_number", "all_but_by_index_number", "by_header_name", "all_but_by_header_name"]: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
73 c = params["input_options"]["column_selector_options_2"]["col2"] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
74 else: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
75 c = None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
76 y = read_columns( |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
77 infile2, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
78 c = c, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
79 c_option = column_option, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
80 sep='\t', |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
81 header=header, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
82 parse_dates=True |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
83 ) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
84 y=y.ravel() |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
85 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
86 optimizers = params["search_schemes"]["selected_search_scheme"] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
87 optimizers = getattr(model_selection, optimizers) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
88 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
89 options = params["search_schemes"]["options"] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
90 if 'scoring' in options and options['scoring'] == '': |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
91 options['scoring'] = None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
92 if 'pre_dispatch' in options and options['pre_dispatch'] == '': |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
93 options['pre_dispatch'] = None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
94 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
95 with open(infile_pipeline, 'rb') as pipeline_handler: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
96 pipeline = pickle.load(pipeline_handler) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
97 search_params = get_search_params(params_builder) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
98 searcher = optimizers(pipeline, search_params, **options) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
99 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
100 searcher.fit(X, y) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
101 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
102 cv_result = pandas.DataFrame(searcher.cv_results_) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
103 cv_result.to_csv(path_or_buf=outfile_result, sep='\t', header=True, index=False) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
104 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
105 #if $save: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
106 with open(outfile_estimator, "wb") as output_handler: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
107 pickle.dump(searcher.best_estimator_, output_handler, pickle.HIGHEST_PROTOCOL) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
108 #end if |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
109 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
110 ]]> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
111 </configfile> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
112 </configfiles> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
113 <inputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
114 <conditional name="search_schemes"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
115 <param name="selected_search_scheme" type="select" label="Select a model selection search scheme:"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
116 <option value="GridSearchCV" selected="true">GridSearchCV - Exhaustive search over specified parameter values for an estimator </option> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
117 <option value="RandomizedSearchCV">RandomizedSearchCV - Randomized search on hyper parameters for an estimator</option> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
118 </param> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
119 <when value="GridSearchCV"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
120 <expand macro="search_cv_estimator"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
121 <section name="options" title="Advanced Options for SearchCV" expanded="false"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
122 <expand macro="search_cv_options"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
123 </section> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
124 </when> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
125 <when value="RandomizedSearchCV"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
126 <param name="random_seed" type="integer" value="65535" min="0" max="65535" label="Set up random seed:"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
127 <expand macro="search_cv_estimator"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
128 <section name="options" title="Advanced Options for SearchCV" expanded="false"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
129 <expand macro="search_cv_options"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
130 <param argument="n_iter" type="integer" value="10" label="Number of parameter settings that are sampled"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
131 <expand macro="random_state"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
132 </section> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
133 </when> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
134 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
135 <param name="save" type="boolean" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Save the best estimator/pipeline?"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
136 <expand macro="sl_mixed_input"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
137 </inputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
138 <outputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
139 <data format="tabular" name="outfile_result"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
140 <data format="zip" name="outfile_estimator"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
141 <filter>save</filter> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
142 </data> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
143 </outputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
144 <tests> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
145 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
146 <param name="selected_search_scheme" value="GridSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
147 <param name="infile_pipeline" value="pipeline01"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
148 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
149 <param name="search_p" value="C: [1, 10, 100, 1000]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
150 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
151 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
152 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
153 <param name="search_p" value="k: [3, 5, 7, 9]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
154 <param name="selected_param_type" value="prep_2_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
155 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
156 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
157 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
158 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
159 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
160 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
161 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
162 <output name="outfile_result" > |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
163 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
164 <has_text_matching expression="[^/d]+0.7938837807353147[^/d]+{u'estimator__C': 1, u'preprocessing_2__k': 9}[^/d]+1" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
165 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
166 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
167 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
168 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
169 <param name="selected_search_scheme" value="RandomizedSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
170 <param name="infile_pipeline" value="pipeline01"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
171 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
172 <param name="search_p" value="C: [1, 10, 100, 1000]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
173 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
174 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
175 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
176 <param name="search_p" value="kernel: ['linear', 'poly', 'rbf', 'sigmoid']"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
177 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
178 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
179 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
180 <param name="search_p" value="k: [3, 5, 7, 9]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
181 <param name="selected_param_type" value="prep_2_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
182 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
183 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
184 <param name="search_p" value="with_centering: [True, False]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
185 <param name="selected_param_type" value="prep_1_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
186 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
187 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
188 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
189 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
190 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
191 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
192 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
193 <output name="outfile_result" > |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
194 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
195 <has_n_columns n="15" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
196 <has_text text="param_preprocessing_1__with_centering"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
197 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
198 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
199 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
200 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
201 <param name="selected_search_scheme" value="RandomizedSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
202 <param name="infile_pipeline" value="pipeline03"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
203 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
204 <param name="search_p" value="n_estimators: np_arange(50, 1001, 50)"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
205 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
206 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
207 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
208 <param name="search_p" value="max_depth: scipy_stats_randint(1, 51)"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
209 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
210 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
211 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
212 <param name="search_p" value="gamma: np_random_uniform(low=0., high=1., size=2)"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
213 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
214 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
215 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
216 <param name="search_p" value="random_state: [324089]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
217 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
218 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
219 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
220 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
221 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
222 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
223 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
224 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
225 <output name="outfile_result" > |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
226 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
227 <has_n_columns n="15" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
228 <has_text text="param_estimator__max_depth"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
229 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
230 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
231 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
232 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
233 <param name="selected_search_scheme" value="GridSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
234 <param name="infile_pipeline" value="pipeline04"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
235 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
236 <param name="search_p" value="random_state: list(range(100, 1001, 100))"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
237 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
238 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
239 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
240 <param name="search_p" value="estimator: [ensemble_ExtraTreesClassifier(n_estimators=100, random_state=324089)]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
241 <param name="selected_param_type" value="prep_1_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
242 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
243 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
244 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
245 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
246 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
247 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
248 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
249 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
250 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
251 <has_n_columns n="13"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
252 <has_text text="0.05363984674329502"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
253 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
254 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
255 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
256 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
257 <param name="selected_search_scheme" value="GridSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
258 <param name="infile_pipeline" value="pipeline01"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
259 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
260 <param name="search_p" value="C: [1, 10, 100, 1000]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
261 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
262 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
263 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
264 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
265 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
266 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
267 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
268 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
269 <output name="outfile_estimator" file="searchCV01" compare="sim_size" delta="1"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
270 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
271 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
272 <param name="selected_search_scheme" value="GridSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
273 <param name="infile_pipeline" value="pipeline06"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
274 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
275 <param name="search_p" value="n_estimators: [10, 50, 200, 1000]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
276 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
277 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
278 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
279 <param name="search_p" value="random_state: [324089]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
280 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
281 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
282 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
283 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
284 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
285 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
286 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
287 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
288 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
289 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
290 <has_n_columns n="13"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
291 <has_text_matching expression=".+0.7772355090078996[^/w]+1000[^/d]" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
292 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
293 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
294 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
295 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
296 <param name="selected_search_scheme" value="GridSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
297 <param name="infile_pipeline" value="pipeline07"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
298 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
299 <param name="search_p" value="n_estimators: [10, 50, 100, 200]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
300 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
301 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
302 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
303 <param name="search_p" value="random_state: [324089]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
304 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
305 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
306 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
307 <param name="search_p" value="gamma: [1.0, 2.0]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
308 <param name="selected_param_type" value="prep_1_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
309 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
310 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
311 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
312 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
313 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
314 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
315 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
316 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
317 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
318 <has_n_columns n="14"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
319 <has_text_matching expression=".+0.05747126436781609[^/d]" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
320 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
321 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
322 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
323 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
324 <param name="selected_search_scheme" value="GridSearchCV"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
325 <param name="infile_pipeline" value="pipeline08"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
326 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
327 <param name="search_p" value="n_estimators: [10, 50, 100, 200]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
328 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
329 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
330 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
331 <param name="search_p" value="random_state: [324089]"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
332 <param name="selected_param_type" value="final_estimator_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
333 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
334 <conditional name="search_param_selector"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
335 <param name="search_p" value="linkage: ['ward', 'complete', 'average']"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
336 <param name="selected_param_type" value="prep_1_p"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
337 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
338 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
339 <param name="header1" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
340 <param name="selected_column_selector_option" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
341 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
342 <param name="header2" value="true" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
343 <param name="selected_column_selector_option2" value="all_columns"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
344 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
345 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
346 <has_text_matching expression=".+0.08045977011494253[^/w]+10[^/w]" /> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
347 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
348 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
349 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
350 </tests> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
351 <help> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
352 <![CDATA[ |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
353 **What it does** |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
354 Searches optimized parameter values for an estimator or pipeline through either exhaustive grid cross validation search or Randomized cross validation search. |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
355 please refer to `Scikit-learn model_selection GridSearchCV`_, `Scikit-learn model_selection RandomizedSearchCV`_ and `Tuning hyper-parameters`_. |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
356 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
357 **How to choose search patameters?** |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
358 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
359 Please refer to `svm`_, `linear_model`_, `ensemble`_, `naive_bayes`_, `tree`_, `neighbors`_ and `xgboost`_ for estimator parameters. |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
360 Refer to `sklearn.preprocessing`_, `feature_selection`_, `decomposition`_, `kernel_approximation`_ and `cluster.FeatureAgglomeration`_ for parameter in the pre-processing steps. |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
361 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
362 **Search parameter input** accepts parameter and setting in key:value pair. One pair per input box. Setting can be list, numpy array, or distribution. |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
363 The evaluation of settings supports operations in Math, list comprehension, numpy.arange(np_arange), most numpy.random(e.g., np_random_uniform) and some scipy.stats(e.g., scipy_stats_zipf) classes or functions, and others. |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
364 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
365 **Examples:** |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
366 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
367 - K: [3, 5, 7, 9] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
368 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
369 - n_estimators: list(range(50, 1001, 50)) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
370 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
371 - gamma: np_arange(0.01, 1, 0.1) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
372 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
373 - alpha: np_random_choice(list(range(1, 51)) + [None], size=20) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
374 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
375 - max_depth: scipy_stats_randin(1, 11) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
376 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
377 - estimator: [ensemble_ExtraTreesClassifier(n_estimators=100, random_state=324089)] |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
378 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
379 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
380 .. _`Scikit-learn model_selection GridSearchCV`: http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
381 .. _`Scikit-learn model_selection RandomizedSearchCV`: http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RandomizedSearchCV.html |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
382 .. _`Tuning hyper-parameters`: http://scikit-learn.org/stable/modules/grid_search.html |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
383 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
384 .. _`svm`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.svm |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
385 .. _`linear_model`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.linear_model |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
386 .. _`ensemble`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
387 .. _`naive_bayes`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.naive_bayes |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
388 .. _`tree`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.tree |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
389 .. _`neighbors`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.neighbors |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
390 .. _`xgboost`: https://xgboost.readthedocs.io/en/latest/python/python_api.html |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
391 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
392 .. _`sklearn.preprocessing`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.preprocessing |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
393 .. _`feature_selection`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.feature_selection |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
394 .. _`decomposition`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.decomposition |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
395 .. _`kernel_approximation`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.kernel_approximation |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
396 .. _`cluster.FeatureAgglomeration`: http://scikit-learn.org/stable/modules/generated/sklearn.cluster.FeatureAgglomeration.html |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
397 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
398 ]]> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
399 </help> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
400 <expand macro="sklearn_citation"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
401 </tool> |