import numpy as np


def euclidean_distance(p, q):
    return np.sqrt(np.sum((p - q)**2))


def mse(y, y_pred):
    return (1/y.size)*(np.sqrt(np.sum((y - y_pred)**2)))


def accuracy(y, y_pred):
    return (1/y.size) * np.sum(y == y_pred)
