test_model
Created: 2013-12-10 17:39:44
Last updated: 2014-12-04 15:23:59
Tests a model based on the specified parameters (confusion matrix and/or ROC curve).
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Alan R Williams & Renato De Giovanni |
Titles (1)
Descriptions (1)
Test a model with openModeller. |
Dependencies (0)
Inputs (11)
Name |
Description |
model_xml |
Serialized model in XML.
|
layers_ids |
Newline separated list of layers for model testing.
|
presence_points_xml |
Newline separated list of presence points in XML for model testing.
|
mask_id |
Mask id used for model testing.
|
calculate_matrix |
Indicates if confusion matrix should be calculated ("yes" or "no").
|
calculate_roc |
Indicates if ROC curve should be calculated ("yes" or "no").
|
absence_points_xml |
Newline separated list of absence points for model testing. Same format used for presence points.
|
num_background_points |
Number of background points to be used when calculating ROC curve (when no absence points are provided).
|
threshold |
Threshold to be used when calculating confusion matrix.
|
srs |
Spatial reference system for all points in WKT format.
|
species_label |
Species name.
|
Processors (2)
Name |
Type |
Description |
make_xml |
beanshell |
Scriptif ((layers == void) || (layers == null)) {
throw new RuntimeException("The layers parameter must be specified for model testing");
}
if ((model_xml == void) || (model_xml == null)) {
throw new RuntimeException("The model_xml parameter must be specified for model testing");
}
if ( ((presence_points_xml == void) || (presence_points_xml == null)) && ((absence_points_xml == void) || (absence_points_xml == null)) ) {
throw new RuntimeException("The presence_points_xml and/or absence_points_xml parameters must be specified for model testing");
}
if ((species_label == void) || (species_label == null)) {
species_label = "undefined";
}
if ((srs == void) || (srs == null)) {
srs = "GEOGCS[\"WGS84\", DATUM[\"WGS84\", SPHEROID[\"WGS84\", 6378137.0, 298.257223563]], PRIMEM[\"Greenwich\", 0.0], UNIT[\"degree\", 0.017453292519943295], AXIS[\"Longitude\",EAST], AXIS[\"Latitude\",NORTH]]";
}
xml = "\n"
+"\n"
+"\n"
+"\n"
+"\n";
int i = 0;
String[] s_layers = layers.split("\n");
String first_layer = "";
for ( i = 0; i < s_layers.length; ++i ) {
if ( s_layers[i].length() > 0 ) {
if (first_layer.length() == 0) {
first_layer = s_layers[i];
}
xml += "\n";
if ( presence_points_xml != void && presence_points_xml != null && presence_points_xml.length() > 0 ) {
xml += "\n"
+""+srs+"\n"
+presence_points_xml
+"\n";
}
if ( absence_points_xml != void && absence_points_xml != null && absence_points_xml.length() > 0 ) {
xml += "\n"
+""+srs+"\n"
+absence_points_xml
+"\n";
}
xml += "\n"
+model_xml
+"\n";
if (calculate_matrix.equals("yes")) {
if ((threshold == void) || (threshold == null)) {
throw new RuntimeException("The threshold parameter must be specified when confusion matrix is activated");
}
xml += "\n";
}
if (calculate_roc.equals("yes")) {
if ((num_background_points == void) || (num_background_points == null)) {
num_background_points = "10000";
}
xml += "\n";
}
xml += "\n"
+"\n"
+"\n"; |
call_service |
workflow |
This part is responsible for perfoming the internal test.. |
Beanshells (2)
Name |
Description |
Inputs |
Outputs |
make_xml |
|
calculate_matrix
calculate_roc
mask_id
layers
model_xml
presence_points_xml
threshold
num_background_points
absence_points_xml
srs
species_label
|
xml
|
checkProgress |
|
input_progress
|
output_progress
|
Outputs (3)
Name |
Description |
log |
Test model log.
|
progress |
Test model progress. Possible values are: 100 (finished), -2 (aborted) or -3 (cancelled).
|
statistics_xml |
An XML string containing details of the results of the test.
|
Datalinks (15)
Source |
Sink |
mask_id |
make_xml:mask_id |
layers_ids |
make_xml:layers |
model_xml |
make_xml:model_xml |
presence_points_xml |
make_xml:presence_points_xml |
calculate_matrix |
make_xml:calculate_matrix |
calculate_roc |
make_xml:calculate_roc |
absence_points_xml |
make_xml:absence_points_xml |
num_background_points |
make_xml:num_background_points |
threshold |
make_xml:threshold |
srs |
make_xml:srs |
species_label |
make_xml:species_label |
make_xml:xml |
call_service:testModel_configuration |
call_service:output_log |
log |
call_service:output_progress |
progress |
call_service:test_statistics |
statistics_xml |
Uploader
Component Validity
Loading
License
All versions of this Workflow are
licensed under:
Version 11 (latest)
(of 11)
Credits (0)
(People/Groups)
None
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (1)
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(7)
Only the first 2 workflows that use similar services are shown. View all workflows that use these services.
Uploader
Project
get_available_algorithms
(3)
Retrieves all available algorithms from the openModeller web service, returning an XML.
Created: 2013-12-06
| Last updated: 2014-11-04
Uploader
Project
evaluate_model
(9)
Evaluates a model, returning model values for a given set of points and layers.
Created: 2013-12-10
| Last updated: 2014-12-04
Comments (0)
No comments yet
Log in to make a comment