def compute_score(self,
                   observation: float,
                   prediction: float,
                   verbose: bool = False) -> FloatScore:
     # print("observation = {}".format(observation))
     # print("prediction = {}".format(prediction))
     self.figures = []
     runtime = FloatScore(prediction - observation)
     runtime.description = "Time (in seconds) required to complete simulation"
     return runtime
Пример #2
0
 def compute_score(self, prediction1, prediction2):
     """Implementation of sciunit.Test.score_prediction."""
     score = FloatScore(prediction1 - prediction2)
     score.description = "Difference between model predictions"
     return score
Пример #3
0
 def compute_score(self, prediction1, prediction2):
     """Implementation of sciunit.Test.score_prediction."""
     score = FloatScore(prediction1 - prediction2)
     score.description = "Difference between model predictions"
     return score