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
def compute_score(self, prediction1, prediction2): """Implementation of sciunit.Test.score_prediction.""" score = FloatScore(prediction1 - prediction2) score.description = "Difference between model predictions" return score