Mercurial > repos > bgruening > sklearn_build_pipeline
annotate pipeline.xml @ 29:4c4ec859c31a draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57a0433defa3cbc37ab34fbb0ebcfaeb680db8d5
author | bgruening |
---|---|
date | Sun, 05 Nov 2023 15:54:36 +0000 |
parents | 118e230e85ce |
children |
rev | line source |
---|---|
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
1 <tool id="sklearn_build_pipeline" name="Pipeline Builder" version="@VERSION@" profile="@PROFILE@"> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
2 <description>an all-in-one platform to build pipeline, single estimator, preprocessor and custom wrappers</description> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
3 <macros> |
73535ddcfa69
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> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
5 </macros> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
6 <expand macro="python_requirements" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
7 <expand macro="macro_stdio" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
8 <version_command>echo "@VERSION@"</version_command> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
9 <command> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
10 <![CDATA[ |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
11 python "$sklearn_pipeline_script" '$inputs' |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
12 ]]> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
13 </command> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
14 <configfiles> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
15 <inputs name="inputs" /> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
16 <configfile name="sklearn_pipeline_script"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
17 <![CDATA[ |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
18 import imblearn |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
19 import json |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
20 import pandas as pd |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
21 import pprint |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
22 import skrebate |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
23 import sys |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
24 import warnings |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
25 from sklearn import ( |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
26 cluster, compose, decomposition, ensemble, feature_extraction, |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
27 feature_selection, gaussian_process, kernel_approximation, metrics, |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
28 model_selection, naive_bayes, neighbors, pipeline, preprocessing, |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
29 svm, linear_model, tree, discriminant_analysis) |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
30 from sklearn.pipeline import make_pipeline |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
31 from imblearn.pipeline import make_pipeline as imb_make_pipeline |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
32 from galaxy_ml.model_persist import dump_model_to_h5, load_model_from_h5 |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
33 from galaxy_ml.utils import (SafeEval, feature_selector, get_estimator, |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
34 try_get_attr, get_search_params) |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
35 |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
36 |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
37 N_JOBS = int(__import__('os').environ.get('GALAXY_SLOTS', 1)) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
38 |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
39 warnings.filterwarnings('ignore') |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
40 |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
41 safe_eval = SafeEval() |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
42 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
43 input_json_path = sys.argv[1] |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
44 with open(input_json_path, 'r') as param_handler: |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
45 params = json.load(param_handler) |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
46 |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
47 #if $final_estimator.estimator_selector.selected_module == 'custom_estimator': |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
48 params['final_estimator']['estimator_selector']['c_estimator'] =\ |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
49 '$final_estimator.estimator_selector.c_estimator' |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
50 #end if |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
51 |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
52 #if $final_estimator.estimator_selector.selected_module == 'binarize_target': |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
53 params['final_estimator']['estimator_selector']['wrapped_estimator'] =\ |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
54 '$final_estimator.estimator_selector.wrapped_estimator' |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
55 #end if |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
56 |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
57 pipeline_steps = [] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
58 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
59 def get_component(input_json, check_none=False): |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
60 is_imblearn = False |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
61 if input_json['component_type'] == 'None': |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
62 if not check_none: |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
63 return None, False |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
64 else: |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
65 sys.exit("The pre-processing component type can't be None " |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
66 "when the number of components is greater than 1.") |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
67 if input_json['component_type'] == 'pre_processor': |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
68 preprocessor = input_json['pre_processors']['selected_pre_processor'] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
69 pre_processor_options = input_json['pre_processors']['options'] |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
70 if 'feature_range' in pre_processor_options: |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
71 feature_range = safe_eval(pre_processor_options['feature_range'].strip()) |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
72 if not feature_range: |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
73 feature_range = (0, 1) |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
74 pre_processor_options['feature_range'] = feature_range |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
75 my_class = getattr(preprocessing, preprocessor) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
76 obj = my_class(**pre_processor_options) |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
77 elif input_json['component_type'] == 'feature_selection': |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
78 obj = feature_selector(input_json['fs_algorithm_selector']) |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
79 elif input_json['component_type'] == 'decomposition': |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
80 algorithm = input_json['matrix_decomposition_selector']['select_algorithm'] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
81 obj = getattr(decomposition, algorithm)() |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
82 options = input_json['matrix_decomposition_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
83 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
84 options = safe_eval( 'dict(' + options + ')' ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
85 obj.set_params(**options) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
86 elif input_json['component_type'] == 'kernel_approximation': |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
87 algorithm = input_json['kernel_approximation_selector']['select_algorithm'] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
88 obj = getattr(kernel_approximation, algorithm)() |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
89 options = input_json['kernel_approximation_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
90 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
91 options = safe_eval( 'dict(' + options + ')' ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
92 obj.set_params(**options) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
93 elif input_json['component_type'] == 'FeatureAgglomeration': |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
94 algorithm = input_json['FeatureAgglomeration_selector']['select_algorithm'] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
95 obj = getattr(cluster, algorithm)() |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
96 options = input_json['FeatureAgglomeration_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
97 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
98 options = safe_eval( 'dict(' + options + ')' ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
99 obj.set_params(**options) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
100 elif input_json['component_type'] == 'skrebate': |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
101 algorithm = input_json['skrebate_selector']['select_algorithm'] |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
102 if algorithm == 'TuRF': |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
103 obj = getattr(skrebate, algorithm)(core_algorithm='ReliefF') |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
104 else: |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
105 obj = getattr(skrebate, algorithm)() |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
106 options = input_json['skrebate_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
107 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
108 options = safe_eval( 'dict(' + options + ')' ) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
109 obj.set_params(**options) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
110 elif input_json['component_type'] == 'imblearn': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
111 is_imblearn = True |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
112 algorithm = input_json['imblearn_selector']['select_algorithm'] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
113 if algorithm == 'over_sampling.SMOTENC': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
114 obj = over_sampling.SMOTENC(categorical_features=[]) |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
115 elif algorithm == 'Z_RandomOverSampler': |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
116 Z_RandomOverSampler = try_get_attr('galaxy_ml.preprocessors', |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
117 'Z_RandomOverSampler') |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
118 obj = Z_RandomOverSampler() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
119 else: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
120 globals = algorithm.split('.') |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
121 mod, klass = globals[0], globals[1] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
122 obj = getattr(getattr(imblearn, mod), klass)() |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
123 options = input_json['imblearn_selector']['text_params'].strip() |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
124 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
125 options = safe_eval( 'dict(' + options + ')' ) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
126 obj.set_params(**options) |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
127 elif input_json['component_type'] == 'IRAPS': |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
128 iraps_core = try_get_attr('galaxy_ml.iraps_classifier','IRAPSCore')() |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
129 core_params = input_json['text_params'].strip() |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
130 if core_params != '': |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
131 try: |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
132 params = safe_eval('dict(' + core_params + ')') |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
133 except ValueError: |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
134 sys.exit("Unsupported parameter input: `%s`" % core_params) |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
135 iraps_core.set_params(**params) |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
136 options = {} |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
137 if input_json['p_thres'] is not None: |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
138 options['p_thres'] = input_json['p_thres'] |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
139 if input_json['fc_thres'] is not None: |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
140 options['fc_thres'] = input_json['fc_thres'] |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
141 if input_json['occurrence'] is not None: |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
142 options['occurrence'] = input_json['occurrence'] |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
143 if input_json['discretize'] is not None: |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
144 options['discretize'] = input_json['discretize'] |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
145 IRAPSClassifier = try_get_attr('galaxy_ml.iraps_classifier','IRAPSClassifier') |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
146 obj = IRAPSClassifier(iraps_core, **options) |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
147 elif input_json['component_type'] == 'preprocessors': |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
148 encoder_selection = input_json['encoder_selection'] |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
149 encoder_type = encoder_selection.pop('encoder_type') |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
150 klass = try_get_attr('galaxy_ml.preprocessors', encoder_type) |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
151 obj = klass(**encoder_selection) |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
152 |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
153 if 'n_jobs' in obj.get_params(): |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
154 obj.set_params( n_jobs=N_JOBS ) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
155 return obj, is_imblearn |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
156 |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
157 has_imblearn = False |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
158 if len(params['pipeline_component']) == 1: |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
159 step_obj, is_imblearn = get_component( params['pipeline_component'][0]['component_selector']) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
160 if step_obj: |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
161 pipeline_steps.append( step_obj ) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
162 if is_imblearn: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
163 has_imblearn = True |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
164 else: |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
165 for i, c in enumerate(params['pipeline_component']): |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
166 step_obj, is_imblearn = get_component( c['component_selector'], check_none=True ) |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
167 pipeline_steps.append( step_obj ) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
168 if is_imblearn: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
169 has_imblearn = True |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
170 |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
171 ## Set up final estimator and add to pipeline. |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
172 estimator_json = params['final_estimator']['estimator_selector'] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
173 if estimator_json['selected_module'] == 'none': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
174 if len(pipeline_steps) == 0: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
175 sys.exit("No pipeline steps specified!") |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
176 ## else: turn the last pre-process component to final estimator |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
177 elif estimator_json['selected_module'] == 'sklearn.compose': |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
178 #if $final_estimator.estimator_selector.selected_module == 'sklearn.compose': |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
179 regressor_path = '$final_estimator.estimator_selector.regressor' |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
180 transformer_path = '$final_estimator.estimator_selector.transformer' |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
181 #end if |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
182 regressor = load_model_from_h5(regressor_path) |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
183 transformer = load_model_from_h5(transformer_path) |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
184 estimator = compose.TransformedTargetRegressor(regressor=regressor, transformer=transformer) |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
185 pipeline_steps.append( estimator ) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
186 else: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
187 estimator = get_estimator(estimator_json) |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
188 pipeline_steps.append( estimator ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
189 |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
190 if len(pipeline_steps) == 1: |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
191 out_obj = pipeline_steps[-1] |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
192 print(out_obj) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
193 else: |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
194 if has_imblearn: |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
195 out_obj = imb_make_pipeline(*pipeline_steps) |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
196 else: |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
197 out_obj = make_pipeline(*pipeline_steps) |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
198 pprint.pprint(out_obj.named_steps) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
199 |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
200 dump_model_to_h5(out_obj, '$outfile', verbose=0) |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
201 |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
202 ]]> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
203 </configfile> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
204 </configfiles> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
205 <inputs> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
206 <repeat name="pipeline_component" min="1" max="5" title="Pre-processing step"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
207 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
208 <param name="component_type" type="select" label="Choose the type of transformation:"> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
209 <option value="None" selected="true">None</option> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
210 <option value="pre_processor">Sklearn Preprocessor</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
211 <option value="feature_selection">Feature Selection</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
212 <option value="decomposition">Matrix Decomposition</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
213 <option value="kernel_approximation">Kernel Approximation</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
214 <option value="FeatureAgglomeration">Agglomerate Features</option> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
215 <option value="skrebate">SK-rebate Feature Selection</option> |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
216 <option value="imblearn">Imbalanced-learn Sampling</option> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
217 <option value="IRAPS">IRAPS -- feature selector and classifier</option> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
218 <option value="preprocessors">Bio-sequence Encoders</option> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
219 </param> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
220 <when value="None" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
221 <when value="pre_processor"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
222 <conditional name="pre_processors"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
223 <expand macro="sparse_preprocessors_ext" /> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
224 <expand macro="sparse_preprocessor_options_ext" /> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
225 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
226 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
227 <when value="feature_selection"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
228 <expand macro="feature_selection_pipeline" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
229 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
230 <when value="decomposition"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
231 <expand macro="matrix_decomposition_all" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
232 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
233 <when value="kernel_approximation"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
234 <expand macro="kernel_approximation_all" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
235 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
236 <when value="FeatureAgglomeration"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
237 <expand macro="FeatureAgglomeration" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
238 </when> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
239 <when value="skrebate"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
240 <expand macro="skrebate" /> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
241 </when> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
242 <when value="imblearn"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
243 <expand macro="imbalanced_learn_sampling" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
244 </when> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
245 <when value="IRAPS"> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
246 <expand macro="estimator_params_text" |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
247 label="Type in parameter settings for IRAPSCore if different from default:" |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
248 help="Default(=blank): n_iter=1000, responsive_thres=-1, resistant_thres=0, random_state=None. No double quotes" /> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
249 <param argument="p_thres" type="float" value="0.001" label="P value threshold" help="Float. default=0.001" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
250 <param argument="fc_thres" type="float" value="0.1" label="fold change threshold" help="Float. default=0.1" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
251 <param argument="occurrence" type="float" value="0.7" label="reservation factor" help="Float. default=0.7" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
252 <param argument="discretize" type="float" value="-1" label="The z_score threshold to discretize target value" help="Float. default=-1" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
253 </when> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
254 <when value="preprocessors"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
255 <expand macro="preprocessors_sequence_encoders" /> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
256 </when> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
257 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
258 </repeat> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
259 <section name="final_estimator" title="Final Estimator" expanded="true"> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
260 <conditional name="estimator_selector"> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
261 <param name="selected_module" type="select" label="Choose the module that contains target estimator:" > |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
262 <expand macro="estimator_module_options"> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
263 <option value="sklearn.compose">sklearn.compose</option> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
264 <option value="binarize_target">Binarize Target Classifier or Regressor</option> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
265 <option value="custom_estimator">Load a custom estimator</option> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
266 <option value="none">none -- The last component of pre-processing step will turn to a final estimator</option> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
267 </expand> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
268 </param> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
269 <expand macro="estimator_suboptions"> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
270 <when value="sklearn.compose"> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
271 <param name="selected_estimator" type="select" label="Choose estimator class:"> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
272 <option value="TransformedTargetRegressor" selected="true">TransformedTargetRegressor</option> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
273 </param> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
274 <param name="regressor" type="data" format="h5mlm" label="Choose the dataset containing the wrapped regressor" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
275 <param name="transformer" type="data" format="h5mlm" label="Choose the dataset containing transformer" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
276 </when> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
277 <when value="binarize_target"> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
278 <param name="clf_or_regr" type="select" label="Classifier or Regressor:"> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
279 <option value="BinarizeTargetClassifier">BinarizeTargetClassifier</option> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
280 <option value="BinarizeTargetRegressor">BinarizeTargetRegressor</option> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
281 </param> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
282 <param name="wrapped_estimator" type="data" format="h5mlm" label="Choose the dataset containing the wrapped estimator or pipeline" /> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
283 <param name='z_score' type="float" value="-1" optional="false" label="Discrize target values using z_score" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
284 <param name='value' type="float" value="" optional="true" label="Discretize target values using a fixed value instead" help="Optional. default: None." /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
285 <param name="less_is_positive" type="boolean" truevalue="booltrue" falsevalue="boolfalse" checked="true" label="Are the detecting values smaller than others?" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
286 </when> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
287 <when value="custom_estimator"> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
288 <param name="c_estimator" type="data" format="h5mlm" label="Choose the dataset containing the custom estimator or pipeline" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
289 </when> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
290 <when value="none" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
291 </expand> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
292 </conditional> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
293 </section> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
294 <!--param name="output_type" type="select" label="Output the final estimator instead?"> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
295 <option value="Pipeline_Builder" selected="true">Pipeline</option> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
296 <option value="Final_Estimator_Builder">Final Estimator</option> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
297 </param>--> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
298 </inputs> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
299 <outputs> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
300 <data format="h5mlm" name="outfile" label="New Pipleline/Estimator" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
301 </outputs> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
302 <tests> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
303 <test> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
304 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
305 <param name="component_type" value="pre_processor" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
306 <conditional name="pre_processors"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
307 <param name="selected_pre_processor" value="QuantileTransformer" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
308 <section name="options"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
309 <param name="random_state" value="10" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
310 </section> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
311 </conditional> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
312 </conditional> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
313 <section name="final_estimator"> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
314 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
315 <param name="selected_module" value="none" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
316 </conditional> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
317 </section> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
318 <output name="outfile" file="pipeline17" compare="sim_size" delta="5" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
319 </test> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
320 <test> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
321 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
322 <param name="component_type" value="pre_processor" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
323 <conditional name="pre_processors"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
324 <param name="selected_pre_processor" value="PowerTransformer" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
325 </conditional> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
326 </conditional> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
327 <section name="final_estimator"> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
328 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
329 <param name="selected_module" value="sklearn.compose" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
330 <param name="regressor" value="RandomForestRegressor01.h5mlm" ftype="h5mlm" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
331 <param name="transformer" value="pipeline17" ftype="h5mlm" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
332 </conditional> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
333 </section> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
334 <output name="outfile" file="pipeline18" compare="sim_size" delta="5" /> |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
335 </test> |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
336 <test> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
337 <repeat name="pipeline_component"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
338 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
339 <param name="component_type" value="pre_processor" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
340 <conditional name="pre_processors"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
341 <param name="selected_pre_processor" value="RobustScaler" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
342 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
343 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
344 </repeat> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
345 <repeat name="pipeline_component"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
346 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
347 <param name="component_type" value="feature_selection" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
348 <conditional name="fs_algorithm_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
349 <param name="selected_algorithm" value="SelectKBest" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
350 <param name="score_func" value="f_classif" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
351 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
352 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
353 </repeat> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
354 <param name="selected_module" value="svm" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
355 <param name="selected_estimator" value="SVR" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
356 <param name="text_params" value="kernel='linear'" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
357 <output name="outfile" file="pipeline01" compare="sim_size" delta="5" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
358 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
359 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
360 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
361 <param name="component_type" value="pre_processor" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
362 <conditional name="pre_processors"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
363 <param name="selected_pre_processor" value="RobustScaler" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
364 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
365 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
366 <param name="selected_module" value="linear_model" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
367 <param name="selected_estimator" value="LassoCV" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
368 <output name="outfile" file="pipeline02" compare="sim_size" delta="5" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
369 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
370 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
371 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
372 <param name="component_type" value="pre_processor" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
373 <conditional name="pre_processors"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
374 <param name="selected_pre_processor" value="RobustScaler" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
375 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
376 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
377 <param name="selected_module" value="xgboost" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
378 <param name="selected_estimator" value="XGBClassifier" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
379 <output name="outfile" file="pipeline03" compare="sim_size" delta="5" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
380 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
381 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
382 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
383 <param name="component_type" value="feature_selection" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
384 <conditional name="fs_algorithm_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
385 <param name="selected_algorithm" value="SelectFromModel" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
386 <conditional name="model_inputter"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
387 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
388 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
389 <param name="selected_estimator" value="AdaBoostClassifier" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
390 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
391 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
392 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
393 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
394 <section name="final_estimator"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
395 <param name="selected_module" value="svm" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
396 <param name="selected_estimator" value="LinearSVC" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
397 </section> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
398 <output name="outfile" file="pipeline04" compare="sim_size" delta="5" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
399 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
400 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
401 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
402 <param name="component_type" value="None" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
403 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
404 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
405 <param name="selected_estimator" value="RandomForestRegressor" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
406 <param name="text_params" value="n_estimators=100, random_state=42" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
407 <output name="outfile" file="pipeline05" compare="sim_size" delta="5" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
408 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
409 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
410 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
411 <param name="component_type" value="decomposition" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
412 <conditional name="matrix_decomposition_selector"> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
413 <param name="select_algorithm" value="PCA" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
414 </conditional> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
415 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
416 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
417 <param name="selected_estimator" value="AdaBoostRegressor" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
418 <output name="outfile" file="pipeline06" compare="sim_size" delta="5" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
419 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
420 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
421 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
422 <param name="component_type" value="kernel_approximation" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
423 <conditional name="kernel_approximation_selector"> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
424 <param name="select_algorithm" value="RBFSampler" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
425 <param name="text_params" value="n_components=10, gamma=2.0" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
426 </conditional> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
427 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
428 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
429 <param name="selected_estimator" value="AdaBoostClassifier" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
430 <output name="outfile" file="pipeline07" compare="sim_size" delta="5" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
431 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
432 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
433 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
434 <param name="component_type" value="FeatureAgglomeration" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
435 <conditional name="FeatureAgglomeration_selector"> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
436 <param name="select_algorithm" value="FeatureAgglomeration" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
437 <param name="text_params" value="n_clusters=3, affinity='euclidean'" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
438 </conditional> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
439 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
440 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
441 <param name="selected_estimator" value="AdaBoostClassifier" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
442 <output name="outfile" file="pipeline08" compare="sim_size" delta="20" /> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
443 </test> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
444 <test> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
445 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
446 <param name="component_type" value="skrebate" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
447 <conditional name="skrebate_selector"> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
448 <param name="select_algorithm" value="ReliefF" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
449 <param name="text_params" value="n_features_to_select=3, n_neighbors=100" /> |
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
450 </conditional> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
451 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
452 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
453 <param name="selected_estimator" value="RandomForestRegressor" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
454 <output name="outfile" file="pipeline09" compare="sim_size" delta="5" /> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
455 </test> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
456 <test> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
457 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
458 <param name="component_type" value="imblearn" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
459 <conditional name="imblearn_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
460 <param name="select_algorithm" value="under_sampling.EditedNearestNeighbours" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
461 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
462 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
463 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
464 <param name="selected_estimator" value="RandomForestClassifier" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
465 <output name="outfile" file="pipeline11" compare="sim_size" delta="5" /> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
466 </test> |
6
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
467 <test expect_failure="true"> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
468 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
469 <param name="component_type" value="None" /> |
6
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
470 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
471 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
472 <param name="selected_estimator" value="RandomForestRegressor" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
473 <param name="text_params" value="n_estimators=__import__('os').system('ls ~')" /> |
6
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
474 </test> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
475 <test> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
476 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
477 <param name="component_type" value="feature_selection" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
478 <conditional name="fs_algorithm_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
479 <param name="selected_algorithm" value="RFE" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
480 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
481 <param name="selected_module" value="xgboost" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
482 <param name="selected_estimator" value="XGBRegressor" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
483 <param name="text_params" value="random_state=0" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
484 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
485 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
486 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
487 <section name="final_estimator"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
488 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
489 <param name="selected_module" value="none" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
490 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
491 </section> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
492 <output name="outfile" file="pipeline12" compare="sim_size" delta="5" /> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
493 </test> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
494 <test> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
495 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
496 <param name="component_type" value="None" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
497 </conditional> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
498 <param name="selected_module" value="ensemble" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
499 <param name="selected_estimator" value="RandomForestClassifier" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
500 <output name="outfile" file="RandomForestClassifier.h5mlm" compare="sim_size" delta="5" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
501 </test> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
502 <test> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
503 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
504 <param name="component_type" value="IRAPS" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
505 </conditional> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
506 <section name="final_estimator"> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
507 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
508 <param name="selected_module" value="none" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
509 </conditional> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
510 </section> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
511 <output name="outfile" file="pipeline14" compare="sim_size" delta="5" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
512 </test> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
513 <test> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
514 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
515 <param name="component_type" value="None" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
516 </conditional> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
517 <section name="final_estimator"> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
518 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
519 <param name="selected_module" value="binarize_target" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
520 <param name="clf_or_regr" value="BinarizeTargetClassifier" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
521 <param name="wrapped_estimator" value="RandomForestClassifier.h5mlm" ftype="h5mlm" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
522 </conditional> |
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
523 </section> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
524 <output name="outfile" file="pipeline15" compare="sim_size" delta="5" /> |
8
913ee94945f3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
7
diff
changeset
|
525 </test> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
526 <test> |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
527 <conditional name="component_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
528 <param name="component_type" value="preprocessors" /> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
529 <conditional name="encoder_selection"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
530 <param name="encoder_type" value="GenomeOneHotEncoder" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
531 <param name="seq_length" value="1000" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
532 <param name="padding" value="True" /> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
533 </conditional> |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
534 </conditional> |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
535 <section name="final_estimator"> |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
536 <conditional name="estimator_selector"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
537 <param name="selected_module" value="custom_estimator" /> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
538 <param name="c_estimator" value="keras_model02" ftype="h5mlm" /> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
539 </conditional> |
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
540 </section> |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
541 <output name="outfile" file="pipeline16" compare="sim_size" delta="5" /> |
10
775b004b7920
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
8
diff
changeset
|
542 </test> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
543 </tests> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
544 <help> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
545 <![CDATA[ |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
546 **What it does** |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
547 This tool not only builds sklearn pipeline object, but also builds single main estimator or single preprocessing component. The output object type is based on the length of pipeline steps. When there is only one step (choose `None` for others), either a main estimator or preprocessor, the component is output directly instead of wrapping in a pipeline object. |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
548 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
549 A typical pipeline chains one or more preprocessing steps plus a final main estimator, for example, [VarianceThreshold, StandardScaler, SGDClassifier] which is composed of a feature selctor, a preprocessing scaler and a main estimator together. |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
550 For more information, please refer to `Scikit-learn pipeline Pipeline`_. |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
551 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
552 **Pre-processing components** come from `sklearn.preprocessing`_, `feature_selection`_, `decomposition`_, `kernel_approximation`_, `cluster.FeatureAgglomeration`_, `skrebate`_ and more. |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
553 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
554 **Final Estimator** supports estimators from `xgboost`_ and many scikit-learn modules, including `svm`_, `linear_model`_, `ensemble`_, `naive_bayes`_, `tree`_, `neighbors`_ and so on. |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
555 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
556 **Custom estimators** |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
557 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
558 - `GenomeOneHotEncoder`_ |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
559 |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
560 - `ProteinOnehotEncoder`_ |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
561 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
562 - `IRAPSClassifier`_ |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
563 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
564 - `BinarizeTargetClassifier`_ |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
565 |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
566 - `BinarizeTargetRegressor`_ |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
567 |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
568 **Output** |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
569 |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
570 - Pipeline/estimator object |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
571 |
25
118e230e85ce
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
19
diff
changeset
|
572 - Hyperparameter of the object (optional) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
573 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
574 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
575 .. _`Scikit-learn pipeline Pipeline`: http://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
576 .. _`svm`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.svm |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
577 .. _`linear_model`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.linear_model |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
578 .. _`ensemble`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
579 .. _`naive_bayes`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.naive_bayes |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
580 .. _`tree`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.tree |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
581 .. _`neighbors`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.neighbors |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
582 .. _`xgboost`: https://xgboost.readthedocs.io/en/latest/python/python_api.html |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
583 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
584 .. _`sklearn.preprocessing`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.preprocessing |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
585 .. _`feature_selection`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.feature_selection |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
586 .. _`decomposition`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.decomposition |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
587 .. _`kernel_approximation`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.kernel_approximation |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
588 .. _`cluster.FeatureAgglomeration`: http://scikit-learn.org/stable/modules/generated/sklearn.cluster.FeatureAgglomeration.html |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
589 .. _`skrebate`: https://epistasislab.github.io/scikit-rebate/using/ |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
590 |
15
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
591 .. _`GenomeOneHotEncoder`: https://goeckslab.github.io/Galaxy-ML/APIs/preprocessors/#genomeonehotencoder |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
592 .. _`ProteinOnehotEncoder`: https://goeckslab.github.io/Galaxy-ML/APIs/preprocessors/#proteinonehotencoder |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
593 .. _`IRAPSClassifier`: https://goeckslab.github.io/Galaxy-ML/APIs/iraps-classifier/#irapsclassifier |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
594 .. _`BinarizeTargetClassifier`: https://goeckslab.github.io/Galaxy-ML/APIs/binarize-target/#binarizetargetclassifier |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
595 .. _`BinarizeTargetRegressor`: https://goeckslab.github.io/Galaxy-ML/APIs/binarize-target/#binarizetargetregressor |
3f3c6dc38f3e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
10
diff
changeset
|
596 |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
597 ]]> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
598 </help> |
4
86450dde8682
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cf3d813ec755166ee0bd517b4ecbbd4f84d4df1
bgruening
parents:
3
diff
changeset
|
599 <expand macro="sklearn_citation"> |
19
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
600 <expand macro="skrebate_citation" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
601 <expand macro="xgboost_citation" /> |
4de3d598c116
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents:
15
diff
changeset
|
602 <expand macro="imblearn_citation" /> |
4
86450dde8682
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cf3d813ec755166ee0bd517b4ecbbd4f84d4df1
bgruening
parents:
3
diff
changeset
|
603 </expand> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
604 </tool> |