Mercurial > repos > bgruening > sklearn_fitted_model_eval
comparison fitted_model_eval.xml @ 0:4fc9e02801f9 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit eb703290e2589561ea215c84aa9f71bcfe1712c6"
author | bgruening |
---|---|
date | Fri, 01 Nov 2019 16:39:35 -0400 |
parents | |
children | 981c7b89af13 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4fc9e02801f9 |
---|---|
1 <tool id="sklearn_fitted_model_eval" name="Evaluate a Fitted Model" version="@VERSION@"> | |
2 <description>using a new batch of labeled data</description> | |
3 <macros> | |
4 <import>main_macros.xml</import> | |
5 <import>keras_macros.xml</import> | |
6 </macros> | |
7 <expand macro="python_requirements"/> | |
8 <expand macro="macro_stdio"/> | |
9 <version_command>echo "@VERSION@"</version_command> | |
10 <command> | |
11 <![CDATA[ | |
12 export HDF5_USE_FILE_LOCKING='FALSE'; | |
13 python '$__tool_directory__/fitted_model_eval.py' | |
14 --inputs '$inputs' | |
15 --infile_estimator '$infile_estimator' | |
16 --outfile_eval '$outfile_eval' | |
17 --infile_weights '$infile_weights' | |
18 --infile1 '$input_options.infile1' | |
19 --infile2 '$input_options.infile2' | |
20 ]]> | |
21 </command> | |
22 <configfiles> | |
23 <inputs name="inputs" /> | |
24 </configfiles> | |
25 <inputs> | |
26 <param name="infile_estimator" type="data" format="zip" label="Choose the dataset containing pipeline/estimator object"/> | |
27 <param name="infile_weights" type="data" format="h5" optional="true" label="Choose the dataset containing weights for the estimator above" help="Optional. For deep learning only."/> | |
28 <expand macro="scoring_selection"/> | |
29 <conditional name="input_options"> | |
30 <expand macro="data_input_options"/> | |
31 <when value="tabular"> | |
32 <expand macro="samples_tabular" label1="Dataset containing features:" multiple1="true" multiple2="false"/> | |
33 </when> | |
34 <when value="sparse"> | |
35 <expand macro="sparse_target"/> | |
36 </when> | |
37 </conditional> | |
38 </inputs> | |
39 <outputs> | |
40 <data format="tabular" name="outfile_eval"/> | |
41 </outputs> | |
42 <tests> | |
43 <test> | |
44 <param name="infile_estimator" value="searchCV01" ftype="zip"/> | |
45 <conditional name="scoring"> | |
46 <param name="primary_scoring" value="r2"/> | |
47 </conditional> | |
48 <param name="infile1" value="train_test_split_test01.tabular" ftype="tabular"/> | |
49 <param name="header1" value="true" /> | |
50 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> | |
51 <param name="infile2" value="regression_y_split_test01.tabular" ftype="tabular"/> | |
52 <param name="header2" value="true"/> | |
53 <param name="col2" value="1"/> | |
54 <output name="outfile_eval" file="fitted_model_eval01.tabular"/> | |
55 </test> | |
56 </tests> | |
57 <help> | |
58 <![CDATA[ | |
59 **What it does** | |
60 | |
61 Given a fitted estimator and a labeled dataset, this tool outputs the performances of the fitted estimator on the labeled dataset with selected scorers. | |
62 | |
63 For the estimator, this tool supports fitted sklearn estimators (pickled) and trained deep learning models (model skeleton + weights). For input datasets, it supports the following: | |
64 | |
65 - tabular | |
66 | |
67 - sparse | |
68 | |
69 | |
70 **Output** | |
71 | |
72 A tabular file containing performance scores, | |
73 e.g.: | |
74 | |
75 ======== ======== ========= | |
76 accuracy f1_macro precision | |
77 ======== ======== ========= | |
78 0.8613 0.6759 0.7928 | |
79 ======== ======== ========= | |
80 | |
81 ]]> | |
82 </help> | |
83 <expand macro="sklearn_citation"> | |
84 <expand macro="keras_citation"/> | |
85 <expand macro="selene_citation"/> | |
86 </expand> | |
87 </tool> |