kevinliao159 / mydatascienceportfolio Goto Github PK
View Code? Open in Web Editor NEWApplying Data Science and Machine Learning to Solve Real World Business Problems
License: MIT License
Applying Data Science and Machine Learning to Solve Real World Business Problems
License: MIT License
movie_user_mat = df_ratings_drop_users.pivot(index='movieId', columns='userId', values='rating').fillna(0)
When I run this code, I get an error: "ValueError: Unstacked DataFrame is too big, causing int32 overflow". So how do you resolve this problem?
@KevinLiao159 May I know how to make_recommendation out of this model
predictions = GMF_model.predict([df_test.userId.values, df_test.movieId.values])
Thanks
Keras expects float in model training so model definition should be;
history = train_model(GMF_model, 'adam', BATCH_SIZE, EPOCHS, VAL_SPLIT,
inputs=[df_train.userId.values.astype(np.float32), df_train.movieId.values.astype(np.float32)],
outputs=df_train.rating.values)
Hi Kevin, thanks for the nice code.
But I found something which is really weirded.
When I want to search recommendations for 'Day After Tomorrow', it seems that it is recommending a movie with movie ID of 8069, which does not even in the training set movie_user_mat_sparse. Thus gives an error when looking up the value for key of 8069 in reverse_mapper, which does not even have a 8069 key.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.