Saturday, December 23, 2017

Re: How to Design Models for Matches in Django Dating App?

If you have the survey answers for all the people and you are only going to base the matches based on that data, I'd rather use a K Nearest Neighbors implementation


Or some other similar system to suggest the matches.

For 1.000 users it should be extremely fast to determine the closest matches for everyone, so there would be no need to store the intermediate scores, you just need to store the answers to the survey questions.

Problem is, it does well with semantic numeric values ("age", "weight", and so on), so if you just give it model instance IDs it may work well for exact matches but not so much if they start growing apart.

There are ways to solve that, but I'm not sure if this answer works for you.

On Sat, Dec 23, 2017 at 4:39 PM, Jason <jjohns98684@gmail.com> wrote:
This is an issue where regular tablular database structure really doesn't work well for a number of reasons.  You should look into a graph database for querying matches, and use a regular mysql/postgres for table-related data.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4ea4e50e-0214-45f1-b076-a33200828835%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei3AJ7LqjYVMdxHQ5kZSAWjEir7e8idUkatPCmGMuXm9SQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment