Mercurial > repos > bgruening > sklearn_svm_classifier
annotate svm.xml @ 6:90f2d6532262 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
author | bgruening |
---|---|
date | Thu, 11 Oct 2018 03:29:23 -0400 |
parents | 1c5989b930e3 |
children | 1a9d5a8fff12 |
rev | line source |
---|---|
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
1 <tool id="sklearn_svm_classifier" name="Support vector machines (SVMs)" version="@VERSION@"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
2 <description>for classification</description> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
3 <macros> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
4 <import>main_macros.xml</import> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
5 <!-- macro name="class_weight" argument="class_weight"--> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
6 </macros> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
7 <expand macro="python_requirements"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
8 <expand macro="macro_stdio"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
9 <version_command>echo "@VERSION@"</version_command> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
10 <command><![CDATA[ |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
11 python '$svc_script' '$inputs' |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
12 ]]> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
13 </command> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
14 <configfiles> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
15 <inputs name="inputs"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
16 <configfile name="svc_script"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
17 <![CDATA[ |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
18 import sys |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
19 import json |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
20 import sklearn.svm |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
21 import pandas |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
22 |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
23 with open("$__tool_directory__/sk_whitelist.json", "r") as f: |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
24 sk_whitelist = json.load(f) |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
25 exec(open("$__tool_directory__/utils.py").read(), globals()) |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
26 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
27 input_json_path = sys.argv[1] |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
28 with open(input_json_path, "r") as param_handler: |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
29 params = json.load(param_handler) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
30 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
31 #if $selected_tasks.selected_task == "load": |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
32 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
33 header = 'infer' if params["selected_tasks"]["header"] else None |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
34 data = pandas.read_csv("$selected_tasks.infile_data", sep='\t', header=header, index_col=None, parse_dates=True, encoding=None, tupleize_cols=False) |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
35 |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
36 with open("$infile_model", 'rb') as model_handler: |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
37 classifier_object = load_model(model_handler) |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
38 |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
39 prediction = classifier_object.predict(data) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
40 prediction_df = pandas.DataFrame(prediction) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
41 res = pandas.concat([data, prediction_df], axis=1) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
42 res.to_csv(path_or_buf = "$outfile_predict", sep="\t", index=False) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
43 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
44 #else: |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
45 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
46 X, y = get_X_y(params, "$selected_tasks.selected_algorithms.input_options.infile1" ,"$selected_tasks.selected_algorithms.input_options.infile2") |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
47 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
48 options = params["selected_tasks"]["selected_algorithms"]["options"] |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
49 selected_algorithm = params["selected_tasks"]["selected_algorithms"]["selected_algorithm"] |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
50 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
51 if not(selected_algorithm=="LinearSVC"): |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
52 if options["kernel"]: |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
53 options["kernel"] = str(options["kernel"]) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
54 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
55 my_class = getattr(sklearn.svm, selected_algorithm) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
56 classifier_object = my_class(**options) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
57 classifier_object.fit(X, y) |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
58 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
59 with open("$outfile_fit", 'wb') as out_handler: |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
60 pickle.dump(classifier_object, out_handler) |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
61 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
62 #end if |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
63 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
64 ]]> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
65 </configfile> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
66 </configfiles> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
67 <inputs> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
68 <expand macro="sl_Conditional" model="zip"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
69 <param name="selected_algorithm" type="select" label="Classifier type"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
70 <option value="SVC">C-Support Vector Classification</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
71 <option value="NuSVC">Nu-Support Vector Classification</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
72 <option value="LinearSVC">Linear Support Vector Classification</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
73 </param> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
74 <when value="SVC"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
75 <expand macro="sl_mixed_input"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
76 <expand macro="svc_advanced_options"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
77 <expand macro="C"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
78 </expand> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
79 </when> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
80 <when value="NuSVC"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
81 <expand macro="sl_mixed_input"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
82 <expand macro="svc_advanced_options"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
83 <param argument="nu" type="float" optional="true" value="0.5" label="Nu control parameter" help="Controls the number of support vectors. Should be in the interval (0, 1]. "/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
84 </expand> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
85 </when> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
86 <when value="LinearSVC"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
87 <expand macro="sl_mixed_input"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
88 <section name="options" title="Advanced Options" expanded="False"> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
89 <expand macro="C"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
90 <expand macro="tol" default_value="0.001" help_text="Tolerance for stopping criterion. "/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
91 <expand macro="random_state" help_text="Integer number. The seed of the pseudo random number generator to use when shuffling the data for probability estimation. A fixed seed allows reproducible results."/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
92 <!--expand macro="class_weight"/--> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
93 <param argument="max_iter" type="integer" optional="true" value="1000" label="Maximum number of iterations" help="The maximum number of iterations to be run."/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
94 <param argument="loss" type="select" label="Loss function" help="Specifies the loss function. ''squared_hinge'' is the square of the hinge loss."> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
95 <option value="squared_hinge" selected="true">Squared hinge</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
96 <option value="hinge">Hinge</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
97 </param> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
98 <param argument="penalty" type="select" label="Penalization norm" help=" "> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
99 <option value="l1" >l1</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
100 <option value="l2" selected="true">l2</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
101 </param> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
102 <param argument="dual" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Use the shrinking heuristic" help="Select the algorithm to either solve the dual or primal optimization problem. Prefer dual=False when n_samples > n_features."/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
103 <param argument="multi_class" type="select" label="Multi-class strategy" help="Determines the multi-class strategy if y contains more than two classes."> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
104 <option value="ovr" selected="true">ovr</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
105 <option value="crammer_singer" >crammer_singer</option> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
106 </param> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
107 <param argument="fit_intercept" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Calculate the intercept for this model" help="If set to false, data is expected to be already centered."/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
108 <param argument="intercept_scaling" type="float" optional="true" value="1" label="Add synthetic feature to the instance vector" help=" "/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
109 </section> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
110 </when> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
111 </expand> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
112 </inputs> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
113 <expand macro="output"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
114 <tests> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
115 <test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
116 <param name="infile1" value="train_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
117 <param name="infile2" value="train_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
118 <param name="header1" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
119 <param name="header2" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
120 <param name="col1" value="1,2,3,4"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
121 <param name="col2" value="5"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
122 <param name="selected_task" value="train"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
123 <param name="selected_algorithm" value="SVC"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
124 <param name="random_state" value="5"/> |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
125 <output name="outfile_fit" file="svc_model01" compare="sim_size"/> |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
126 </test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
127 <test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
128 <param name="infile1" value="train_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
129 <param name="infile2" value="train_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
130 <param name="header1" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
131 <param name="header2" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
132 <param name="col1" value="1,2,3,4"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
133 <param name="col2" value="5"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
134 <param name="selected_task" value="train"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
135 <param name="selected_algorithm" value="NuSVC"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
136 <param name="random_state" value="5"/> |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
137 <output name="outfile_fit" file="svc_model02" compare="sim_size"/> |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
138 </test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
139 <test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
140 <param name="infile1" value="train_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
141 <param name="infile2" value="train_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
142 <param name="header1" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
143 <param name="header2" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
144 <param name="col1" value="1,2,3,4"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
145 <param name="col2" value="5"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
146 <param name="selected_task" value="train"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
147 <param name="selected_algorithm" value="LinearSVC"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
148 <param name="random_state" value="5"/> |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
149 <output name="outfile_fit" file="svc_model03" compare="sim_size"/> |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
150 </test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
151 <test> |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
152 <param name="infile_model" value="svc_model01" ftype="zip"/> |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
153 <param name="infile_data" value="test_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
154 <param name="header" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
155 <param name="selected_task" value="load"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
156 <output name="outfile_predict" file="svc_prediction_result01.tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
157 </test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
158 <test> |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
159 <param name="infile_model" value="svc_model02" ftype="zip"/> |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
160 <param name="infile_data" value="test_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
161 <param name="header" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
162 <param name="selected_task" value="load"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
163 <output name="outfile_predict" file="svc_prediction_result02.tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
164 </test> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
165 <test> |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
166 <param name="infile_model" value="svc_model03" ftype="zip"/> |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
167 <param name="infile_data" value="test_set.tabular" ftype="tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
168 <param name="header" value="True"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
169 <param name="selected_task" value="load"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
170 <output name="outfile_predict" file="svc_prediction_result03.tabular"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
171 </test> |
5
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
172 <!-- The following test is expected to fail, it is testing the whitelist/blacklist filtering. |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
173 It loads a pickle with malicious content that we do not accept. --> |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
174 <test expect_failure="true"> |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
175 <param name="infile_model" value="pickle_blacklist" ftype="zip"/> |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
176 <param name="infile_data" value="test_set.tabular" ftype="tabular"/> |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
177 <param name="header" value="True"/> |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
178 <param name="selected_task" value="load"/> |
1c5989b930e3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
4
diff
changeset
|
179 </test> |
0
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
180 </tests> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
181 <help><![CDATA[ |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
182 **What it does** |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
183 This module implements the Support Vector Machine (SVM) classification algorithms. |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
184 Support vector machines (SVMs) are a set of supervised learning methods used for classification, regression and outliers detection. |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
185 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
186 **The advantages of support vector machines are:** |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
187 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
188 1- Effective in high dimensional spaces. |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
189 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
190 2- Still effective in cases where number of dimensions is greater than the number of samples. |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
191 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
192 3- Uses a subset of training points in the decision function (called support vectors), so it is also memory efficient. |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
193 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
194 4- Versatile: different Kernel functions can be specified for the decision function. Common kernels are provided, but it is also possible to specify custom kernels. |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
195 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
196 **The disadvantages of support vector machines include:** |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
197 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
198 1- If the number of features is much greater than the number of samples, the method is likely to give poor performances. |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
199 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
200 2- SVMs do not directly provide probability estimates, these are calculated using an expensive five-fold cross-validation |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
201 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
202 For more information check http://scikit-learn.org/stable/modules/neighbors.html |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
203 |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
204 ]]> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
205 </help> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
206 <expand macro="sklearn_citation"/> |
7bee4014724a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff
changeset
|
207 </tool> |