Mercurial > repos > bgruening > sklearn_estimator_attributes
comparison estimator_attributes.xml @ 10:a0c8fa720406 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
| author | bgruening |
|---|---|
| date | Tue, 13 Apr 2021 20:50:05 +0000 |
| parents | 61fec8352927 |
| children | dd157beef3e4 |
comparison
equal
deleted
inserted
replaced
| 9:83f4ce93201c | 10:a0c8fa720406 |
|---|---|
| 1 <tool id="sklearn_estimator_attributes" name="Estimator attributes" version="@VERSION@"> | 1 <tool id="sklearn_estimator_attributes" name="Estimator attributes" version="@VERSION@" profile="20.05"> |
| 2 <description>get important attributes from an estimator or scikit object</description> | 2 <description>get important attributes from an estimator or scikit object</description> |
| 3 <macros> | 3 <macros> |
| 4 <import>main_macros.xml</import> | 4 <import>main_macros.xml</import> |
| 5 </macros> | 5 </macros> |
| 6 <expand macro="python_requirements"/> | 6 <expand macro="python_requirements" /> |
| 7 <expand macro="macro_stdio"/> | 7 <expand macro="macro_stdio" /> |
| 8 <version_command>echo "@VERSION@"</version_command> | 8 <version_command>echo "@VERSION@"</version_command> |
| 9 <command> | 9 <command> |
| 10 <![CDATA[ | 10 <![CDATA[ |
| 11 python '$main_script' | 11 python '$main_script' |
| 12 ]]> | 12 ]]> |
| 85 | 85 |
| 86 ]]> | 86 ]]> |
| 87 </configfile> | 87 </configfile> |
| 88 </configfiles> | 88 </configfiles> |
| 89 <inputs> | 89 <inputs> |
| 90 <param name="infile_object" type="data" format="zip" label="Choose the dataset containing estimator/pipeline object"/> | 90 <param name="infile_object" type="data" format="zip" label="Choose the dataset containing estimator/pipeline object" /> |
| 91 <param name="attribute_type" type="select" label="Select an attribute retrival type"> | 91 <param name="attribute_type" type="select" label="Select an attribute retrival type"> |
| 92 <option value="get_params" selected="true">Estimator - get_params()</option> | 92 <option value="get_params" selected="true">Estimator - get_params()</option> |
| 93 <option value="feature_importances_" >Fitted estimator - feature_importances_ </option> | 93 <option value="feature_importances_">Fitted estimator - feature_importances_ </option> |
| 94 <option value="coef_">Fitted estimator - coef_ </option> | 94 <option value="coef_">Fitted estimator - coef_ </option> |
| 95 <option value="train_score_">Fitted estimator - train_score_ </option> | 95 <option value="train_score_">Fitted estimator - train_score_ </option> |
| 96 <option value="oob_score_">Fitted estimator - oob_score_ </option> | 96 <option value="oob_score_">Fitted estimator - oob_score_ </option> |
| 97 <option value="init_">Fitted estimator - init_ </option> | 97 <option value="init_">Fitted estimator - init_ </option> |
| 98 <option value="classifier_">Fitted BinarizeTargetClassifier - classifier_</option> | 98 <option value="classifier_">Fitted BinarizeTargetClassifier - classifier_</option> |
| 120 <when input="attribute_type" value="final_estimator" format="zip" /> | 120 <when input="attribute_type" value="final_estimator" format="zip" /> |
| 121 <when input="attribute_type" value="best_estimator_" format="zip" /> | 121 <when input="attribute_type" value="best_estimator_" format="zip" /> |
| 122 <when input="attribute_type" value="init_" format="zip" /> | 122 <when input="attribute_type" value="init_" format="zip" /> |
| 123 <when input="attribute_type" value="classifier_" format="zip" /> | 123 <when input="attribute_type" value="classifier_" format="zip" /> |
| 124 <when input="attribute_type" value="regressor_" format="zip" /> | 124 <when input="attribute_type" value="regressor_" format="zip" /> |
| 125 <when input="attribute_type" value="save_weights" format="h5"/> | 125 <when input="attribute_type" value="save_weights" format="h5" /> |
| 126 </change_format> | 126 </change_format> |
| 127 </data> | 127 </data> |
| 128 </outputs> | 128 </outputs> |
| 129 <tests> | 129 <tests> |
| 130 <test> | 130 <test> |
| 131 <param name="infile_object" value="GridSearchCV.zip" ftype="zip"/> | 131 <param name="infile_object" value="GridSearchCV.zip" ftype="zip" /> |
| 132 <param name="attribute_type" value="best_score_"/> | 132 <param name="attribute_type" value="best_score_" /> |
| 133 <output name="outfile" file="best_score_.tabular"/> | 133 <output name="outfile" file="best_score_.tabular" /> |
| 134 </test> | 134 </test> |
| 135 <test> | 135 <test> |
| 136 <param name="infile_object" value="GridSearchCV.zip" ftype="zip"/> | 136 <param name="infile_object" value="GridSearchCV.zip" ftype="zip" /> |
| 137 <param name="attribute_type" value="best_params_"/> | 137 <param name="attribute_type" value="best_params_" /> |
| 138 <output name="outfile" file="best_params_.txt"/> | 138 <output name="outfile" file="best_params_.txt" /> |
| 139 </test> | 139 </test> |
| 140 <test> | 140 <test> |
| 141 <param name="infile_object" value="GridSearchCV.zip" ftype="zip"/> | 141 <param name="infile_object" value="GridSearchCV.zip" ftype="zip" /> |
| 142 <param name="attribute_type" value="best_estimator_"/> | 142 <param name="attribute_type" value="best_estimator_" /> |
| 143 <output name="outfile" file="best_estimator_.zip" compare="sim_size" delta="10"/> | 143 <output name="outfile" file="best_estimator_.zip" compare="sim_size" delta="10" /> |
| 144 </test> | |
| 145 <test> | |
| 146 <param name="infile_object" value="best_estimator_.zip" ftype="zip"/> | |
| 147 <param name="attribute_type" value="final_estimator"/> | |
| 148 <output name="outfile" file="final_estimator.zip" compare="sim_size" delta="10"/> | |
| 149 </test> | 144 </test> |
| 150 <test> | 145 <test> |
| 151 <param name="infile_object" value="best_estimator_.zip" ftype="zip"/> | 146 <param name="infile_object" value="best_estimator_.zip" ftype="zip" /> |
| 152 <param name="attribute_type" value="named_steps"/> | 147 <param name="attribute_type" value="final_estimator" /> |
| 153 <output name="outfile" file="named_steps.txt" compare="sim_size" delta="5"/> | 148 <output name="outfile" file="final_estimator.zip" compare="sim_size" delta="10" /> |
| 154 </test> | 149 </test> |
| 155 <test> | 150 <test> |
| 156 <param name="infile_object" value="final_estimator.zip" ftype="zip"/> | 151 <param name="infile_object" value="best_estimator_.zip" ftype="zip" /> |
| 157 <param name="attribute_type" value="feature_importances_"/> | 152 <param name="attribute_type" value="named_steps" /> |
| 158 <output name="outfile" file="feature_importances_.tabular"/> | 153 <output name="outfile" file="named_steps.txt" compare="sim_size" delta="5" /> |
| 159 </test> | 154 </test> |
| 160 <test> | 155 <test> |
| 161 <param name="infile_object" value="RFE.zip" ftype="zip"/> | 156 <param name="infile_object" value="final_estimator.zip" ftype="zip" /> |
| 162 <param name="attribute_type" value="ranking_"/> | 157 <param name="attribute_type" value="feature_importances_" /> |
| 163 <output name="outfile" file="ranking_.tabular"/> | 158 <output name="outfile" file="feature_importances_.tabular" /> |
| 164 </test> | 159 </test> |
| 165 <test> | 160 <test> |
| 166 <param name="infile_object" value="LinearRegression02.zip" ftype="zip"/> | 161 <param name="infile_object" value="RFE.zip" ftype="zip" /> |
| 167 <param name="attribute_type" value="get_params"/> | 162 <param name="attribute_type" value="ranking_" /> |
| 168 <output name="outfile" value="get_params.tabular"/> | 163 <output name="outfile" file="ranking_.tabular" /> |
| 169 </test> | 164 </test> |
| 170 <test> | 165 <test> |
| 171 <param name="infile_object" value="fitted_keras_g_regressor01.zip" ftype="zip"/> | 166 <param name="infile_object" value="LinearRegression02.zip" ftype="zip" /> |
| 172 <param name="attribute_type" value="save_weights"/> | 167 <param name="attribute_type" value="get_params" /> |
| 173 <output name="outfile" value="keras_save_weights01.h5" compare="sim_size" delta="5"/> | 168 <output name="outfile" value="get_params.tabular" /> |
| 169 </test> | |
| 170 <test> | |
| 171 <param name="infile_object" value="fitted_keras_g_regressor01.zip" ftype="zip" /> | |
| 172 <param name="attribute_type" value="save_weights" /> | |
| 173 <output name="outfile" value="keras_save_weights01.h5" compare="sim_size" delta="5" /> | |
| 174 </test> | 174 </test> |
| 175 </tests> | 175 </tests> |
| 176 <help> | 176 <help> |
| 177 <![CDATA[ | 177 <![CDATA[ |
| 178 **What it does** | 178 **What it does** |
| 186 - ``GridSearchCV``. *best_estimator_* | 186 - ``GridSearchCV``. *best_estimator_* |
| 187 | 187 |
| 188 ]]> | 188 ]]> |
| 189 </help> | 189 </help> |
| 190 <expand macro="sklearn_citation"> | 190 <expand macro="sklearn_citation"> |
| 191 <expand macro="skrebate_citation"/> | 191 <expand macro="skrebate_citation" /> |
| 192 <expand macro="xgboost_citation"/> | 192 <expand macro="xgboost_citation" /> |
| 193 <expand macro="imblearn_citation"/> | 193 <expand macro="imblearn_citation" /> |
| 194 </expand> | 194 </expand> |
| 195 </tool> | 195 </tool> |
