Direction Accuracy and Loss #10
Closed
minion50000
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Great |
Beta Was this translation helpful? Give feedback.
0 replies
-
could you please create pr or will I? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be better if we try the model training based on the direction loss
prediction_dir = np.sign(prediction[:-1] - prediction[1:])
truth_dir = np.sign(truth[:-1] - truth[1:])
dir_acc = np.mean(prediction_dir == truth_dir)
What do you think? 😉
Beta Was this translation helpful? Give feedback.
All reactions