Example #1
0
	def compute_score(self, observation, prediction):
		"""Implementation of sciunit.Test.score_prediction."""
		#print("%s: Observation = %s, Prediction = %s" % \
		#	 (self.name,str(observation),str(prediction)))
		if prediction['n'] == 0:
			score = InsufficientDataScore(None)
		else:
			score = compute_zscore(observation,prediction)	
		return score
Example #2
0
	def compute_score(self, observation, prediction):
		"""Implementation of sciunit.Test.score_prediction."""
		score = compute_zscore(observation,prediction)	
		return score