Code Monkey home page Code Monkey logo

recommender-system's Introduction

Anime Recommender System

Overview

This is an implementation of two popular recommendation techniques (collaborative filtering and latent factor model) based on the Mining of Massive Datasets video series. In this implementation we work with predicting anime ratings using the CooperUnion Kaggle anime dataset. This project was a collaboration between Scott Freitas and Benjamin Clayton.

How to Run?

(1) Create three folders in the code directory named 'csv', 'matrices' and 'optimization'

(2) Download the anime dataset from Kaggle: https://www.kaggle.com/CooperUnion/anime-recommendations-database

(3) Add the 'anime.csv' and 'rating.csv' files to the 'csv' folder

(4) Run the 'RecommenderSystem.py' file and it will walk you through the process of running the program with an interactive dialogue.

Note:

This program was built to run with Python 2.7 in a Windows environment. In additions, we used the numpy, scipy and sklearn libraries.

recommender-system's People

Contributors

bsclayt1 avatar safreita1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

recommender-system's Issues

TypeError: 'numpy.float64' object cannot be interpreted as an index

`Welcome to the Anime Recommender System.
If this is your first time running the program? You'll need to create the necessary matrices andremapped rating file if it is.
Create matrices and remapped rating file if they don't already exist? (yes or no) yes
Initializing Data Preprocessing
Loading remapped data
Remapped data loaded in 20.1149749756 seconds
Data Preprocessing initialization done in 20.1162760258 seconds
Running random split
Building Sparse Matrices
Traceback (most recent call last):
File "RecommenderSystem.py", line 18, in
preprocess.run_random_split()
File "/mnt/c/Users/flole/Desktop/tst/tst42recommend/DataPreprocessing.py", line 207, in run_random_split
test_file_name=self.random_testing_filepath)
File "/mnt/c/Users/flole/Desktop/tst/tst42recommend/DataPreprocessing.py", line 115, in random_split
shape=(sparse_movie_size, sparse_user_size), dtype=np.float64)
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/coo.py", line 154, in init
self._shape = check_shape((M, N))
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/sputils.py", line 286, in check_shape
new_shape = tuple(operator.index(arg) for arg in args)
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/sputils.py", line 286, in
new_shape = tuple(operator.index(arg) for arg in args)

TypeError: 'numpy.float64' object cannot be interpreted as an index`
image

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.