Skip to content

Instantly share code, notes, and snippets.

@CaptainAshis
Created September 27, 2018 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptainAshis/c8cdcb9b7bdeedc4978dc1fde1acce91 to your computer and use it in GitHub Desktop.
Save CaptainAshis/c8cdcb9b7bdeedc4978dc1fde1acce91 to your computer and use it in GitHub Desktop.
dl_ros_fastai
# 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