Mercurial > repos > bgruening > sklearn_pairwise_metrics
comparison main_macros.xml @ 0:18afd0c1cc56 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 620159e95d2fae693b5f25d591528be159130f25
author | bgruening |
---|---|
date | Wed, 04 May 2016 13:09:52 -0400 |
parents | |
children | 887b1f85a4b6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:18afd0c1cc56 |
---|---|
1 <macros> | |
2 <token name="@VERSION@">0.9</token> | |
3 | |
4 <xml name="python_requirements"> | |
5 <requirements> | |
6 <requirement type="package" version="0.2.1b">eden</requirement> | |
7 <yield /> | |
8 </requirements> | |
9 </xml> | |
10 | |
11 <xml name="macro_stdio"> | |
12 <stdio> | |
13 <exit_code range="1:" level="fatal" description="Error occurred. Please check Tool Standard Error" /> | |
14 </stdio> | |
15 </xml> | |
16 | |
17 <xml name="train_loadConditional" token_train="tabular" token_data="tabular" token_model="txt"> | |
18 <conditional name="selected_tasks"> | |
19 <param name="selected_task" type="select" label="Select a Classification Task"> | |
20 <option value="load">Load a model and predict</option> | |
21 <option value="train" selected="true">Train a model</option> | |
22 </param> | |
23 <when value="load"> | |
24 <param name="infile_model" type="data" format="@MODEL@" label="Models" help="Select a model file." /> | |
25 <param name="infile_data" type="data" format="@DATA@" label="Data (tabular)" help="Select the dataset you want to classify."/> | |
26 <conditional name="prediction_options"> | |
27 <param name="prediction_option" type="select" label="Select the type of prediction"> | |
28 <option value="predict">Predict class labels</option> | |
29 <option value="advanced">Include advanced options</option> | |
30 </param> | |
31 <when value="predict"> | |
32 </when> | |
33 <when value="advanced"> | |
34 </when> | |
35 </conditional> | |
36 </when> | |
37 <when value="train"> | |
38 <param name="infile_train" type="data" format="@TRAIN@" label="Training samples (tabular)" /> | |
39 <conditional name="selected_algorithms"> | |
40 <yield /> | |
41 </conditional> | |
42 </when> | |
43 </conditional> | |
44 </xml> | |
45 | |
46 <xml name="advanced_section"> | |
47 <section name="options" title="Advanced Options" expanded="False"> | |
48 <yield /> | |
49 </section> | |
50 </xml> | |
51 | |
52 <xml name="tabular_input"> | |
53 <param name="infile" type="data" format="tabular" label="Data file with numeric values"/> | |
54 <param name="start_column" type="data_column" data_ref="infile" optional="True" label="Select a subset of data. Start column:" /> | |
55 <param name="end_column" type="data_column" data_ref="infile" optional="True" label="End column:" /> | |
56 </xml> | |
57 | |
58 <xml name="tol" token_default_value="0.0" token_help_text="Early stopping heuristics based on the relative center changes. Set to default (0.0) to disable this convergence detection."> | |
59 <param argument="tol" type="float" optional="true" value="@DEFAULT_VALUE@" label="Tolerance" help="@HELP_TEXT@"/> | |
60 </xml> | |
61 | |
62 <xml name="n_clusters" token_default_value="8"> | |
63 <param argument="n_clusters" type="integer" optional="true" value="@DEFAULT_VALUE@" label="Number of clusters" help=" "/> | |
64 </xml> | |
65 | |
66 <xml name="fit_intercept" token_checked="true"> | |
67 <param argument="fit_intercept" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="@CHECKED@" label="Estimate the intercept" help="If false, the data is assumed to be already centered."/> | |
68 </xml> | |
69 | |
70 <xml name="n_iter" token_default_value="5" token_help_text="The number of passes over the training data (aka epochs). "> | |
71 <param argument="n_iter" type="integer" optional="true" value="@DEFAULT_VALUE@" label="Number of iterations" help="@HELP_TEXT@"/> | |
72 </xml> | |
73 | |
74 <xml name="shuffle" token_checked="true" token_help_text=" " token_label="Shuffle data after each iteration"> | |
75 <param argument="shuffle" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="@CHECKED@" label="@LABEL@" help="@HELP_TEXT@"/> | |
76 </xml> | |
77 | |
78 <xml name="random_state" token_default_value="" token_help_text="Integer number. The seed of the pseudo random number generator to use when shuffling the data. A fixed seed allows reproducible results."> | |
79 <param argument="random_state" type="integer" optional="true" value="@DEFAULT_VALUE@" label="Random seed number" help="@HELP_TEXT@"/> | |
80 </xml> | |
81 | |
82 <xml name="warm_start" token_checked="true" token_help_text="When set to True, reuse the solution of the previous call to fit as initialization,otherwise, just erase the previous solution."> | |
83 <param argument="warm_start" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="@CHECKED@" label="Perform warm start" help="@HELP_TEXT@"/> | |
84 </xml> | |
85 | |
86 <xml name="C" token_default_value="1.0" token_help_text="Penalty parameter C of the error term."> | |
87 <param argument="C" type="float" optional="true" value="@DEFAULT_VALUE@" label="Penalty parameter" help="@HELP_TEXT@"/> | |
88 </xml> | |
89 | |
90 <!--xml name="class_weight" token_default_value="" token_help_text=""> | |
91 <param argument="class_weight" type="" optional="true" value="@DEFAULT_VALUE@" label="" help="@HELP_TEXT@"/> | |
92 </xml--> | |
93 | |
94 <xml name="alpha" token_default_value="0.0001" token_help_text="Constant that multiplies the regularization term if regularization is used. "> | |
95 <param argument="alpha" type="float" optional="true" value="@DEFAULT_VALUE@" label="Regularization coefficient" help="@HELP_TEXT@"/> | |
96 </xml> | |
97 | |
98 <xml name="n_samples" token_default_value="100" token_help_text="The total number of points equally divided among clusters."> | |
99 <param argument="n_samples" type="integer" optional="true" value="@DEFAULT_VALUE@" label="Number of samples" help="@HELP_TEXT@"/> | |
100 </xml> | |
101 | |
102 <xml name="n_features" token_default_value="2" token_help_text="Number of different numerical properties produced for each sample."> | |
103 <param argument="n_features" type="integer" optional="true" value="@DEFAULT_VALUE@" label="Number of features" help="@HELP_TEXT@"/> | |
104 </xml> | |
105 | |
106 <xml name="noise" token_default_value="0.0" token_help_text="Floating point number. "> | |
107 <param argument="noise" type="float" optional="true" value="@DEFAULT_VALUE@" label="Standard deviation of the Gaussian noise added to the data" help="@HELP_TEXT@"/> | |
108 </xml> | |
109 | |
110 <xml name="C" token_default_value="1.0" token_help_text="Penalty parameter C of the error term. "> | |
111 <param argument="C" type="float" optional="true" value="@DEFAULT_VALUE@" label="Penalty parameter" help="@HELP_TEXT@"/> | |
112 </xml> | |
113 | |
114 <xml name="max_iter" token_default_value="300" token_label="Maximum number of iterations per single run" token_help_text=" "> | |
115 <param argument="max_iter" type="integer" optional="true" value="@DEFAULT_VALUE@" label="@LABEL@" help="@HELP_TEXT@"/> | |
116 </xml> | |
117 | |
118 <xml name="n_init" token_default_value="10" > | |
119 <param argument="n_init" type="integer" optional="true" value="@DEFAULT_VALUE@" label="Number of runs with different centroid seeds" help=" "/> | |
120 </xml> | |
121 | |
122 <xml name="init"> | |
123 <param argument="init" type="select" label="Centroid initialization method" help="''k-means++'' selects initial cluster centers that speed up convergence. ''random'' chooses k observations (rows) at random from data as initial centroids."> | |
124 <option value="k-means++">k-means++</option> | |
125 <option value="random">random</option> | |
126 </param> | |
127 </xml> | |
128 | |
129 <xml name="gamma" token_default_value="1.0" token_label="Scaling parameter" token_help_text=" "> | |
130 <param argument="gamma" type="float" optional="true" value="@DEFAULT_VALUE@" label="@LABEL@" help="@HELP_TEXT@"/> | |
131 </xml> | |
132 | |
133 <xml name="degree" token_default_value="3" token_label="Degree of the polynomial" token_help_text=" "> | |
134 <param argument="degree" type="integer" optional="true" value="@DEFAULT_VALUE@" label="@LABEL@" help="@HELP_TEXT@"/> | |
135 </xml> | |
136 | |
137 <xml name="coef0" token_default_value="1" token_label="Zero coefficient" token_help_text=" "> | |
138 <param argument="coef0" type="integer" optional="true" value="@DEFAULT_VALUE@" label="@LABEL@" help="@HELP_TEXT@"/> | |
139 </xml> | |
140 | |
141 <xml name="multiple_input" token_name="input_files" token_max_num="10" token_format="txt" token_label="Sparse matrix file (.mtx, .txt)" token_help_text="Specify a sparse matrix file in .txt format."> | |
142 <repeat name="@NAME@" min="1" max="@MAX_NUM@" title="Select input file(s):"> | |
143 <param name="input" type="data" format="@FORMAT@" label="@LABEL@" help="@HELP_TEXT@"/> | |
144 </repeat> | |
145 </xml> | |
146 | |
147 <xml name="eden_citation"> | |
148 <citations> | |
149 <citation type="bibtex"> | |
150 @misc{fabrizio_costa_2015_15094, | |
151 author = {Fabrizio Costa and | |
152 Björn Grüning and | |
153 gigolo}, | |
154 title = {EDeN: EDeN - Graph Vectorizer}, | |
155 month = feb, | |
156 year = 2015, | |
157 doi = {10.5281/zenodo.15094}, | |
158 url = {http://dx.doi.org/10.5281/zenodo.15094} | |
159 } | |
160 } | |
161 </citation> | |
162 </citations> | |
163 </xml> | |
164 | |
165 <xml name="sklearn_citation"> | |
166 <citations> | |
167 <citation type="bibtex"> | |
168 @article{scikit-learn, | |
169 title={Scikit-learn: Machine Learning in {P}ython}, | |
170 author={Pedregosa, F. and Varoquaux, G. and Gramfort, A. and Michel, V. | |
171 and Thirion, B. and Grisel, O. and Blondel, M. and Prettenhofer, P. | |
172 and Weiss, R. and Dubourg, V. and Vanderplas, J. and Passos, A. and | |
173 Cournapeau, D. and Brucher, M. and Perrot, M. and Duchesnay, E.}, | |
174 journal={Journal of Machine Learning Research}, | |
175 volume={12}, | |
176 pages={2825--2830}, | |
177 year={2011} | |
178 url = {https://github.com/scikit-learn/scikit-learn} | |
179 } | |
180 </citation> | |
181 </citations> | |
182 </xml> | |
183 | |
184 <xml name="scipy_citation"> | |
185 <citations> | |
186 <citation type="bibtex"> | |
187 @Misc{, | |
188 author = {Eric Jones and Travis Oliphant and Pearu Peterson and others}, | |
189 title = {{SciPy}: Open source scientific tools for {Python}}, | |
190 year = {2001--}, | |
191 url = "http://www.scipy.org/", | |
192 note = {[Online; accessed 2016-04-09]} | |
193 } | |
194 </citation> | |
195 </citations> | |
196 </xml> | |
197 | |
198 | |
199 <xml name="nn_advanced_options"> | |
200 <section name="options" title="Advanced Options" expanded="False"> | |
201 <yield/> | |
202 <param argument="weights" type="select" label="Weight function" help="Used in prediction."> | |
203 <option value="uniform" selected="true" help="Uniform weights. All points in each neighborhood are weighted equally.">Uniform</option> | |
204 <option value="distance" help="Weight points by the inverse of their distance.">Distance</option> | |
205 </param> | |
206 <param argument="algorithm" type="select" label="Neighbor selection algorithm" help=" "> | |
207 <option value="auto" selected="true">Auto</option> | |
208 <option value="ball_tree">BallTree</option> | |
209 <option value="kd_tree">KDTree</option> | |
210 <option value="brute">Brute-force</option> | |
211 </param> | |
212 <param argument="leaf_size" type="integer" value="30" label="Leaf size" help="Used with BallTree and KDTree. Affects the time and memory usage of the constructed tree."/> | |
213 <!--param name="metric"--> | |
214 <!--param name="p"--> | |
215 <!--param name="metric_params"--> | |
216 </section> | |
217 </xml> | |
218 | |
219 <xml name="svc_advanced_options"> | |
220 <section name="options" title="Advanced Options" expanded="False"> | |
221 <yield/> | |
222 <param argument="kernel" type="select" optional="true" label="Kernel type" help="Kernel type to be used in the algorithm. If none is given, ‘rbf’ will be used."> | |
223 <option value="rbf" selected="true">rbf</option> | |
224 <option value="linear">linear</option> | |
225 <option value="poly">poly</option> | |
226 <option value="sigmoid">sigmoid</option> | |
227 <option value="precomputed">precomputed</option> | |
228 </param> | |
229 <param argument="degree" type="integer" optional="true" value="3" label="Degree of the polynomial (polynomial kernel only)" help="Ignored by other kernels. dafault : 3 "/> | |
230 <!--TODO: param argument="gamma" float, optional (default=’auto’) --> | |
231 <param argument="coef0" type="float" optional="true" value="0.0" label="Zero coefficient (polynomial and sigmoid kernels only)" help="Independent term in kernel function. dafault: 0.0 "/> | |
232 <param argument="shrinking" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Use the shrinking heuristic" help=" "/> | |
233 <param argument="probability" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="false" label="Enable probability estimates. " help="This must be enabled prior to calling fit, and will slow down that method."/> | |
234 <!-- param argument="cache_size"--> | |
235 <!--expand macro="class_weight"/--> | |
236 <expand macro="tol" default_value="0.001" help_text="Tolerance for stopping criterion. "/> | |
237 <expand macro="max_iter" default_value="-1" label="Solver maximum number of iterations" help_text="Hard limit on iterations within solver, or -1 for no limit."/> | |
238 <!--param argument="decision_function_shape"--> | |
239 <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."/> | |
240 </section> | |
241 </xml> | |
242 | |
243 <xml name="spectral_clustering_advanced_options"> | |
244 <section name="options" title="Advanced Options" expanded="False"> | |
245 <expand macro="n_clusters"/> | |
246 <param argument="eigen_solver" type="select" value="" label="Eigen solver" help="The eigenvalue decomposition strategy to use."> | |
247 <option value="arpack" selected="true">arpack</option> | |
248 <option value="lobpcg">lobpcg</option> | |
249 <option value="amg">amg</option> | |
250 <!--None--> | |
251 </param> | |
252 <expand macro="random_state"/> | |
253 <expand macro="n_init"/> | |
254 <param argument="gamma" type="float" optional="true" value="1.0" label="Kernel scaling factor" help="Scaling factor of RBF, polynomial, exponential chi^2 and sigmoid affinity kernel. Ignored for affinity=''nearest_neighbors''."/> | |
255 <param argument="affinity" type="select" label="Affinity" help="Affinity kernel to use. "> | |
256 <option value="rbf" selected="true">RBF</option> | |
257 <option value="precomputed">precomputed</option> | |
258 <option value="nearest_neighbors">Nearset neighbors</option> | |
259 </param> | |
260 <param argument="n_neighbors" type="integer" optional="true" value="10" label="Number of neighbors" help="Number of neighbors to use when constructing the affinity matrix using the nearest neighbors method. Ignored for affinity=''rbf''"/> | |
261 <!--param argument="eigen_tol"--> | |
262 <param argument="assign_labels" type="select" label="Assign labels" help="The strategy to use to assign labels in the embedding space."> | |
263 <option value="kmeans" selected="true">kmeans</option> | |
264 <option value="discretize">discretize</option> | |
265 </param> | |
266 <param argument="degree" type="integer" optional="true" value="3" label="Degree of the polynomial (polynomial kernel only)" help="Ignored by other kernels. dafault : 3 "/> | |
267 <param argument="coef0" type="integer" optional="true" value="1" label="Zero coefficient (polynomial and sigmoid kernels only)" help="Ignored by other kernels. dafault : 1 "/> | |
268 <!--param argument="kernel_params"--> | |
269 </section> | |
270 </xml> | |
271 | |
272 <xml name="minibatch_kmeans_advanced_options"> | |
273 <section name="options" title="Advanced Options" expanded="False"> | |
274 <expand macro="n_clusters"/> | |
275 <expand macro="init"/> | |
276 <expand macro="n_init" default_value="3"/> | |
277 <expand macro="max_iter" default_value="100"/> | |
278 <expand macro="tol" help_text="Early stopping heuristics based on normalized center change. To disable set to 0.0 ."/> | |
279 <expand macro="random_state"/> | |
280 <param argument="batch_size" type="integer" optional="true" value="100" label="Batch size" help="Size of the mini batches."/> | |
281 <!--param argument="compute_labels"--> | |
282 <param argument="max_no_improvement" type="integer" optional="true" value="10" label="Maximum number of improvement attempts" help=" | |
283 Convergence detection based on inertia (the consecutive number of mini batches that doe not yield an improvement on the smoothed inertia). | |
284 To disable, set max_no_improvement to None. "/> | |
285 <param argument="init_size" type="integer" optional="true" value="" label="Number of random initialization samples" help="Number of samples to randomly sample for speeding up the initialization . ( default: 3 * batch_size )"/> | |
286 <param argument="reassignment_ratio" type="float" optional="true" value="0.01" label="Re-assignment ratio" help="Controls the fraction of the maximum number of counts for a center to be reassigned. Higher values yield better clustering results."/> | |
287 </section> | |
288 </xml> | |
289 | |
290 <xml name="kmeans_advanced_options"> | |
291 <section name="options" title="Advanced Options" expanded="False"> | |
292 <expand macro="n_clusters"/> | |
293 <expand macro="init"/> | |
294 <expand macro="n_init"/> | |
295 <expand macro="max_iter"/> | |
296 <expand macro="tol" default_value="0.0001" help_text="Relative tolerance with regards to inertia to declare convergence."/> | |
297 <!--param argument="precompute_distances"/--> | |
298 <expand macro="random_state"/> | |
299 <param argument="copy_x" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Use a copy of data for precomputing distances" help="Mofifying the original data introduces small numerical differences caused by subtracting and then adding the data mean."/> | |
300 </section> | |
301 </xml> | |
302 | |
303 <xml name="birch_advanced_options"> | |
304 <section name="options" title="Advanced Options" expanded="False"> | |
305 <param argument="threshold" type="float" optional="true" value="0.5" label="Subcluster radius threshold" help="The radius of the subcluster obtained by merging a new sample; the closest subcluster should be less than the threshold to avoid a new subcluster."/> | |
306 <param argument="branching_factor" type="integer" optional="true" value="50" label="Maximum number of subclusters per branch" help="Maximum number of CF subclusters in each node."/> | |
307 <expand macro="n_clusters" default_value="3"/> | |
308 <!--param argument="compute_labels"/--> | |
309 </section> | |
310 </xml> | |
311 | |
312 <xml name="dbscan_advanced_options"> | |
313 <section name="options" title="Advanced Options" expanded="False"> | |
314 <param argument="eps" type="float" optional="true" value="0.5" label="Maximum neighborhood distance" help="The maximum distance between two samples for them to be considered as in the same neighborhood."/> | |
315 <param argument="min_samples" type="integer" optional="true" value="5" label="Minimal core point density" help="The number of samples (or total weight) in a neighborhood for a point (including the point itself) to be considered as a core point."/> | |
316 <param argument="metric" type="text" optional="true" value="euclidean" label="Metric" help="The metric to use when calculating distance between instances in a feature array."/> | |
317 <param argument="algorithm" type="select" label="Pointwise distance computation algorithm" help="The algorithm to be used by the NearestNeighbors module to compute pointwise distances and find nearest neighbors."> | |
318 <option value="auto" selected="true">auto</option> | |
319 <option value="ball_tree">ball_tree</option> | |
320 <option value="kd_tree">kd_tree</option> | |
321 <option value="brute">brute</option> | |
322 </param> | |
323 <param argument="leaf_size" type="integer" optional="true" value="30" label="Leaf size" help="Leaf size passed to BallTree or cKDTree. Memory and time efficieny factor in tree constrution and querying."/> | |
324 </section> | |
325 </xml> | |
326 | |
327 <xml name="clustering_algorithms_options"> | |
328 <conditional name="algorithm_options"> | |
329 <param name="selected_algorithm" type="select" label="Clustering Algorithm"> | |
330 <option value="KMeans" selected="true">KMeans</option> | |
331 <option value="SpectralClustering">Spectral Clustering</option> | |
332 <option value="MiniBatchKMeans">Mini Batch KMeans</option> | |
333 <option value="DBSCAN">DBSCAN</option> | |
334 <option value="Birch">Birch</option> | |
335 </param> | |
336 <when value="KMeans"> | |
337 <expand macro="kmeans_advanced_options"/> | |
338 </when> | |
339 <when value="DBSCAN"> | |
340 <expand macro="dbscan_advanced_options"/> | |
341 </when> | |
342 <when value="Birch"> | |
343 <expand macro="birch_advanced_options"/> | |
344 </when> | |
345 <when value="SpectralClustering"> | |
346 <expand macro="spectral_clustering_advanced_options"/> | |
347 </when> | |
348 <when value="MiniBatchKMeans"> | |
349 <expand macro="minibatch_kmeans_advanced_options"/> | |
350 </when> | |
351 </conditional> | |
352 </xml> | |
353 | |
354 <xml name="distance_metrics"> | |
355 <param argument="metric" type="select" label="Distance metric" help=" "> | |
356 <option value="euclidean" selected="true">euclidean</option> | |
357 <option value="cityblock">cityblock</option> | |
358 <option value="cosine">cosine</option> | |
359 <option value="l1">l1</option> | |
360 <option value="l2">l2</option> | |
361 <option value="manhattan">manhattan</option> | |
362 <yield/> | |
363 </param> | |
364 </xml> | |
365 | |
366 <xml name="distance_nonsparse_metrics"> | |
367 <option value="braycurtis">braycurtis</option> | |
368 <option value="canberra">canberra</option> | |
369 <option value="chebyshev">chebyshev</option> | |
370 <option value="correlation">correlation</option> | |
371 <option value="dice">dice</option> | |
372 <option value="hamming">hamming</option> | |
373 <option value="jaccard">jaccard</option> | |
374 <option value="kulsinski">kulsinski</option> | |
375 <option value="mahalanobis">mahalanobis</option> | |
376 <option value="matching">matching</option> | |
377 <option value="minkowski">minkowski</option> | |
378 <option value="rogerstanimoto">rogerstanimoto</option> | |
379 <option value="russellrao">russellrao</option> | |
380 <option value="seuclidean">seuclidean</option> | |
381 <option value="sokalmichener">sokalmichener</option> | |
382 <option value="sokalsneath">sokalsneath</option> | |
383 <option value="sqeuclidean">sqeuclidean</option> | |
384 <option value="yule">yule</option> | |
385 </xml> | |
386 | |
387 <xml name="pairwise_kernel_metrics"> | |
388 <param argument="metric" type="select" label="Pirwise Kernel metric" help=" "> | |
389 <option value="rbf" selected="true">rbf</option> | |
390 <option value="sigmoid">sigmoid</option> | |
391 <option value="polynomial">polynomial</option> | |
392 <option value="linear" selected="true">linear</option> | |
393 <option value="chi2">chi2</option> | |
394 <option value="additive_chi2">additive_chi2</option> | |
395 </param> | |
396 </xml> | |
397 | |
398 <xml name="sparse_pairwise_metric_functions"> | |
399 <param name="selected_metric_function" type="select" label="Select the pairwise metric you want to compute:"> | |
400 <option value="euclidean_distances" selected="true">Euclidean distance matrix</option> | |
401 <option value="pairwise_distances">Distance matrix</option> | |
402 <option value="pairwise_distances_argmin">Minimum distances between one point and a set of points</option> | |
403 <yield/> | |
404 </param> | |
405 </xml> | |
406 | |
407 <xml name="pairwise_metric_functions"> | |
408 <option value="additive_chi2_kernel" >Additive chi-squared kernel</option> | |
409 <option value="chi2_kernel">Exponential chi-squared kernel</option> | |
410 <option value="linear_kernel">Linear kernel</option> | |
411 <option value="manhattan_distances">L1 distances</option> | |
412 <option value="pairwise_kernels">Kernel</option> | |
413 <option value="polynomial_kernel">Polynomial kernel</option> | |
414 <option value="rbf_kernel">Gaussian (rbf) kernel</option> | |
415 <option value="laplacian_kernel">Laplacian kernel</option> | |
416 </xml> | |
417 | |
418 <xml name="sparse_pairwise_condition"> | |
419 <when value="pairwise_distances"> | |
420 <section name="options" title="Advanced Options" expanded="False"> | |
421 <expand macro="distance_metrics"> | |
422 <yield/> | |
423 </expand> | |
424 </section> | |
425 </when> | |
426 <when value="euclidean_distances"> | |
427 <section name="options" title="Advanced Options" expanded="False"> | |
428 <param argument="squared" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="false" label="Return squared Euclidean distances" help=" "/> | |
429 </section> | |
430 </when> | |
431 </xml> | |
432 | |
433 <xml name="argmin_distance_condition"> | |
434 <when value="pairwise_distances_argmin"> | |
435 <section name="options" title="Advanced Options" expanded="False"> | |
436 <param argument="axis" type="integer" optional="true" value="1" label="Axis" help="Axis along which the argmin and distances are to be computed."/> | |
437 <expand macro="distance_metrics"> | |
438 <yield/> | |
439 </expand> | |
440 <param argument="batch_size" type="integer" optional="true" value="500" label="Batch size" help="Number of rows to be processed in each batch run."/> | |
441 </section> | |
442 </when> | |
443 </xml> | |
444 | |
445 </macros> |