コード例 #1
0
ファイル: automl.py プロジェクト: wanjinchang/auto-sklearn
 def score(self, X, y):
     # fix: Consider only index 1 of second dimension
     # Don't know if the reshaping should be done there or in calculate_score
     prediction = self.predict_proba(X)
     return calculate_score(y, prediction, self._task,
                            self._metric, self._label_num,
                            logger=self._logger)
コード例 #2
0
ファイル: automl.py プロジェクト: stokasto/auto-sklearn
 def score(self, X, y):
     # fix: Consider only index 1 of second dimension
     # Don't know if the reshaping should be done there or in calculate_score
     prediction = self.predict(X)
     if self._task == BINARY_CLASSIFICATION:
         prediction = prediction[:, 1].reshape((-1, 1))
     return calculate_score(y, prediction, self._task,
                            self._metric, self._label_num,
                            logger=self._logger)
コード例 #3
0
 def score(self, X, y):
     # fix: Consider only index 1 of second dimension
     # Don't know if the reshaping should be done there or in calculate_score
     prediction = self.predict(X)
     if self._task == BINARY_CLASSIFICATION:
         prediction = prediction[:, 1].reshape((-1, 1))
     return calculate_score(y,
                            prediction,
                            self._task,
                            self._metric,
                            self._label_num,
                            logger=self._logger)
コード例 #4
0
ファイル: automl.py プロジェクト: Mahgoobi/auto-sklearn
 def score(self, X, y):
     prediction = self.predict(X)
     return calculate_score(y, prediction, self._task,
                            self._metric, self._label_num)