コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)