GithubHelp home page GithubHelp logo

Comments (6)

jadianes avatar jadianes commented on July 24, 2024 1

Ok. I'll have a look as soon as I find some time. In the meantime, if you try to find the error I'm sure you'll learn a lot about Spark. If you are able to fix it and the error is in the code provided, send us a pull request with the fix! :)

from spark-movie-lens.

jadianes avatar jadianes commented on July 24, 2024

It doesn't look right to me... What movies do you have in your ratings file?

from spark-movie-lens.

marius92mc avatar marius92mc commented on July 24, 2024

The ratings.csv, as well as the entire dataset is not altered by me, is the same with the one from movie-lens archive link that is mentioned in the project tutorial.

I attach again two examples of retrieving the data.

$ curl http://0.0.0.0:5433/0/ratings/top/10
[["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30], ["The War (2007)", 8.836370207914264, 30]]
$ curl http://0.0.0.0:5433/1/ratings/top/10
[["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887], ["\"Shawshank Redemption", 5.1801975606400665, 77887]]

from spark-movie-lens.

marius92mc avatar marius92mc commented on July 24, 2024

I've opened a PR regarding a trivial modification, but I mention that it DOESN'T fix this issue.

from spark-movie-lens.

marius92mc avatar marius92mc commented on July 24, 2024

I've opened a PR that fixes this problem, by reverting the changes from #5. Those changes were causing the issue.

Thank you.

from spark-movie-lens.

jadianes avatar jadianes commented on July 24, 2024

Thanks again. I made the #5 "fix" by suggestion without really looking at the results. My bad.

from spark-movie-lens.

Related Issues (16)

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.