def test_compute_score_pearson_and_spearman(self, pearson_and_spearman_mock): "Mean of Pearson's and Spearman's Correlation Coefficient" y = [1 for _ in range(50)] score = metrics.compute_score(y, y, "pearson_and_spearman") pearson_and_spearman_mock.assert_called_once()
def test_compute_score_matthews_corrcoef(self, matthews_corrcoef_mock): "Matthew's Correlation Coefficient" y = [1 for _ in range(50)] score = metrics.compute_score(y, y, "matthews_corrcoef") matthews_corrcoef_mock.assert_called_once()
def test_compute_score_spearman(self, spearman_mock): "Spearman's Correlation Coefficient" y = [1 for _ in range(50)] score = metrics.compute_score(y, y, "spearman") spearman_mock.assert_called_once()
def test_compute_score_accuracy_and_f1(self, accuracy_and_f1_mock): "Mean of Accuracy and F1" y = [1 for _ in range(50)] score = metrics.compute_score(y, y, "accuracy_and_f1") accuracy_and_f1_mock.assert_called_once()
def test_compute_score_f1(self, f1_mock): "F1" y = [1 for _ in range(50)] score = metrics.compute_score(y, y, "f1") f1_mock.assert_called_once()
def test_compute_score_accuracy(self, accuracy_mock): "Accuracy" y = [1 for _ in range(50)] score = metrics.compute_score(y, y, "accuracy") accuracy_mock.assert_called_once()