Skip to content
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

Questions about metrics #17

Open
handsomelys opened this issue Jan 10, 2023 · 2 comments
Open

Questions about metrics #17

handsomelys opened this issue Jan 10, 2023 · 2 comments

Comments

@handsomelys
Copy link

handsomelys commented Jan 10, 2023

In the given source code, acc@k is used to evaluate the model on the valid set, and hit@k is used to evaluate the model on the test set. Are there any similarities and differences between these two metrics?

@intfloat
Copy link
Owner

Acc@k and Hit@k are the same metrics with different names. For both metrics, a prediction is considered correct if it is in the top-k ranked list.

The main difference in the implementation is that:

Acc@k is computed within a batch, since computing embeddings for all the entities is time-consuming.

Hit@k is computed over all candidate entities, this is the metric reported in the paper.

@handsomelys
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants