Skip to content

Instantly share code, notes, and snippets.

View jordan-carson's full-sized avatar
🌎
Off Planet

Jordan Carson jordan-carson

🌎
Off Planet
View GitHub Profile
@Tafkas
Tafkas / rmsle.py
Created November 25, 2013 14:37
Compute the Root Mean Squared Log Error for hypothesis h and targets y
import numpy as np
def rmsle(h, y):
"""
Compute the Root Mean Squared Log Error for hypthesis h and targets y
Args:
h - numpy array containing predictions with shape (n_samples, n_targets)
y - numpy array containing targets with shape (n_samples, n_targets)
"""