1
Fork 0
mirror of https://github.com/Steffo99/unimore-bda-6.git synced 2024-11-25 17:24:20 +00:00

Fix mse rendering

This commit is contained in:
Steffo 2023-02-13 15:42:35 +01:00
parent 62e8c6fa9f
commit 76f20059a6
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -84,7 +84,7 @@ class EvaluationResults:
return f"<EvaluationResults: {self!s}>" return f"<EvaluationResults: {self!s}>"
def __str__(self): def __str__(self):
return f"Evaluation results:\t{self.evaluated}\tevaluated\t{self.perfect}\tperfect\t{self.perfect / self.evaluated:.2%}\taccuracy\t{self.mse / self.evaluated:.2%}\tmean squared error" return f"Evaluation results:\t{self.evaluated}\tevaluated\t{self.perfect}\tperfect\t{self.perfect / self.evaluated:.2%}\taccuracy\t{self.mse / self.evaluated:.2}\tmean squared error"
class AlreadyTrainedError(Exception): class AlreadyTrainedError(Exception):