annotate svm.xml @ 22:f458724cc317 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d970dae980fbe349414fc0889f719d875d999c5b"
author bgruening
date Fri, 27 Aug 2021 10:20:58 +0000
parents d67dcd63f6cb
children b878e4cdd63a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
1 <tool id="sklearn_svm_classifier" name="Support vector machines (SVMs)" version="@VERSION@" profile="20.05">
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
7 <expand macro="python_requirements" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
8 <expand macro="macro_stdio" />
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
15 <inputs name="inputs" />
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
17 <![CDATA[
0
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
8
1a9d5a8fff12 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents: 5
diff changeset
22 import pickle
0
7bee4014724a planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff changeset
23
10
153f237ddb36 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents: 8
diff changeset
24 from galaxy_ml.utils import load_model, get_X_y
153f237ddb36 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents: 8
diff changeset
25
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
15
2df8f5c30edc "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents: 10
diff changeset
34 data = pandas.read_csv("$selected_tasks.infile_data", sep='\t', header=header, index_col=None, parse_dates=True, encoding=None)
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
8
1a9d5a8fff12 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
bgruening
parents: 5
diff changeset
46 X, y = get_X_y(params, "$selected_tasks.selected_algorithms.input_options.infile1", "$selected_tasks.selected_algorithms.input_options.infile2")
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
75 <expand macro="sl_mixed_input" />
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
77 <expand macro="C" />
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
81 <expand macro="sl_mixed_input" />
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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]. " />
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
87 <expand macro="sl_mixed_input" />
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
89 <expand macro="C" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
90 <expand macro="tol" default_value="0.001" help_text="Tolerance for stopping criterion. " />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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." />
0
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"/-->
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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." />
0
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=" ">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
99 <option value="l1">l1</option>
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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." />
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
105 <option value="crammer_singer">crammer_singer</option>
0
7bee4014724a planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff changeset
106 </param>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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." />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
108 <param argument="intercept_scaling" type="float" optional="true" value="1" label="Add synthetic feature to the instance vector" help=" " />
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
113 <expand macro="output" />
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
116 <param name="infile1" value="train_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
117 <param name="infile2" value="train_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
118 <param name="header1" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
119 <param name="header2" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
120 <param name="col1" value="1,2,3,4" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
121 <param name="col2" value="5" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
122 <param name="selected_task" value="train" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
123 <param name="selected_algorithm" value="SVC" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
124 <param name="random_state" value="5" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
128 <param name="infile1" value="train_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
129 <param name="infile2" value="train_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
130 <param name="header1" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
131 <param name="header2" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
132 <param name="col1" value="1,2,3,4" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
133 <param name="col2" value="5" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
134 <param name="selected_task" value="train" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
135 <param name="selected_algorithm" value="NuSVC" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
136 <param name="random_state" value="5" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
140 <param name="infile1" value="train_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
141 <param name="infile2" value="train_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
142 <param name="header1" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
143 <param name="header2" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
144 <param name="col1" value="1,2,3,4" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
145 <param name="col2" value="5" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
146 <param name="selected_task" value="train" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
147 <param name="selected_algorithm" value="LinearSVC" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
148 <param name="random_state" value="5" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
152 <param name="infile_model" value="svc_model01" ftype="zip" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
153 <param name="infile_data" value="test_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
154 <param name="header" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
155 <param name="selected_task" value="load" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
156 <output name="outfile_predict" file="svc_prediction_result01.tabular" />
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
159 <param name="infile_model" value="svc_model02" ftype="zip" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
160 <param name="infile_data" value="test_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
161 <param name="header" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
162 <param name="selected_task" value="load" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
163 <output name="outfile_predict" file="svc_prediction_result02.tabular" />
0
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
166 <param name="infile_model" value="svc_model03" ftype="zip" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
167 <param name="infile_data" value="test_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
168 <param name="header" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
169 <param name="selected_task" value="load" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
170 <output name="outfile_predict" file="svc_prediction_result03.tabular" />
0
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">
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
175 <param name="infile_model" value="pickle_blacklist" ftype="zip" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
176 <param name="infile_data" value="test_set.tabular" ftype="tabular" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
177 <param name="header" value="True" />
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
178 <param name="selected_task" value="load" />
5
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>
19
d67dcd63f6cb "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
bgruening
parents: 15
diff changeset
206 <expand macro="sklearn_citation" />
0
7bee4014724a planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cbb681224f23fa95783514f949c97d6c2c60966
bgruening
parents:
diff changeset
207 </tool>