def _evaluate_all(self, prediction): """ Get logloss given prediction """ target = pd.read_csv(ABSOLUTE_PATH + "data/evaluation/ALL_target_no_play_in.csv") Metrics.logloss(target, prediction) Metrics.accuracy(target, prediction)
def _evaluate(self, year, prediction): """ Get logloss given prediction for a particular year """ true = pd.read_csv( ABSOLUTE_PATH + "data/evaluation/{}_target_no_play_in.csv".format(year)) self.score = Metrics.logloss(true, prediction, year=year) Metrics.accuracy(true, prediction, year=year)
def _evaluate(self,year, prediction): true = pd.read_csv(ABSOLUTE_PATH+"data/evaluation/{}_target_no_play_in.csv".format(year)) Metrics.logloss(true,prediction,year=year) Metrics.accuracy(true, prediction, year=year)