Giter Site home page Giter Site logo

torchease's Introduction

TorchEASE

Implementation of Embarrassingly Shallow Autoencoders (Harald Steck) in PyTorch

* Adapted from: https://github.com/Darel13712/ease_rec 
* Paper: https://arxiv.org/abs/1905.03375
* Papers with Code: https://paperswithcode.com/sota/collaborative-filtering-on-million-song

This code is currently SOTA on the Million Song challenge on Papers With Code. It utilizes a simple closed-form solution for a recommendation problem. This PyTorch implementation is much faster than the original Numpy version.

To use:

Implicit interactions:

  1. te_implicit = TorchEASE(df, user_col="user", item_col="item")
  2. te_implicit.fit()
  3. predictions = te_implicity.predict_all(predict_df)

Explicit interactions (UNTESTED):

  1. te_explicit = TorchEASE(df, user_col="user", item_col="item", score_col="rating")
  2. te_explicit.fit()
  3. predictions = te_explicit.predict_all(predict_df)

To use via CLI:

  1. Put your data files into data/
  2. From a terminal window, call python train.py {TRAIN.csv} {TO_PRED.csv} {USER_COLUMN_NAME} {ITEM_COLUMN_NAME} {[optional]SCORE_COLUMN_NAME}
  3. Predictions are pushed to predictions/output.csv

Example usage:

python train.py training.csv users.csv username book_name book_score

Tuning the regularization parameter on scales from 1E2 - 1E3 seems to be effective

torchease's People

Contributors

franckjay avatar

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.