recommendation/model_reco.py
def mae_metric(self, predictions):
		"""
		Return the MAE metrics based on predictions
		:param predictions:
		:return:
		"""
		y_true = self.test_corpus.Rating
		y_hat = np.round(predictions, 0)

		mae = mean_absolute_error(y_true, y_hat)
		return mae

		Return the MAE metrics based on predictions
		:param predictions:
		:return:
		
Return the MAE metrics based on predictions
Return the MAE metrics based on predictions
def mae_metric(self, predictions):
		y_true = self.test_corpus.Rating
		y_hat = np.round(predictions, 0)
		mae = mean_absolute_error(y_true, y_hat)
		return mae
def mae_metric ( self , predictions ) : y_true = self . test_corpus . Rating y_hat = np . round ( predictions , 0 ) mae = mean_absolute_error ( y_true , y_hat ) return mae
Return the MAE metrics based on predictions
Return the MAE metrics based on predictions
"""
		Return the MAE metrics based on predictions
		:param predictions:
		:return:
		"""
None
self
predictions
None