espadrine / aulx

Aulx is an autocompleter for Web code.
http://espadrine.github.com/aulx/
68 stars 8 forks source link

Sophisticated score system using user selection frequencies #4

Open espadrine opened 11 years ago

espadrine commented 11 years ago

So far, the idea is to compute the final score of each suggestion based on a weighted sum.

For instance, on JS:

w1·(keyword score) + w2·(static analysis score)
+ w3·(dynamic lookup score) + w4·(user frequency score)

with w1 < w2 < w3 < w4.

The user frequency score would be attached to display names, instead of accurately scoped properties, both to prevent wasting memory and to avoid resetting that information when the cursor changes scope.

grssam commented 11 years ago

I am still not sure on integrating the frequency score in the overall score to decide the order of popup items as compared to just use the frequency score to decide the highest weighted entry and highlight it when the popup is open.

grssam commented 11 years ago

because for a ML system to work properly , we would need some historic trailing data to decide the w4