CMSC_828C_Project1/bayes.py
def accuracy(self, data, labels):
        """
        returns the accuracy/ score of the prediction
        :param data: data
        :param labels: labels for each feature vector
        :return: score of the prediction
        """
        prediction = self.predict(data)
        return np.mean(prediction == labels)

        returns the accuracy/ score of the prediction
        :param data: data
        :param labels: labels for each feature vector
        :return: score of the prediction
        
returns the accuracy/ score of the prediction
returns the accuracy / score of the prediction
def accuracy(self, data, labels):
        prediction = self.predict(data)
        return np.mean(prediction == labels)
def accuracy ( self , data , labels ) : prediction = self . predict ( data ) return np . mean ( prediction == labels )
returns the accuracy/ score of the prediction
returns the accuracy / score of the prediction
"""
        returns the accuracy/ score of the prediction
        :param data: data
        :param labels: labels for each feature vector
        :return: score of the prediction
        """
score of the prediction
score of the prediction
self
data
None
labels
labels for each feature vector
labels for each feature vector