Created
September 27, 2018 08:17
-
-
Save CaptainAshis/c8cdcb9b7bdeedc4978dc1fde1acce91 to your computer and use it in GitHub Desktop.
dl_ros_fastai
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1:- | |
def inv_y(a): return np.exp(a) | |
def exp_rmspe(y_pred, targ): | |
targ = inv_y(targ) | |
pct_var = (targ - inv_y(y_pred))/targ | |
return math.sqrt((pct_var**2).mean()) | |
max_log_y = np.max(yl) | |
y_range = (0, max_log_y*1.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment