Mercurial > repos > bgruening > sklearn_searchcv
annotate search_model_validation.xml @ 3:f9fea8323bcb draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
author | bgruening |
---|---|
date | Fri, 17 Aug 2018 12:26:17 -0400 |
parents | 907bb0418c9f |
children | 2e6540c11251 |
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"> |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
7 <requirement type="package" version="0.6">skrebate</requirement> |
0
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 |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
21 import os |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
22 import json |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
23 import pandas |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
24 import pickle |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
25 from sklearn import model_selection |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
26 from sklearn.exceptions import FitFailedWarning |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
27 |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
28 execfile("$__tool_directory__/utils.py") |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
29 |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
30 warnings.simplefilter('ignore') |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
31 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
32 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
|
33 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
|
34 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
|
35 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
36 #handle cheatah |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
37 infile1 = "$input_options.infile1" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
38 infile2 = "$input_options.infile2" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
39 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
|
40 outfile_result = "$outfile_result" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
41 outfile_estimator = "$outfile_estimator" |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
42 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
43 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
|
44 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
45 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
|
46 if input_type=="tabular": |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
47 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
|
48 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
|
49 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
|
50 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
|
51 else: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
52 c = None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
53 X = read_columns( |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
54 infile1, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
55 c = c, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
56 c_option = column_option, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
57 sep='\t', |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
58 header=header, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
59 parse_dates=True |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
60 ) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
61 else: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
62 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
|
63 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
64 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
|
65 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
|
66 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
|
67 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
|
68 else: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
69 c = None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
70 y = read_columns( |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
71 infile2, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
72 c = c, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
73 c_option = column_option, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
74 sep='\t', |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
75 header=header, |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
76 parse_dates=True |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
77 ) |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
78 y=y.ravel() |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
79 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
80 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
|
81 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
|
82 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
83 options = params["search_schemes"]["options"] |
2
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
84 options['cv'] = get_cv( options['cv'].strip() ) |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
85 options['n_jobs'] = N_JOBS |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
86 options['scoring'] = get_scoring(options['scoring']) |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
87 if options['error_score']: |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
88 options['error_score'] = 'raise' |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
89 else: |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
90 options['error_score'] = 0 |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
91 if options['refit'] and isinstance(options['scoring'], dict): |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
92 options['refit'] = 'primary' |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
93 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
|
94 options['pre_dispatch'] = None |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
95 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
96 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
|
97 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
|
98 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
|
99 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
|
100 |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
101 warnings.simplefilter('always', FitFailedWarning) |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
102 with warnings.catch_warnings(record=True) as w: |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
103 try: |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
104 searcher.fit(X, y) |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
105 except ValueError: |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
106 pass |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
107 for warning in w: |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
108 print(repr(warning.message)) |
0
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 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
|
111 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
|
112 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
113 #if $save: |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
114 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
|
115 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
|
116 #end if |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
117 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
118 ]]> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
119 </configfile> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
120 </configfiles> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
121 <inputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
122 <conditional name="search_schemes"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
123 <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
|
124 <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
|
125 <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
|
126 </param> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
127 <when value="GridSearchCV"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
128 <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
|
129 <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
|
130 <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
|
131 </section> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
132 </when> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
133 <when value="RandomizedSearchCV"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
134 <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
|
135 <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
|
136 <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
|
137 <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
|
138 <expand macro="random_state"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
139 </section> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
140 </when> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
141 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
142 <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
|
143 <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
|
144 </inputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
145 <outputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
146 <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
|
147 <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
|
148 <filter>save</filter> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
149 </data> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
150 </outputs> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
151 <tests> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
152 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
153 <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
|
154 <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
|
155 <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
|
156 <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
|
157 <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
|
158 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
159 <conditional name="search_param_selector"> |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
160 <param name="search_p" value="k: [-1, 3, 5, 7, 9]"/> |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
161 <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
|
162 </conditional> |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
163 <param name="error_score" value="false"/> |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
164 <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
|
165 <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
|
166 <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
|
167 <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
|
168 <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
|
169 <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
|
170 <output name="outfile_result" > |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
171 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
172 <has_text_matching expression="[^/d]+0.7938837807353147[^/d]+{u'estimator__C': 1, u'preprocessing_2__k': 9}[^/d]+1" /> |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
173 <has_text text="0.0"/> |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
174 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
175 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
176 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
177 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
178 <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
|
179 <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
|
180 <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
|
181 <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
|
182 <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
|
183 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
184 <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
|
185 <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
|
186 <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
|
187 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
188 <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
|
189 <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
|
190 <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
|
191 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
192 <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
|
193 <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
|
194 <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
|
195 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
196 <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
|
197 <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
|
198 <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
|
199 <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
|
200 <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
|
201 <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
|
202 <output name="outfile_result" > |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
203 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
204 <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
|
205 <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
|
206 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
207 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
208 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
209 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
210 <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
|
211 <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
|
212 <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
|
213 <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
|
214 <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
|
215 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
216 <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
|
217 <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
|
218 <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
|
219 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
220 <conditional name="search_param_selector"> |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
221 <param name="search_p" value="gamma: scipy_stats_uniform(0., 1.)"/> |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
222 <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
|
223 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
224 <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
|
225 <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
|
226 <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
|
227 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
228 <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
|
229 <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
|
230 <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
|
231 <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
|
232 <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
|
233 <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
|
234 <output name="outfile_result" > |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
235 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
236 <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
|
237 <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
|
238 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
239 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
240 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
241 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
242 <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
|
243 <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
|
244 <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
|
245 <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
|
246 <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
|
247 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
248 <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
|
249 <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
|
250 <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
|
251 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
252 <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
|
253 <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
|
254 <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
|
255 <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
|
256 <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
|
257 <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
|
258 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
259 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
260 <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
|
261 <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
|
262 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
263 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
264 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
265 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
266 <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
|
267 <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
|
268 <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
|
269 <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
|
270 <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
|
271 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
272 <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
|
273 <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
|
274 <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
|
275 <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
|
276 <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
|
277 <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
|
278 <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
|
279 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
280 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
281 <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
|
282 <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
|
283 <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
|
284 <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
|
285 <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
|
286 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
287 <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
|
288 <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
|
289 <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
|
290 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
291 <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
|
292 <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
|
293 <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
|
294 <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
|
295 <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
|
296 <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
|
297 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
298 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
299 <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
|
300 <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
|
301 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
302 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
303 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
304 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
305 <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
|
306 <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
|
307 <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
|
308 <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
|
309 <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
|
310 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
311 <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
|
312 <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
|
313 <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
|
314 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
315 <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
|
316 <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
|
317 <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
|
318 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
319 <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
|
320 <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
|
321 <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
|
322 <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
|
323 <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
|
324 <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
|
325 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
326 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
327 <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
|
328 <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
|
329 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
330 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
331 </test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
332 <test> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
333 <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
|
334 <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
|
335 <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
|
336 <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
|
337 <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
|
338 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
339 <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
|
340 <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
|
341 <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
|
342 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
343 <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
|
344 <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
|
345 <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
|
346 </conditional> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
347 <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
|
348 <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
|
349 <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
|
350 <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
|
351 <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
|
352 <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
|
353 <output name="outfile_result"> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
354 <assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
355 <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
|
356 </assert_contents> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
357 </output> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
358 </test> |
2
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
359 <test> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
360 <param name="selected_search_scheme" value="GridSearchCV"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
361 <param name="infile_pipeline" value="pipeline01"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
362 <conditional name="search_param_selector"> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
363 <param name="search_p" value="C: [1, 10, 100, 1000]"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
364 <param name="selected_param_type" value="final_estimator_p"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
365 </conditional> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
366 <param name='cv' value="StratifiedKFold(n_splits=3, shuffle=True, random_state=10)"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
367 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
368 <param name="header1" value="true" /> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
369 <param name="selected_column_selector_option" value="all_columns"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
370 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
371 <param name="header2" value="true" /> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
372 <param name="selected_column_selector_option2" value="all_columns"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
373 <output name="outfile_estimator" file="searchCV01" compare="sim_size" delta="1"/> |
907bb0418c9f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
bgruening
parents:
0
diff
changeset
|
374 </test> |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
375 <test> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
376 <param name="selected_search_scheme" value="GridSearchCV"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
377 <param name="infile_pipeline" value="pipeline03"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
378 <conditional name="search_param_selector"> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
379 <param name="search_p" value="n_estimators: [10, 50, 200, 1000]"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
380 <param name="selected_param_type" value="final_estimator_p"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
381 </conditional> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
382 <conditional name="search_param_selector"> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
383 <param name="search_p" value="random_state: [324089]"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
384 <param name="selected_param_type" value="final_estimator_p"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
385 </conditional> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
386 <param name="primary_scoring" value="balanced_accuracy"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
387 <param name="cv" value="StratifiedKFold(n_splits=3, shuffle=True, random_state=10)"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
388 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
389 <param name="header1" value="true" /> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
390 <param name="selected_column_selector_option" value="all_columns"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
391 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
392 <param name="header2" value="true" /> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
393 <param name="selected_column_selector_option2" value="all_columns"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
394 <output name="outfile_result" > |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
395 <assert_contents> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
396 <has_n_columns n="13" /> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
397 <has_text text="0.05366527890058046"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
398 </assert_contents> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
399 </output> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
400 </test> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
401 <test> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
402 <param name="selected_search_scheme" value="GridSearchCV"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
403 <param name="infile_pipeline" value="pipeline09"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
404 <conditional name="search_param_selector"> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
405 <param name="search_p" value="n_neighbors: [50, 100, 150, 200]"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
406 <param name="selected_param_type" value="prep_1_p"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
407 </conditional> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
408 <conditional name="search_param_selector"> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
409 <param name="search_p" value="random_state: [324089]"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
410 <param name="selected_param_type" value="final_estimator_p"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
411 </conditional> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
412 <param name="primary_scoring" value="explained_variance"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
413 <param name="secondary_scoring" value="neg_mean_squared_error,r2"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
414 <param name="cv" value="StratifiedKFold(n_splits=3, shuffle=True, random_state=10)"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
415 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
416 <param name="header1" value="true" /> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
417 <param name="selected_column_selector_option" value="all_columns"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
418 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
419 <param name="header2" value="true" /> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
420 <param name="selected_column_selector_option2" value="all_columns"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
421 <output name="outfile_result" > |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
422 <assert_contents> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
423 <has_n_columns n="25" /> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
424 <has_text text="0.7881203921915186"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
425 <has_text text="0.7880692034558879"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
426 <has_text text="-29.381892762877825"/> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
427 </assert_contents> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
428 </output> |
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
429 </test> |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
430 </tests> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
431 <help> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
432 <![CDATA[ |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
433 **What it does** |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
434 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
|
435 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
|
436 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
437 **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
|
438 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
439 Please refer to `svm`_, `linear_model`_, `ensemble`_, `naive_bayes`_, `tree`_, `neighbors`_ and `xgboost`_ for estimator parameters. |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
440 Refer to `sklearn.preprocessing`_, `feature_selection`_, `decomposition`_, `kernel_approximation`_, `cluster.FeatureAgglomeration`_ and `skrebate`_ for parameter in the pre-processing steps. |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
441 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
442 **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
|
443 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
|
444 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
445 **Examples:** |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
446 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
447 - 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
|
448 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
449 - 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
|
450 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
451 - 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
|
452 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
453 - 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
|
454 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
455 - 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
|
456 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
457 - 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
|
458 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
459 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
460 .. _`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
|
461 .. _`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
|
462 .. _`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
|
463 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
464 .. _`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
|
465 .. _`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
|
466 .. _`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
|
467 .. _`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
|
468 .. _`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
|
469 .. _`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
|
470 .. _`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
|
471 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
472 .. _`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
|
473 .. _`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
|
474 .. _`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
|
475 .. _`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
|
476 .. _`cluster.FeatureAgglomeration`: http://scikit-learn.org/stable/modules/generated/sklearn.cluster.FeatureAgglomeration.html |
3
f9fea8323bcb
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
2
diff
changeset
|
477 .. _`skrebate`: https://epistasislab.github.io/scikit-rebate/using/ |
0
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
478 |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
479 ]]> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
480 </help> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
481 <expand macro="sklearn_citation"/> |
91bf3f0d7455
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
482 </tool> |