comparison plotly_ml_performance_plots.xml @ 0:4fac53da862f draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/plotly_ml_performance_plots commit 8496ba724e35ba551172ea975b0fed091d4bbe88
author bgruening
date Thu, 11 Oct 2018 14:37:54 -0400
parents
children 62e3a4e8c54c
comparison
equal deleted inserted replaced
-1:000000000000 0:4fac53da862f
1 <tool id="plotly_ml_performance_plots" name="Plot confusion matrix, precision, recall and ROC and AUC curves" version="0.1">
2 <description>of tabular data</description>
3 <requirements>
4 <requirement type="package" version="0.22.0">pandas</requirement>
5 <requirement type="package" version="3.1.1">plotly</requirement>
6 <requirement type="package" version="0.19.1">scikit-learn</requirement>
7 <requirement type="package" version="1.1.0">scipy</requirement>
8 </requirements>
9 <version_command>echo $version</version_command>
10 <command detect_errors="aggressive"><![CDATA[
11 python '$__tool_directory__/plot_ml_performance.py'
12 -i '$infile_input'
13 -j '$infile_output'
14 -k '$infile_trained_model'
15 ]]>
16 </command>
17 <inputs>
18 <param name="infile_input" type="data" format="tabular" label="Select input data file :" help="Input data is a matrix (tabular) where each column is a feature and the last column contains the (true or original) class labels."/>
19 <param name="infile_output" type="data" format="tabular" label="Select predicted data file :" help="Predicted data is a matrix (tabular) where each column is a feature and the last column contains the predicted class labels."/>
20 <param name="infile_trained_model" type="data" format="zip" label="Select trained model :" help="This file is a final model trained on training data."/>
21 </inputs>
22
23 <outputs>
24 <data name="output_confusion" format="html" from_work_dir="output_confusion.html" label="Confusion matrix of tabular data on ${on_string}"/>
25 <data name="output_prf" format="html" from_work_dir="output_prf.html" label="Precision, recall and f-score of tabular data on ${on_string}"/>
26 <data name="output_roc" format="html" from_work_dir="output_roc.html" label="ROC and AUC curves of tabular data on ${on_string}"/>
27 </outputs>
28
29 <tests>
30 <test>
31 <param name="infile_input" value="binary_test_label.tabular" ftype="tabular"/>
32 <param name="infile_output" value="binary_prediction_sgd.tabular" ftype="tabular"/>
33 <param name="infile_trained_model" value="model_binary_sgd.zip" ftype="zip"/>
34 <output name="output_confusion" file="cnf_binary_sgd.html" compare="sim_size"/>
35 <output name="output_prf" file="prf_binary_sgd.html" compare="sim_size"/>
36 <output name="output_roc" file="roc_auc_binary_sgd.html" compare="sim_size"/>
37 </test>
38
39 <test>
40 <param name="infile_input" value="binary_test_label.tabular" ftype="tabular"/>
41 <param name="infile_output" value="prediction_binary_linearsvm.tabular" ftype="tabular"/>
42 <param name="infile_trained_model" value="model_binary_linearsvm.zip" ftype="zip"/>
43 <output name="output_confusion" file="cnf_binary_linearsvm.html" compare="sim_size"/>
44 <output name="output_prf" file="prf_binary_linearsvm.html" compare="sim_size"/>
45 <output name="output_roc" file="roc_auc_binary_linearsvm.html" compare="sim_size"/>
46 </test>
47
48 <test>
49 <param name="infile_input" value="binary_test_label.tabular" ftype="tabular"/>
50 <param name="infile_output" value="prediction_binary_rfc.tabular" ftype="tabular"/>
51 <param name="infile_trained_model" value="model_binary_rfc.zip" ftype="zip"/>
52 <output name="output_confusion" file="cnf_binary_rfc.html" compare="sim_size"/>
53 <output name="output_prf" file="prf_binary_rfc.html" compare="sim_size"/>
54 <output name="output_roc" file="roc_auc_binary_rfc.html" compare="sim_size"/>
55 </test>
56
57 <test>
58 <param name="infile_input" value="binary_test_label.tabular" ftype="tabular"/>
59 <param name="infile_output" value="prediction_binary_knn.tabular" ftype="tabular"/>
60 <param name="infile_trained_model" value="model_binary_knn.zip" ftype="zip"/>
61 <output name="output_confusion" file="cnf_binary_knn.html" compare="sim_size"/>
62 <output name="output_prf" file="prf_binary_knn.html" compare="sim_size"/>
63 <output name="output_roc" file="roc_auc_binary_knn.html" compare="sim_size"/>
64 </test>
65
66 <test>
67 <param name="infile_input" value="multi_test_label.tabular" ftype="tabular"/>
68 <param name="infile_output" value="prediction_multi_lr.tabular" ftype="tabular"/>
69 <param name="infile_trained_model" value="model_multi_lr.zip" ftype="zip"/>
70 <output name="output_confusion" file="cnf_multi_lr.html" compare="sim_size"/>
71 <output name="output_prf" file="prf_multi_lr.html" compare="sim_size"/>
72 <output name="output_roc" file="roc_auc_multi_lr.html" compare="sim_size"/>
73 </test>
74
75 </tests>
76 <help><![CDATA[
77 **What it does**
78
79
80 Produce a `heatmap plot (confusion matrix) <https://plot.ly/python/heatmaps/>`_ from tabular files. The input data contains the original/true class labels (last column) and the predicted data contains the predicted class labels (last column). The true and predicted class labels are plotted against each other. The diagonal of this heatmap shows the correctly predicted data. The plot is buried in a html file which
81 provides rich interactive features. Image can be saved in various format, such as 'png', 'svg', 'jpeg' and so on.
82
83
84 ]]>
85 </help>
86 </tool>