|
@@ -53,11 +53,11 @@
|
|
|
<div class="charts">
|
|
|
<LineChart width="33.33%" v-if="lossList" id="reporLoss" :reportFlag="true" :dataList="lossList"></LineChart>
|
|
|
<LineChart width="33.33%" v-if="accuracyList" id="reporAccuracy" :reportFlag="true" :dataList="accuracyList"> </LineChart>
|
|
|
- <BarChart width="33.33%" v-if="barList.length > 0" id="reportBar" :baseLine='baseLine' :barList="barList"> </BarChart>
|
|
|
+ <BarChart width="33.33%" v-if="barList.length > 0" id="reportBar" :baseLine='BaseLine' :barList="barList"> </BarChart>
|
|
|
</div>
|
|
|
<div class="resultContent">
|
|
|
- 该模型训练和测试的准确率分别为<text style="color: #dc143c">74.2%和73.3%</text>;
|
|
|
- 误差率分别为<text style="color: #dc143c">2%和1%</text>;<br>
|
|
|
+ 该模型训练和测试的准确率分别为<text style="color: #dc143c">{{result[0]}} 和 {{result[1]}}</text>;
|
|
|
+ 误差率分别为<text style="color: #dc143c">{{result[2]}} 和 {{result[3]}}</text>;<br>
|
|
|
该模型训练所倚重的测点比重分别为:<text style="color: #dc143c" v-for="(item,index) in proportionList" :key="index">{{item.name+item.percent+(index != (proportionList.length-1)?'、':'')}}</text>。<br>
|
|
|
模型训练过程所有测点倚重占比如下表所示:
|
|
|
</div>
|
|
@@ -89,10 +89,11 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ result:[],
|
|
|
modelName:'',
|
|
|
lossList: {},
|
|
|
accuracyList: {},
|
|
|
- baseLine: '',
|
|
|
+ BaseLine: '',
|
|
|
barList: [],
|
|
|
faultResult:'',
|
|
|
reportData: {},
|
|
@@ -140,7 +141,7 @@
|
|
|
let idx = jzxNum2.indexOf(ele);
|
|
|
jzxData.push({
|
|
|
name: jzx[idx].name,
|
|
|
- percent: ((ele/baselineAdd)*100).toFixed(4) + "%",
|
|
|
+ percent: ((ele/baselineAdd)*100).toFixed(3) + "%",
|
|
|
})
|
|
|
})
|
|
|
this.proportionList = jzxData;
|
|
@@ -167,9 +168,15 @@
|
|
|
that.BaseLine = parseFloat(data?.coordinate.BaseLine);
|
|
|
that.accuracyList.accuracy = data?.coordinate.accuracy;
|
|
|
that.accuracyList.val_accuracy = data?.coordinate.val_accuracy;
|
|
|
+
|
|
|
data?.coordinate.bar?.sort(that.Compare("value"));
|
|
|
that.barList = data?.coordinate.bar?.slice(0, 5);
|
|
|
-
|
|
|
+ // result 顺序:accuracy-val_accuracy-loss-val_loss
|
|
|
+ let result = [that.accuracyList.accuracy.sort().pop(),that.accuracyList.val_accuracy.sort().pop(),that.lossList.loss.sort().pop(),that.lossList.val_loss.sort().pop()]
|
|
|
+ result.forEach((ele,index)=>{
|
|
|
+ result[index] = (ele*100).toFixed(3)+'%'
|
|
|
+ })
|
|
|
+ that.result = result;
|
|
|
that.jzxF(data?.coordinate.bar);
|
|
|
}
|
|
|
},
|