Giter VIP home page Giter VIP logo

Comments (4)

NicolasHug avatar NicolasHug commented on May 19, 2024

Hi Ken,

I provided an example to read ratings from a pandas dataframe in a previous issue #20.

If there is a strong need to read ratings from different inputs I can try to work on that. May I ask how such use-cases would be useful to you? Also, what would reading ratings from still look like?

Thanks,
Nicolas

from surprise.

kenoung avatar kenoung commented on May 19, 2024

Hi thanks for the link.

I'm currently using a custom dataset that takes a random split, then trains the SVD on it. To do this, I'm getting the relevant columns then writing them to disk before providing the file path to the reader. The workflow would be slightly smoother without having to write the data to disk.

I'm currently using a pandas dataframe, so maybe a method where we could load_from_df? I'm not sure what others are using though.

Thanks for the quick response. I'm not desperate for this right now. Just pointing it out as a possible feature request.

from surprise.

NicolasHug avatar NicolasHug commented on May 19, 2024

I see. I will add an entry to the FAQ following the main lines of #20 to build a dataset from a dataframe. As you can see it all boils down to building the raw_ratings attribute. The dummy reader object is only here to specify the rating scale.

Have you been able to work out a solution for your specific case?

Don't hesitate to come back if you need help.
Nicolas

from surprise.

kenoung avatar kenoung commented on May 19, 2024

Yup it's working now. Thanks!

Ken

from surprise.

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.