-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T decao 0714 #5
base: master
Are you sure you want to change the base?
T decao 0714 #5
Conversation
f'MAPE {va[0]:7.3%}, {te[0]:7.3%}; ' | ||
f'MAE {va[1]:4.3f}, {te[1]:4.3f}; ' | ||
f'RMSE {va[2]:6.3f}, {te[2]:6.3f}.') | ||
te = evl[ix*3:ix*3 + 3] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not te = evl[ix]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在ix是全部的,但是evl是n*3的
@@ -41,7 +77,7 @@ def MAPE(v, v_): | |||
:param v_: np.ndarray or int, prediction. | |||
:return: int, MAPE averages on all elements of input. | |||
''' | |||
return np.mean(np.abs((v_ - v) / v)) | |||
return np.abs(np.mean(np.abs(v_ - v) / v)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么abs还是没有扩到分母,np.abs((v_ - v) / v)
No description provided.