diff estimator_attributes.xml @ 11:27fabe5feedc draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
author bgruening
date Tue, 13 Apr 2021 17:44:35 +0000
parents c411ff569a26
children a01fa4e8fe4f
line wrap: on
line diff
--- a/estimator_attributes.xml	Thu Oct 01 20:19:15 2020 +0000
+++ b/estimator_attributes.xml	Tue Apr 13 17:44:35 2021 +0000
@@ -1,10 +1,10 @@
-<tool id="sklearn_estimator_attributes" name="Estimator attributes" version="@VERSION@">
+<tool id="sklearn_estimator_attributes" name="Estimator attributes" version="@VERSION@" profile="20.05">
     <description>get important attributes from an estimator or scikit object</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[
@@ -87,10 +87,10 @@
         </configfile>
     </configfiles>
     <inputs>
-        <param name="infile_object" type="data" format="zip" label="Choose the dataset containing estimator/pipeline object"/>
+        <param name="infile_object" type="data" format="zip" label="Choose the dataset containing estimator/pipeline object" />
         <param name="attribute_type" type="select" label="Select an attribute retrival type">
             <option value="get_params" selected="true">Estimator - get_params()</option>
-            <option value="feature_importances_" >Fitted estimator - feature_importances_ </option>
+            <option value="feature_importances_">Fitted estimator - feature_importances_ </option>
             <option value="coef_">Fitted estimator - coef_ </option>
             <option value="train_score_">Fitted estimator - train_score_ </option>
             <option value="oob_score_">Fitted estimator - oob_score_ </option>
@@ -122,55 +122,55 @@
                 <when input="attribute_type" value="init_" format="zip" />
                 <when input="attribute_type" value="classifier_" format="zip" />
                 <when input="attribute_type" value="regressor_" format="zip" />
-                <when input="attribute_type" value="save_weights" format="h5"/>
+                <when input="attribute_type" value="save_weights" format="h5" />
             </change_format>
         </data>
     </outputs>
     <tests>
         <test>
-            <param name="infile_object" value="GridSearchCV.zip" ftype="zip"/>
-            <param name="attribute_type" value="best_score_"/>
-            <output name="outfile" file="best_score_.tabular"/>
+            <param name="infile_object" value="GridSearchCV.zip" ftype="zip" />
+            <param name="attribute_type" value="best_score_" />
+            <output name="outfile" file="best_score_.tabular" />
         </test>
         <test>
-            <param name="infile_object" value="GridSearchCV.zip" ftype="zip"/>
-            <param name="attribute_type" value="best_params_"/>
-            <output name="outfile" file="best_params_.txt"/>
+            <param name="infile_object" value="GridSearchCV.zip" ftype="zip" />
+            <param name="attribute_type" value="best_params_" />
+            <output name="outfile" file="best_params_.txt" />
         </test>
         <test>
-            <param name="infile_object" value="GridSearchCV.zip" ftype="zip"/>
-            <param name="attribute_type" value="best_estimator_"/>
-            <output name="outfile" file="best_estimator_.zip" compare="sim_size" delta="10"/>
+            <param name="infile_object" value="GridSearchCV.zip" ftype="zip" />
+            <param name="attribute_type" value="best_estimator_" />
+            <output name="outfile" file="best_estimator_.zip" compare="sim_size" delta="10" />
         </test>
-         <test>
-            <param name="infile_object" value="best_estimator_.zip" ftype="zip"/>
-            <param name="attribute_type" value="final_estimator"/>
-            <output name="outfile" file="final_estimator.zip" compare="sim_size" delta="10"/>
+        <test>
+            <param name="infile_object" value="best_estimator_.zip" ftype="zip" />
+            <param name="attribute_type" value="final_estimator" />
+            <output name="outfile" file="final_estimator.zip" compare="sim_size" delta="10" />
         </test>
         <test>
-            <param name="infile_object" value="best_estimator_.zip" ftype="zip"/>
-            <param name="attribute_type" value="named_steps"/>
-            <output name="outfile" file="named_steps.txt" compare="sim_size" delta="5"/>
+            <param name="infile_object" value="best_estimator_.zip" ftype="zip" />
+            <param name="attribute_type" value="named_steps" />
+            <output name="outfile" file="named_steps.txt" compare="sim_size" delta="5" />
         </test>
         <test>
-            <param name="infile_object" value="final_estimator.zip" ftype="zip"/>
-            <param name="attribute_type" value="feature_importances_"/>
-            <output name="outfile" file="feature_importances_.tabular"/>
+            <param name="infile_object" value="final_estimator.zip" ftype="zip" />
+            <param name="attribute_type" value="feature_importances_" />
+            <output name="outfile" file="feature_importances_.tabular" />
         </test>
         <test>
-            <param name="infile_object" value="RFE.zip" ftype="zip"/>
-            <param name="attribute_type" value="ranking_"/>
-            <output name="outfile" file="ranking_.tabular"/>
+            <param name="infile_object" value="RFE.zip" ftype="zip" />
+            <param name="attribute_type" value="ranking_" />
+            <output name="outfile" file="ranking_.tabular" />
         </test>
         <test>
-            <param name="infile_object" value="LinearRegression02.zip" ftype="zip"/>
-            <param name="attribute_type" value="get_params"/>
-            <output name="outfile" value="get_params.tabular"/>
+            <param name="infile_object" value="LinearRegression02.zip" ftype="zip" />
+            <param name="attribute_type" value="get_params" />
+            <output name="outfile" value="get_params.tabular" />
         </test>
         <test>
-            <param name="infile_object" value="fitted_keras_g_regressor01.zip" ftype="zip"/>
-            <param name="attribute_type" value="save_weights"/>
-            <output name="outfile" value="keras_save_weights01.h5" compare="sim_size" delta="5"/>
+            <param name="infile_object" value="fitted_keras_g_regressor01.zip" ftype="zip" />
+            <param name="attribute_type" value="save_weights" />
+            <output name="outfile" value="keras_save_weights01.h5" compare="sim_size" delta="5" />
         </test>
     </tests>
     <help>
@@ -188,8 +188,8 @@
         ]]>
     </help>
     <expand macro="sklearn_citation">
-        <expand macro="skrebate_citation"/>
-        <expand macro="xgboost_citation"/>
-        <expand macro="imblearn_citation"/>
+        <expand macro="skrebate_citation" />
+        <expand macro="xgboost_citation" />
+        <expand macro="imblearn_citation" />
     </expand>
 </tool>