コード例 #1
0
 def classification_report(self, cutoff: float = 0.5, labels=[]):
     labels = self.classes if not (labels) else labels
     return (classification_report(cutoff=cutoff,
                                   estimator=self,
                                   labels=labels))
コード例 #2
0
ファイル: svm.py プロジェクト: FeatCrush/Vertica-ML-Python
 def classification_report(self, cutoff: float = 0.5):
     return (classification_report(
         self.y,
         [self.deploySQL(), self.deploySQL(cutoff)], self.test_relation,
         self.cursor))