Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8237951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:38:48+00:00 2026-06-07T19:38:48+00:00

I know this is not a coding specific problem but this is the most

  • 0

I know this is not a coding specific problem but this is the most suitable place for asking such questions.So please bear with me.

Suppose I have a dictionary like given below,listing ten liked items of each person

likes={
    "rajat":{"music","x-men","programming","hindi","english","himesh","lil wayne","rap","travelling","coding"},
    "steve":{"travelling","pop","hanging out","friends","facebook","tv","skating","religion","english","chocolate"},
    "toby":{"programming","pop","rap","gardens","flowers","birthday","tv","summer","youtube","eminem"},
    "ravi":{"skating","opera","sony","apple","iphone","music","winter","mango shake","heart","microsoft"},
    "katy":{"music","pics","guitar","glamour","paris","fun","lip sticks","cute guys","rap","winter"},
    "paul":{"office","women","dress","casuals","action movies","fun","public speaking","microsoft","developer"},
    "sheila":{"heart","beach","summer","laptops","youtube","movies","hindi","english","cute guys","love"},
    "saif":{"women","beach","laptops","movies","himesh","world","earth","rap","fun","eminem"}
    "mark":{"pilgrimage","programming","house","world","books","country music","bob","tom hanks","beauty","tigers"},
    "stuart":{"rap","smart girls","music","wrestling","brock lesnar","country music","public speaking","women","coding","iphone"},
    "grover":{"skating","mountaineering","racing","athletics","sports","adidas","nike","women","apple","pop"},
    "anita":{"heart","sunidhi","hindi","love","love songs","cooking","adidas","beach","travelling","flowers"},
    "kelly":{"travelling","comedy","tv","facebook","youtube","cooking","horror","movies","dublin","animals"},
    "dino":{"women","games","xbox","x-men","assassin's creed","pop","rap","opera","need for speed","jeans"},
    "priya":{"heart","mountaineering","sky diving","sony","apple","pop","perfumes","luxury","eminem","lil wayne"},
    "brenda":{"cute guys","xbox","shower","beach","summer","english","french","country music","office","birds"}
}

How can I determine persons who have similar likes.Or maybe who two persons resemble the most.Also it will be helpful if you can point me to the appropriate example or tutorial for user based or item based filtering.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:38:49+00:00Added an answer on June 7, 2026 at 7:38 pm

    (Disclaimer, I am not adept in this field and only have a passing knowledge of collective filtering. The following is simply a collection of resources that I have found useful)

    The basics of this is covered quite comprehensively in Chapter 2 of the “Programming Collective Intelligence” book. Example code are in Python, which is another plus.

    You might also find this site useful –
    A Programmer’s Guide to Data Mining, in particular Chapter 2 and Chapter 3 which discusses recommendation systems and item-based filtering.

    In short, one can use techniques such as calculating the Pearson Correlation Coefficient, Cosine Similarity, k-nearest neighbours, etc. to determine similarities between users based on items they’ve like/bought/voted on.

    Note that there are various python libraries out there that were written for this purpose, e.g. pysuggest, Crab, python-recsys, and SciPy.stats.stats.pearsonr.

    For a large data set where number of users exceed the number of items, you can scale the solution better by inversing your data and calculate the correlation between items instead (i.e. item-based filtering) and use that to infer similar users. Naturally, you wouldn’t do this in real time but schedule periodic recalculations as a backend task. Some of the approaches can be parallelised/distributed to drastically shorten the computation time (assuming you have the resources to throw at it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is not programming related, but I have a scenario. Each video
Hey. I know this is not a 'refactor my code' site but I made
I know this might sounds not reasonable, and might be a bad design. But
I know this probably really simple but Im not sure what im doing wrong...
I know this sort of code is not best practice, but nevertheless in certain
I know this is possible but I'm not really sure where to start. Has
I know this is simple but I am not able to get it right
I know this question is not really important.. however I've been wondering: Which of
Anyone know why this is not returning a value? Example $item2['data'] where it =
Does someone know why this is not a strict quine ? _0='_0=%r;print _0%%_0';print _0%_0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.