diff --git a/models/qor/SynthNetV1/utils.py b/models/qor/SynthNetV1/utils.py index a72c205..e39d25a 100644 --- a/models/qor/SynthNetV1/utils.py +++ b/models/qor/SynthNetV1/utils.py @@ -255,7 +255,7 @@ def doScatterAndTopKRanking(batchLen,batchSize,batchData,dumpDir,trainMode): accuracyFileWriter.write(endDelim) desDF1.to_csv(osp.join(dumpDir,"desDF1_"+trainMode+"_"+d+".csv"),index=False) desDF2.to_csv(osp.join(dumpDir,"desDF2_"+trainMode+"_"+d+".csv"),index=False) - mapeScore = mean_absolute_percentage_error(designDF.actual.to_list(),designDF.prediction.to_list()) + mapeScore = mean_absolute_percentage_error(designDF.actual.to_list(),designDF.prediction.to_list()) print("MAPE ("+d+"): "+str(mapeScore)) accuracyFileWriter.close() diff --git a/models/qor/SynthNetV2/utils.py b/models/qor/SynthNetV2/utils.py index a72c205..e39d25a 100644 --- a/models/qor/SynthNetV2/utils.py +++ b/models/qor/SynthNetV2/utils.py @@ -255,7 +255,7 @@ def doScatterAndTopKRanking(batchLen,batchSize,batchData,dumpDir,trainMode): accuracyFileWriter.write(endDelim) desDF1.to_csv(osp.join(dumpDir,"desDF1_"+trainMode+"_"+d+".csv"),index=False) desDF2.to_csv(osp.join(dumpDir,"desDF2_"+trainMode+"_"+d+".csv"),index=False) - mapeScore = mean_absolute_percentage_error(designDF.actual.to_list(),designDF.prediction.to_list()) + mapeScore = mean_absolute_percentage_error(designDF.actual.to_list(),designDF.prediction.to_list()) print("MAPE ("+d+"): "+str(mapeScore)) accuracyFileWriter.close() diff --git a/models/qor/SynthNetV3/utils.py b/models/qor/SynthNetV3/utils.py index a72c205..e39d25a 100644 --- a/models/qor/SynthNetV3/utils.py +++ b/models/qor/SynthNetV3/utils.py @@ -255,7 +255,7 @@ def doScatterAndTopKRanking(batchLen,batchSize,batchData,dumpDir,trainMode): accuracyFileWriter.write(endDelim) desDF1.to_csv(osp.join(dumpDir,"desDF1_"+trainMode+"_"+d+".csv"),index=False) desDF2.to_csv(osp.join(dumpDir,"desDF2_"+trainMode+"_"+d+".csv"),index=False) - mapeScore = mean_absolute_percentage_error(designDF.actual.to_list(),designDF.prediction.to_list()) + mapeScore = mean_absolute_percentage_error(designDF.actual.to_list(),designDF.prediction.to_list()) print("MAPE ("+d+"): "+str(mapeScore)) accuracyFileWriter.close()