Comments (6)
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.
It doesn't look right to me... What movies do you have in your ratings file?
from spark-movie-lens.
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.
I've opened a PR regarding a trivial modification, but I mention that it DOESN'T fix this issue.
from spark-movie-lens.
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.
Thanks again. I made the #5 "fix" by suggestion without really looking at the results. My bad.
from spark-movie-lens.
Related Issues (16)
- Ger error when execute " error_complete = math.sqrt(rates_and_preds_complete.map(lambda r:(r[1][0]-r[1][1])**2).mean())" HOT 1
- StackOverflow
- duplicates of new user unrated moves passed to predict
- Getting individual ratings HOT 1
- org.apache.hadoop.mapred.InvalidInputException: Input path does not exist HOT 1
- Invalid Syntax in engine.py - line 115, self.seed = 5L HOT 3
- engine.iteration HOT 2
- New User Ratings
- Importing Spark HOT 1
- Unable to proceed past stage 7.0 (OutOfMemoryError: Java heap space)
- self.seed HOT 2
- update the model for new users and new movies
- real-time recommend HOT 1
- logic error in function "get_top_ratings" when get "user_unrated_moies_RDD" HOT 2
- localhost:5432/0/ratings/top/10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spark-movie-lens.