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

Return fixed amount of type predictions #13

Open
Wooza opened this issue Dec 15, 2022 · 1 comment
Open

Return fixed amount of type predictions #13

Wooza opened this issue Dec 15, 2022 · 1 comment

Comments

@Wooza
Copy link

Wooza commented Dec 15, 2022

I experimented with the type prediction (http://localhost:5001/api/predict?tc=0) using the provided docker image.
I noticed that depending on the analysed source code, I get different amounts of type predictions per parameter/return/variable type.
Is it possible to retrieve a fixed number of predicted types?
For example, I would like to retrieve the Top-10 type predictions for each parameter and return type.

Best regards
Florian

@mir-am
Copy link
Member

mir-am commented Dec 16, 2022

I need to look at the code for retrieving the type predictions. We use Annoy, approximate NN, to give suggestions from the learned type cluster.
I will update you (@Wooza ) very soon on whether it is possible to give exactly Top-10 predictions.

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