4.4 Output Interface
當FV結束後的output `result.json` 內容為一個json obejct,此object包含了2個json object,分別是metadata和results。其中metadata為FV的基本資訊,而results為FV的驗證結果圖表。
- metadata目前僅一項基本資訊即datasetSize,代表驗證用的資料集其大小。
- 而results則可以附帶多種以下圖表
- tables:一維表格
* title: string
* labels: string array
* values: number array
- bars:長條圖
* title: string
* labels: string array
* values: number array
* y-axis: string
- heatmaps:熱力圖
* title: string
* x-labels: string array
* y-labels: string array
* values: number 2d array
* x-axis: string
* y-axis: string
- plots:折線圖
* title: string
* labels: string array
* x-values: number 2d array
* y-values: number 2d array
* x-axis: string
* y-axis: string
- images:圖片
* title: string
* filename: string
範本如下
{
metadata:{
datasetSize: 1000
},
results:{
tables: [
{
title: "Overall Table",
labels: ["FV accuracy"],
values: [0.8182]
},
],
bars: [
{
title: "Class 1 Bar Chart",
labels: ["F1 class 1 precsion"],
values: [0.8564],
y-axis: "performance",
},
],
heatmaps: [
{
title: "FV Confusion Matrix",
x-labels: ["FV class0","FV class1"],
y-labels: ["FV class0","FV class1"],
values: [[10,5],[2,16]],
x-axis: "Predition",
y-axis: "Ground truth",
},
],
plots: [
{
title: "FV Confusion Matrix",
labels: ["ROC curve"]
x-values: [[0,0.2,0,4,0,8]],
y-values: [[0,0.25,0.43,0.83]],
x-axis: "True Positive rate",
y-axis: "Faise Positive rate",
}
],
images: [
{
title: "FV image"
filename: "fv-image.png"
}
]
}
}