Git Product home page Git Product logo

Comments (5)

ocelma avatar ocelma commented on July 30, 2024

I probably will need more info, but for now my can you please check what value did you set for min_values param when computing the SVD?

compute(self, k=100, min_values=???

from python-recsys.

igor87z avatar igor87z commented on July 30, 2024

My mistake. I forget change value of min_values from example. Set to 1 and everything works.
Now I have one question. For cells that doesn't have a values in dat-file I need to add lines without values, only row and column identifiers, or such lines in the file should not be. Sorry, but I don't found example of dat-file.

from python-recsys.

igor87z avatar igor87z commented on July 30, 2024

And I get in recommendations rated items:
In dat-file:

5156::6877715::37
5156::6877716::100
5156::6877717::78
5156::6878180::43
5156::6935490::73
5156::6935491::71
5156::6942420::91
5156::6942421::29
5156::6942597::74
5156::6942598::100
5156::6942599::100
5156::6942600::55

6877716, 6877715, 6877717 exists in recommend:

svd.recommend(5156, is_row=False)

[(6877716, 25.352191096345248), (6877715, 22.913767557647038), (6877717, 21.127898465135296), (6877718, 16.982821565501425), (6877714, 16.571863381535454), (6877720, 14.582520866868133), (6877719, 14.267469649710268), (6877713, 11.796344566506022), (6914703, 9.8264285723669271), (6914704, 9.3989017317142203)]

In dat-file if some items not rated by user such line doesn't exist, but if add lines like "::::" it doesn't matter these options are still present in a recommendations.

from python-recsys.

igor87z avatar igor87z commented on July 30, 2024

And if some item not rated by any user, how add these if not rated in the file should not be.

from python-recsys.

ocelma avatar ocelma commented on July 30, 2024

I don't quite get your comments above.

My advice here is that if you have items with only one (or zero) users and you want to include them in the recommendations, the results won't be good at all.
You need more data to provide decent recommendations. That's why min_values is set to 10 by default. Maybe you could go as low as 5, but lower than that, the results from SVD will be bad.

from python-recsys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.