def score(self, X, y):
        y_pred = self.predict(X)
        acc = np.sum(y == y_pred, axis=0) / float(X.shape[0])
        return acc
Compute the prediction accuracy
dataset/ETHPy150Open rasbt/mlxtend/mlxtend/classifier/base.py/_BaseClassifier.score