diff sample_generator.xml @ 35:1e99cfb71f40 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
author bgruening
date Tue, 13 Apr 2021 17:52:15 +0000
parents 4ba68dd788b3
children 7f8fa89929e0
line wrap: on
line diff
--- a/sample_generator.xml	Thu Oct 01 20:27:36 2020 +0000
+++ b/sample_generator.xml	Tue Apr 13 17:52:15 2021 +0000
@@ -1,10 +1,10 @@
-<tool id="sklearn_sample_generator" name="Generate" version="@VERSION@">
+<tool id="sklearn_sample_generator" name="Generate" version="@VERSION@" profile="20.05">
     <description>random samples with controlled size and complexity</description>
     <macros>
         <import>main_macros.xml</import>
     </macros>
-    <expand macro="python_requirements"/>
-    <expand macro="macro_stdio"/>
+    <expand macro="python_requirements" />
+    <expand macro="macro_stdio" />
     <version_command>echo "@VERSION@"</version_command>
     <command>
         <![CDATA[
@@ -63,111 +63,111 @@
             </param>
             <when value="make_blobs">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="n_features"/>
-                    <param argument="centers" type="integer" optional="true" value="3" label="Number of centers to generate" help=" "/>
+                    <expand macro="n_samples" />
+                    <expand macro="n_features" />
+                    <param argument="centers" type="integer" optional="true" value="3" label="Number of centers to generate" help=" " />
                     <!--todo: expand centers type : int or array of shape [n_centers, n_features]-->
-                    <param argument="cluster_std" type="float" optional="true" value="1.0" label="Standard deviation of the clusters" help=" "/>
+                    <param argument="cluster_std" type="float" optional="true" value="1.0" label="Standard deviation of the clusters" help=" " />
                     <!--todo: expand cluster_std type : float or sequence of floats-->
                     <!--param argument=center_box-->
-                    <expand macro="shuffle" label="Shuffle the samples"/>
-                    <expand macro="random_state"/>
+                    <expand macro="shuffle" label="Shuffle the samples" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_classification">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="n_features" default_value="20"/>
-                    <param argument="n_informative" type="integer" optional="true" value="2" label="Number of informative features" help="Each class is composed of a number of gaussian clusters each located around the vertices of a hypercube in a subspace of dimension n_informative. For each cluster, informative features are drawn independently from N(0, 1) and then randomly linearly combined within each cluster in order to add covariance. The clusters are then placed on the vertices of the hypercube. "/>
-                    <param argument="n_redundant" type="integer" optional="true" value="2" label="Number of redundant features" help="These features are generated as random linear combinations of the informative features. "/>
-                    <param argument="n_repeated" type="integer" optional="true" value="0" label="Number of duplicated features" help="These are drawn randomly from the informative and the redundant features. "/>
-                    <param argument="n_classes" type="integer" optional="true" value="2" label="Number of classes" help="The number of classes (or labels) of the classification problem. "/>
-                    <param argument="n_clusters_per_class" type="integer" optional="true" value="2" label="Number of clusters per class" help=" "/>
+                    <expand macro="n_samples" />
+                    <expand macro="n_features" default_value="20" />
+                    <param argument="n_informative" type="integer" optional="true" value="2" label="Number of informative features" help="Each class is composed of a number of gaussian clusters each located around the vertices of a hypercube in a subspace of dimension n_informative. For each cluster, informative features are drawn independently from N(0, 1) and then randomly linearly combined within each cluster in order to add covariance. The clusters are then placed on the vertices of the hypercube. " />
+                    <param argument="n_redundant" type="integer" optional="true" value="2" label="Number of redundant features" help="These features are generated as random linear combinations of the informative features. " />
+                    <param argument="n_repeated" type="integer" optional="true" value="0" label="Number of duplicated features" help="These are drawn randomly from the informative and the redundant features. " />
+                    <param argument="n_classes" type="integer" optional="true" value="2" label="Number of classes" help="The number of classes (or labels) of the classification problem. " />
+                    <param argument="n_clusters_per_class" type="integer" optional="true" value="2" label="Number of clusters per class" help=" " />
                     <!--param argument = weights-->
-                    <param argument="flip_y" type="float" optional="true" value="0.01" label="Fraction of samples with randomly exchanged class labels" help=" "/>
+                    <param argument="flip_y" type="float" optional="true" value="0.01" label="Fraction of samples with randomly exchanged class labels" help=" " />
                     <!--param argument = class_sep-->
                     <!--param argument = hypercube-->
                     <!--param argument = shift-->
                     <!--param argument = scale-->
-                    <expand macro="shuffle" label="Shuffle the samples"/>
-                    <expand macro="random_state"/>
+                    <expand macro="shuffle" label="Shuffle the samples" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_gaussian_quantiles">
                 <section name="options" title="Advanced Options" expanded="False">
                     <!--param argument = mean-->
-                    <expand macro="n_samples"/>
-                    <expand macro="n_features"/>
-                    <param argument="cov" type="float" optional="true" value="1" label="Unit matrix coefficient" help="The covariance matrix will be this value times the unit matrix. This dataset only produces symmetric normal distributions. "/>
-                    <param argument="n_classes" type="integer" optional="true" value="2" label="Number of classes" help="The number of classes (or labels) of the classification problem. "/>
-                    <expand macro="shuffle" label="Shuffle the samples"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="n_features" />
+                    <param argument="cov" type="float" optional="true" value="1" label="Unit matrix coefficient" help="The covariance matrix will be this value times the unit matrix. This dataset only produces symmetric normal distributions. " />
+                    <param argument="n_classes" type="integer" optional="true" value="2" label="Number of classes" help="The number of classes (or labels) of the classification problem. " />
+                    <expand macro="shuffle" label="Shuffle the samples" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_hastie_10_2">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples" default_value="12000"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" default_value="12000" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_circles">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="shuffle" label="Shuffle the samples"/>
-                    <expand macro="noise" default_value=""/>
-                    <param argument="factor" type="float" optional="true" value="0.8" label="Scale factor between inner and outer circle" help=" Floating point number less than 1. "/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="shuffle" label="Shuffle the samples" />
+                    <expand macro="noise" default_value="" />
+                    <param argument="factor" type="float" optional="true" value="0.8" label="Scale factor between inner and outer circle" help=" Floating point number less than 1. " />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_moons">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="shuffle" label="Shuffle the samples"/>
-                    <expand macro="noise" default_value=""/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="shuffle" label="Shuffle the samples" />
+                    <expand macro="noise" default_value="" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_regression">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="n_features" default_value="100"/>
-                    <param argument="n_informative" type="integer" optional="true" value="10" label="Number of informative features" help="the number of features used to build the linear model used to generate the output "/>
-                    <param argument="n_targets" type="integer" optional="true" value="1" label="Number of regression targets" help="The dimension of the y output vector associated with a sample. By default, the output is a scalar."/>
-                    <param argument="bias" type="float" optional="true" value="0.0" label="Bias of the true function" help="The bias term in the underlying linear model. "/>
+                    <expand macro="n_samples" />
+                    <expand macro="n_features" default_value="100" />
+                    <param argument="n_informative" type="integer" optional="true" value="10" label="Number of informative features" help="the number of features used to build the linear model used to generate the output " />
+                    <param argument="n_targets" type="integer" optional="true" value="1" label="Number of regression targets" help="The dimension of the y output vector associated with a sample. By default, the output is a scalar." />
+                    <param argument="bias" type="float" optional="true" value="0.0" label="Bias of the true function" help="The bias term in the underlying linear model. " />
                     <!--param argument = effective_rank-->
                     <!--param argument = tail_strength-->
                     <!--param argument = coef-->
-                    <expand macro="noise"/>
-                    <expand macro="random_state"/>
+                    <expand macro="noise" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_sparse_uncorrelated">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="n_features" default_value="10"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="n_features" default_value="10" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_friedman1">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="n_features" default_value="10"/>
-                    <expand macro="noise"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="n_features" default_value="10" />
+                    <expand macro="noise" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_friedman2">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="noise"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="noise" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_friedman3">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="noise"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="noise" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <!--when value="make_low_rank_matrix">
@@ -186,16 +186,16 @@
             </when-->
             <when value="make_s_curve">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="noise"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="noise" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <when value="make_swiss_roll">
                 <section name="options" title="Advanced Options" expanded="False">
-                    <expand macro="n_samples"/>
-                    <expand macro="noise"/>
-                    <expand macro="random_state"/>
+                    <expand macro="n_samples" />
+                    <expand macro="noise" />
+                    <expand macro="random_state" />
                 </section>
             </when>
             <!--when value="make_sparse_coded_signal">
@@ -232,73 +232,73 @@
         </conditional>
     </inputs>
     <outputs>
-        <data format="tabular" name="outfile"/>
+        <data format="tabular" name="outfile" />
     </outputs>
     <tests>
         <test>
-            <param name="selected_generator" value="make_blobs"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="blobs.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_blobs" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="blobs.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_classification"/>
-            <param name="random_state" value="100"/>
+            <param name="selected_generator" value="make_classification" />
+            <param name="random_state" value="100" />
             <output name="outfile" file="class.txt" compare="sim_size" />
         </test>
         <test>
-            <param name="selected_generator" value="make_circles"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="circles.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_circles" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="circles.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_friedman1"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="friedman1.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_friedman1" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="friedman1.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_friedman2"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="friedman2.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_friedman2" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="friedman2.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_friedman3"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="friedman3.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_friedman3" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="friedman3.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_gaussian_quantiles"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="gaus.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_gaussian_quantiles" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="gaus.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_hastie_10_2"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="hastie.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_hastie_10_2" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="hastie.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_moons"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="moons.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_moons" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="moons.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_regression"/>
-            <param name="random_state" value="100"/>
+            <param name="selected_generator" value="make_regression" />
+            <param name="random_state" value="100" />
             <output name="outfile" file="regression.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_s_curve"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="scurve.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_s_curve" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="scurve.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_sparse_uncorrelated"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="sparse_u.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_sparse_uncorrelated" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="sparse_u.txt" compare="sim_size" delta="1" />
         </test>
         <test>
-            <param name="selected_generator" value="make_swiss_roll"/>
-            <param name="random_state" value="100"/>
-            <output name="outfile" file="swiss_r.txt" compare="sim_size" delta="1"/>
+            <param name="selected_generator" value="make_swiss_roll" />
+            <param name="random_state" value="100" />
+            <output name="outfile" file="swiss_r.txt" compare="sim_size" delta="1" />
         </test>
     </tests>
     <help>
@@ -374,5 +374,5 @@
 
         ]]>
     </help>
-    <expand macro="sklearn_citation"/>
+    <expand macro="sklearn_citation" />
 </tool>