"data" parameter
Formatting the data of the "data" parameter depends on the chart type you have chosen.
Scatter charts
The PR space scatter chart requires the "recall" and "precision" parameters and their respective values between 0 and 1, as well as the "name" of each point in the PR space.
{
"chart": "prs",
"data": [
{
"name": "Algorithm_1",
"recall": 0.93,
"precision": 0.87
},
...
]
}
The ROC space scatter chart requires the "fpt" (false positive rate) and "tpr" (true positive rate) parameters and their respective values between 0 and 1, as well as the "name" of each point in the ROC space.
{
"chart": "rocs",
"data": [
{
"name": "Algorithm_1",
"fpr": 0.93,
"tpr": 0.87
},
...
]
}
Curve charts
All curve charts require the same data input, the "name" of each curve and the chart and two lists indicating the "actual" class of the instances in the examined dataset
(1 for the possitive class, and 0 for the other(s)), and the "predicted" values for the same order of instances (higher values are assumed to indicate the positive class).
{
"chart": "lift",
"data": [
{
"name": "Algorithm_1",
"actual": [1,1,1,0,0,0],
"predicted":[1.2,0.8,0.6,0.8,0.5,0.6],
},
...
]
}
By default prediction scores are expected, in the case of predicted ranks an optional parameter "predtype" with value "rank" should be added to the request data.
{
"chart": "lift",
"data": [ ... ],
"predtype": "rank"
}
Column charts
Column chart enable you to visualize multiple performance measures for a set of algorithms. This is formatted in the following way.
{
"chart": "column",
"data": [
{
"name": "Algorithm_1",
"measure_1": 0.99,
"measure_2": 0.66,
...
},
...
]
}
The "name" parameter is reserved for naming the evaluated algorithms and should not be used as a measure label. Change the measure labels as you like, e.g. "measure_1" to "precision", etc.