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

Suggest accounts using bayesian inference #35

Open
ggazzi opened this issue Oct 4, 2018 · 1 comment
Open

Suggest accounts using bayesian inference #35

ggazzi opened this issue Oct 4, 2018 · 1 comment

Comments

@ggazzi
Copy link

ggazzi commented Oct 4, 2018

The current mechanism for suggesting accounts is sometimes a bit too rigid, since it requires exact matches of the description. Instead, multiple suggestions could be obtained with naive bayesian inference, and displayed in the context.

In terms of the UI, the following could be done: when the user was asked for an account and the input field is empty, a list of inferred accounts is displayed on the context. When a default account exists, it is always displayed as the first item, ensuring compatibility with previous behaviour. As soon as the user types something, the list of inferred accounts is replaced with the usual search results, so we don't constrain their choices.

I have been using this input scheme for a few weeks and found it quite useful. Nevertheless, suddenly replacing suggested accounts with search results might be confusing... Maybe it could be done better.

The suggested accounts are obtained by naive bayesian inference, which uses tokens extracted from the description, comments and existing postings to infer potential accounts. Description and comments are tokenized into textual, numeric and degraded dates, which was based heavily on https://tomszilagyi.github.io/payment-matching/.

I have a prototype of this, which I would gladly adapt/refine/add tests if there is any interest on merging it.

@hpdeifel
Copy link
Owner

Sorry for the late reply. I currently don't have the time to take a deeper look, but I'm definitely interested.

I need to play with it to say anything about the potential UI/UX, but the core concept sounds very nice. Maybe it would even be worth splitting out into a small library, so that other entry UIs could also benefit from it?

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