9685df29213e5943d2774f80e21564f4204823ec,secuml/core/data/predictions.py,Predictions,_with_scores,#Predictions#,246

Before Change


        return all(l is not None for l in self.probas)

    def _with_scores(self):
        return all(l is not None for l in self.scores)

    def _with_ground_truth(self):
        return all(l is not None for l in self.ground_truth)

After Change


        return np.all(self.probas != None)  // NOQA: 711

    def _with_scores(self):
        return np.all(self.scores != None)  // NOQA: 711

    def _with_ground_truth(self):
        return np.all(self.ground_truth != None)  // NOQA: 711
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: ANSSI-FR/SecuML
Commit Name: 9685df29213e5943d2774f80e21564f4204823ec
Time: 2019-09-03
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/core/data/predictions.py
Class Name: Predictions
Method Name: _with_scores


Project Name: ANSSI-FR/SecuML
Commit Name: 9685df29213e5943d2774f80e21564f4204823ec
Time: 2019-09-03
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/core/data/predictions.py
Class Name: Predictions
Method Name: _with_ground_truth


Project Name: ANSSI-FR/SecuML
Commit Name: 9685df29213e5943d2774f80e21564f4204823ec
Time: 2019-09-03
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/core/data/predictions.py
Class Name: Predictions
Method Name: _with_probas