Mercurial > repos > bgruening > sklearn_ensemble
annotate ensemble.xml @ 32:1a53edc4b438 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 756f8be9c3cd437e131e6410cd625c24fe078e8c"
author | bgruening |
---|---|
date | Wed, 22 Jan 2020 08:06:22 -0500 |
parents | af0523c606a7 |
children | 19d6c2745d34 |
rev | line source |
---|---|
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
1 <tool id="sklearn_ensemble" name="Ensemble methods" version="@VERSION@"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
2 <description>for classification and regression</description> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
3 <macros> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
4 <import>main_macros.xml</import> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
5 </macros> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
6 <expand macro="python_requirements"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
7 <expand macro="macro_stdio"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
8 <version_command>echo "@VERSION@"</version_command> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
9 <command><![CDATA[ |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
10 python "$ensemble_script" '$inputs' |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
11 ]]> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
12 </command> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
13 <configfiles> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
14 <inputs name="inputs"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
15 <configfile name="ensemble_script"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
16 <![CDATA[ |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
17 import json |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
18 import numpy as np |
24
e94395c672bd
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
23
diff
changeset
|
19 import pandas |
e94395c672bd
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
23
diff
changeset
|
20 import pickle |
26
dde0f1654d18
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
24
diff
changeset
|
21 import sys |
dde0f1654d18
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
24
diff
changeset
|
22 |
24
e94395c672bd
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
23
diff
changeset
|
23 from scipy.io import mmread |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
24 import sklearn.ensemble |
26
dde0f1654d18
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
24
diff
changeset
|
25 from galaxy_ml.utils import load_model, get_X_y |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
26 |
24
e94395c672bd
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
23
diff
changeset
|
27 |
e94395c672bd
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents:
23
diff
changeset
|
28 N_JOBS = int(__import__('os').environ.get('GALAXY_SLOTS', 1)) |
4
0431274c367d
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit cea052cf3b8dd4f3620253bd222e126de32e7466
bgruening
parents:
2
diff
changeset
|
29 |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
30 # Get inputs, outputs. |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
31 input_json_path = sys.argv[1] |
15
f02eeabab5d1
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
14
diff
changeset
|
32 with open(input_json_path, "r") as param_handler: |
f02eeabab5d1
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
14
diff
changeset
|
33 params = json.load(param_handler) |
f02eeabab5d1
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
14
diff
changeset
|
34 print(params) |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
35 |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
36 # Put all cheetah up here to avoid confusion. |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
37 #if $selected_tasks.selected_task == "train": |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
38 infile1 = "$selected_tasks.selected_algorithms.input_options.infile1" |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
39 infile2 = "$selected_tasks.selected_algorithms.input_options.infile2" |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
40 #else: |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
41 infile_model = "$selected_tasks.infile_model" |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
42 infile_data = "$selected_tasks.infile_data" |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
43 #end if |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
44 outfile_fit = "$outfile_fit" |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
45 outfile_predict = "$outfile_predict" |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
46 |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
47 # All Python from here on out: |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
48 |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
49 if params["selected_tasks"]["selected_task"] == "train": |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
50 algorithm = params["selected_tasks"]["selected_algorithms"]["selected_algorithm"] |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
51 options = params["selected_tasks"]["selected_algorithms"]["options"] |
19
4570575d060c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
15
diff
changeset
|
52 if algorithm in ['RandomForestClassifier', 'RandomForestRegressor']: |
4570575d060c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
15
diff
changeset
|
53 options['n_jobs'] = N_JOBS |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
54 if "select_max_features" in options: |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
55 if options["select_max_features"]["max_features"] == "number_input": |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
56 options["select_max_features"]["max_features"] = options["select_max_features"]["num_max_features"] |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
57 options["select_max_features"].pop("num_max_features") |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
58 options["max_features"] = options["select_max_features"]["max_features"] |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
59 options.pop("select_max_features") |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
60 if "presort" in options: |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
61 if options["presort"] == "true": |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
62 options["presort"] = True |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
63 if options["presort"] == "false": |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
64 options["presort"] = False |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
65 if "min_samples_leaf" in options and options["min_samples_leaf"] == 1.0: |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
66 options["min_samples_leaf"] = 1 |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
67 if "min_samples_split" in options and options["min_samples_split"] > 1.0: |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
68 options["min_samples_split"] = int(options["min_samples_split"]) |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
69 |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
70 X, y = get_X_y(params, infile1, infile2) |
15
f02eeabab5d1
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
14
diff
changeset
|
71 |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
72 my_class = getattr(sklearn.ensemble, algorithm) |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
73 estimator = my_class(**options) |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
74 estimator.fit(X,y) |
15
f02eeabab5d1
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
14
diff
changeset
|
75 with open(outfile_fit, 'wb') as out_handler: |
f02eeabab5d1
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
14
diff
changeset
|
76 pickle.dump(estimator, out_handler, pickle.HIGHEST_PROTOCOL) |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
77 |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
78 else: |
15
f02eeabab5d1
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
14
diff
changeset
|
79 with open(infile_model, 'rb') as model_handler: |
21
9ce3e347506c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
20
diff
changeset
|
80 classifier_object = load_model(model_handler) |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
81 header = 'infer' if params["selected_tasks"]["header"] else None |
31
af0523c606a7
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
26
diff
changeset
|
82 data = pandas.read_csv(infile_data, sep='\t', header=header, index_col=None, parse_dates=True, encoding=None) |
14
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
83 prediction = classifier_object.predict(data) |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
84 prediction_df = pandas.DataFrame(prediction, columns=["predicted"]) |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
85 res = pandas.concat([data, prediction_df], axis=1) |
84724d805bfa
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
bgruening
parents:
13
diff
changeset
|
86 res.to_csv(path_or_buf = outfile_predict, sep="\t", index=False) |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
87 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
88 ]]> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
89 </configfile> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
90 </configfiles> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
91 <inputs> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
92 <expand macro="sl_Conditional" model="zip"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
93 <param name="selected_algorithm" type="select" label="Select an ensemble method:"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
94 <option value="RandomForestClassifier" selected="true">Random forest classifier</option> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
95 <option value="AdaBoostClassifier">Ada boost classifier</option> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
96 <option value="GradientBoostingClassifier">Gradient Boosting Classifier</option> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
97 <option value="RandomForestRegressor">Random forest regressor</option> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
98 <option value="AdaBoostRegressor">Ada boost regressor</option> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
99 <option value="GradientBoostingRegressor">Gradient Boosting Regressor</option> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
100 </param> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
101 <when value="RandomForestClassifier"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
102 <expand macro="sl_mixed_input"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
103 <section name="options" title="Advanced Options" expanded="False"> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
104 <expand macro="n_estimators" default_value="100"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
105 <expand macro="criterion"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
106 <expand macro="max_features"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
107 <expand macro="max_depth"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
108 <expand macro="min_samples_split"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
109 <expand macro="min_samples_leaf"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
110 <expand macro="min_weight_fraction_leaf"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
111 <expand macro="max_leaf_nodes"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
112 <expand macro="bootstrap"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
113 <expand macro="warm_start" checked="false"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
114 <expand macro="random_state"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
115 <expand macro="oob_score"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
116 <!--class_weight=None--> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
117 </section> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
118 </when> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
119 <when value="AdaBoostClassifier"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
120 <expand macro="sl_mixed_input"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
121 <section name="options" title="Advanced Options" expanded="False"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
122 <!--base_estimator=None--> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
123 <expand macro="n_estimators" default_value="50"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
124 <expand macro="learning_rate"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
125 <param argument="algorithm" type="select" label="Boosting algorithm" help=" "> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
126 <option value="SAMME.R" selected="true">SAMME.R</option> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
127 <option value="SAMME">SAMME</option> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
128 </param> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
129 <expand macro="random_state"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
130 </section> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
131 </when> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
132 <when value="GradientBoostingClassifier"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
133 <expand macro="sl_mixed_input"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
134 <section name="options" title="Advanced Options" expanded="False"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
135 <!--base_estimator=None--> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
136 <param argument="loss" type="select" label="Loss function"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
137 <option value="deviance" selected="true">deviance - logistic regression with probabilistic outputs</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
138 <option value="exponential">exponential - gradient boosting recovers the AdaBoost algorithm</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
139 </param> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
140 <expand macro="learning_rate" default_value='0.1'/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
141 <expand macro="n_estimators" default_value="100" help="The number of boosting stages to perform"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
142 <expand macro="max_depth" default_value="3" help="maximum depth of the individual regression estimators"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
143 <expand macro="criterion2"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
144 <option value="friedman_mse" selected="true">friedman_mse - mean squared error with improvement score by Friedman</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
145 </expand> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
146 <expand macro="min_samples_split" type="float"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
147 <expand macro="min_samples_leaf" type="float" label="The minimum number of samples required to be at a leaf node"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
148 <expand macro="min_weight_fraction_leaf"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
149 <expand macro="subsample"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
150 <expand macro="max_features"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
151 <expand macro="max_leaf_nodes"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
152 <expand macro="min_impurity_decrease"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
153 <expand macro="verbose"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
154 <expand macro="warm_start" checked="false"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
155 <expand macro="random_state"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
156 <expand macro="presort"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
157 </section> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
158 </when> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
159 <when value="RandomForestRegressor"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
160 <expand macro="sl_mixed_input"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
161 <section name="options" title="Advanced Options" expanded="False"> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
162 <expand macro="n_estimators" default_value="100"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
163 <expand macro="criterion2"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
164 <expand macro="max_features"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
165 <expand macro="max_depth"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
166 <expand macro="min_samples_split"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
167 <expand macro="min_samples_leaf"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
168 <expand macro="min_weight_fraction_leaf"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
169 <expand macro="max_leaf_nodes"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
170 <expand macro="min_impurity_decrease"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
171 <expand macro="bootstrap"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
172 <expand macro="oob_score"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
173 <expand macro="random_state"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
174 <expand macro="verbose"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
175 <expand macro="warm_start" checked="false"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
176 </section> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
177 </when> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
178 <when value="AdaBoostRegressor"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
179 <expand macro="sl_mixed_input"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
180 <section name="options" title="Advanced Options" expanded="False"> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
181 <!--base_estimator=None--> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
182 <expand macro="n_estimators" default_value="50"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
183 <expand macro="learning_rate"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
184 <param argument="loss" type="select" label="Loss function" optional="true" help="Used when updating the weights after each boosting iteration. "> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
185 <option value="linear" selected="true">linear</option> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
186 <option value="square">square</option> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
187 <option value="exponential">exponential</option> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
188 </param> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
189 <expand macro="random_state"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
190 </section> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
191 </when> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
192 <when value="GradientBoostingRegressor"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
193 <expand macro="sl_mixed_input"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
194 <section name="options" title="Advanced Options" expanded="False"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
195 <param argument="loss" type="select" label="Loss function"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
196 <option value="ls" selected="true">ls - least squares regression</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
197 <option value="lad">lad - least absolute deviation</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
198 <option value="huber">huber - combination of least squares regression and least absolute deviation</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
199 <option value="quantile">quantile - use alpha to specify the quantile</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
200 </param> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
201 <expand macro="learning_rate" default_value="0.1"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
202 <expand macro="n_estimators" default_value="100" help="The number of boosting stages to perform"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
203 <expand macro="max_depth" default_value="3" help="maximum depth of the individual regression estimators"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
204 <expand macro="criterion2"> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
205 <option value="friedman_mse" selected="true">friedman_mse - mean squared error with improvement score by Friedman</option> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
206 </expand> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
207 <expand macro="min_samples_split" type="float"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
208 <expand macro="min_samples_leaf" type="float" label="The minimum number of samples required to be at a leaf node"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
209 <expand macro="min_weight_fraction_leaf"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
210 <expand macro="subsample"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
211 <expand macro="max_features"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
212 <expand macro="max_leaf_nodes"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
213 <expand macro="min_impurity_decrease"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
214 <param argument="alpha" type="float" value="0.9" label="alpha" help="The alpha-quantile of the huber loss function and the quantile loss function" /> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
215 <!--base_estimator=None--> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
216 <expand macro="verbose"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
217 <expand macro="warm_start" checked="false"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
218 <expand macro="random_state"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
219 <expand macro="presort"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
220 </section> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
221 </when> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
222 </expand> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
223 </inputs> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
224 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
225 <expand macro="output"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
226 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
227 <tests> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
228 <test> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
229 <param name="infile1" value="train.tabular" ftype="tabular"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
230 <param name="infile2" value="train.tabular" ftype="tabular"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
231 <param name="col1" value="1,2,3,4"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
232 <param name="col2" value="5"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
233 <param name="selected_task" value="train"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
234 <param name="selected_algorithm" value="RandomForestClassifier"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
235 <param name="random_state" value="10"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
236 <output name="outfile_fit" file="rfc_model01" compare="sim_size" delta="5"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
237 </test> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
238 <test> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
239 <param name="infile_model" value="rfc_model01" ftype="zip"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
240 <param name="infile_data" value="test.tabular" ftype="tabular"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
241 <param name="selected_task" value="load"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
242 <output name="outfile_predict" file="rfc_result01"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
243 </test> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
244 <test> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
245 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
246 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
247 <param name="col1" value="1,2,3,4,5"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
248 <param name="col2" value="6"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
249 <param name="selected_task" value="train"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
250 <param name="selected_algorithm" value="RandomForestRegressor"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
251 <param name="random_state" value="10"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
252 <output name="outfile_fit" file="rfr_model01" compare="sim_size" delta="5"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
253 </test> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
254 <test> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
255 <param name="infile_model" value="rfr_model01" ftype="zip"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
256 <param name="infile_data" value="regression_test.tabular" ftype="tabular"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
257 <param name="selected_task" value="load"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
258 <output name="outfile_predict" file="rfr_result01"/> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
259 </test> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
260 <test> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
261 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
262 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
263 <param name="header1" value="True"/> |
10
cd595710f0c0
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
5
diff
changeset
|
264 <param name="selected_column_selector_option" value="all_columns"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
265 <param name="header2" value="True"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
266 <param name="col2" value="1"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
267 <param name="selected_task" value="train"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
268 <param name="selected_algorithm" value="GradientBoostingRegressor"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
269 <param name="max_features" value="number_input"/> |
21
9ce3e347506c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
20
diff
changeset
|
270 <param name="num_max_features" value="0.5"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
271 <param name="random_state" value="42"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
272 <output name="outfile_fit" file="gbr_model01" compare="sim_size" delta="5"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
273 </test> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
274 <test> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
275 <param name="infile_model" value="gbr_model01" ftype="zip"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
276 <param name="infile_data" value="regression_test_X.tabular" ftype="tabular"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
277 <param name="selected_task" value="load"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
278 <param name="header" value="True"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
279 <output name="outfile_predict" file="gbr_prediction_result01.tabular"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
280 </test> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
281 <test> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
282 <param name="infile1" value="train.tabular" ftype="tabular"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
283 <param name="infile2" value="train.tabular" ftype="tabular"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
284 <param name="col1" value="1,2,3,4"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
285 <param name="col2" value="5"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
286 <param name="selected_task" value="train"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
287 <param name="selected_algorithm" value="GradientBoostingClassifier"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
288 <output name="outfile_fit" file="gbc_model01" compare="sim_size" delta="5"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
289 </test> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
290 <test> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
291 <param name="infile_model" value="gbc_model01" ftype="zip"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
292 <param name="infile_data" value="test.tabular" ftype="tabular"/> |
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
293 <param name="selected_task" value="load"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
294 <output name="outfile_predict" file="gbc_result01"/> |
5
f1761288587e
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 35fa73d6e9ba8f0789ddfb743d893d950a68af02
bgruening
parents:
4
diff
changeset
|
295 </test> |
22
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
296 <test> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
297 <param name="infile1" value="train.tabular" ftype="tabular"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
298 <param name="infile2" value="train.tabular" ftype="tabular"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
299 <param name="col1" value="1,2,3,4"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
300 <param name="col2" value="5"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
301 <param name="selected_task" value="train"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
302 <param name="selected_algorithm" value="AdaBoostClassifier"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
303 <param name="random_state" value="10"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
304 <output name="outfile_fit" file="abc_model01" compare="sim_size" delta="5"/> |
22
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
305 </test> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
306 <test> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
307 <param name="infile_model" value="abc_model01" ftype="zip"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
308 <param name="infile_data" value="test.tabular" ftype="tabular"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
309 <param name="selected_task" value="load"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
310 <output name="outfile_predict" file="abc_result01"/> |
22
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
311 </test> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
312 <test> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
313 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
314 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
315 <param name="col1" value="1,2,3,4,5"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
316 <param name="col2" value="6"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
317 <param name="selected_task" value="train"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
318 <param name="selected_algorithm" value="AdaBoostRegressor"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
319 <param name="random_state" value="10"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
320 <output name="outfile_fit" file="abr_model01" compare="sim_size" delta="5"/> |
22
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
321 </test> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
322 <test> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
323 <param name="infile_model" value="abr_model01" ftype="zip"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
324 <param name="infile_data" value="regression_test.tabular" ftype="tabular"/> |
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
325 <param name="selected_task" value="load"/> |
23
39ae276e75d9
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
22
diff
changeset
|
326 <output name="outfile_predict" file="abr_result01"/> |
22
2e69c6ca6e91
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
21
diff
changeset
|
327 </test> |
0
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
328 </tests> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
329 <help><![CDATA[ |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
330 ***What it does*** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
331 The goal of ensemble methods is to combine the predictions of several base estimators built with a given learning algorithm in order to improve generalizability / robustness over a single estimator. This tool offers two sets of ensemble algorithms for classification and regression: random forests and ADA boosting which are based on sklearn.ensemble library from Scikit-learn. Here you can find out about the input, output and methods presented in the tools. For information about ensemble methods and parameters settings please refer to `Scikit-learn ensemble`_. |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
332 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
333 .. _`Scikit-learn ensemble`: http://scikit-learn.org/stable/modules/ensemble.html |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
334 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
335 **1 - Methods** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
336 There are two groups of operations available: |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
337 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
338 1 - Train a model : A training set containing samples and their respective labels (or predicted values) are input. Based on the selected algorithm and options, an estimator object is fit to the data and is returned. |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
339 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
340 2 - Load a model and predict : An existing model predicts the class labels (or regression values) for a new dataset. |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
341 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
342 **2 - Trainig input** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
343 When you choose to train a model, you need a features dataset X and a labels set y. This tool expects tabular or sparse data for X and a single column for y (tabular). You can select a subset of columns in a tabular dataset as your features dataset or labels column. Below you find some examples: |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
344 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
345 **Sample tabular features dataset** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
346 The following training dataset contains 3 feature columns and a column containing class labels. You can simply select the first 3 columns as features and the last column as labels: |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
347 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
348 :: |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
349 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
350 4.01163365529 -6.10797684314 8.29829894763 1 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
351 10.0788438916 1.59539821454 10.0684278289 0 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
352 -5.17607775503 -0.878286135332 6.92941850665 2 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
353 4.00975406235 -7.11847496542 9.3802423585 1 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
354 4.61204065139 -5.71217537352 9.12509610964 1 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
355 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
356 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
357 **Sample sparse features dataset** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
358 In this case you cannot specifiy a column range. |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
359 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
360 :: |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
361 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
362 4 1048577 8738 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
363 1 271 0.02083333333333341 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
364 1 1038 0.02461995616119806 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
365 2 829017 0.01629088031127686 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
366 2 829437 0.01209127083516686 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
367 2 830752 0.02535100632816968 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
368 3 1047487 0.01485722929945572 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
369 3 1047980 0.02640566620767753 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
370 3 1048475 0.01665869913262564 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
371 4 608 0.01662975263094352 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
372 4 1651 0.02519674277562741 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
373 4 4053 0.04223659971350601 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
374 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
375 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
376 **2 - Trainig output** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
377 The trained model is generated and output in the form of a binary file. |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
378 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
379 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
380 **3 - Prediction input** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
381 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
382 When you choose to load a model and do prediction, the tool expects an already trained estimator and a tabular dataset as input. The dataset contains new samples which you want to classify or predict regression values for. |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
383 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
384 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
385 .. class:: warningmark |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
386 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
387 The number of feature columns must be the same in training and prediction datasets! |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
388 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
389 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
390 **3 - Prediction output** |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
391 The tool predicts the class labels for new samples and adds them as the last column to the prediction dataset. The new dataset then is output as a tabular file. The prediction output format should look like the training dataset. |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
392 |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
393 ]]></help> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
394 <expand macro="sklearn_citation"/> |
569eefee7ed8
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
diff
changeset
|
395 </tool> |