conn2res.performance.accuracy_score
- conn2res.performance.accuracy_score(y_true, y_pred, sample_weight=None, normalize=True, **kwargs)[source]
Accuracy score.
- Parameters:
y_true (numpy.ndarray) – Ground truth target values.
y_pred (numpy.ndarray) – Predicted target values.
sample_weight (numpy.ndarray) – Sample weights.
normalize (bool) – If False, return the number of correctly classified samples. Otherwise, return the fraction of correctly classified samples.
- Returns:
score – A floating point value.
- Return type:
float.