Code Monkey home page Code Monkey logo

uipc-mf's Introduction

UIPC-MF: User-Item Prototype Connection Matrix Factorization for Explainable Collaborative Filtering

This repository hosts the codefor the paper "UIPC-MF: User-Item Prototype Connection Matrix Factorization for Explainable Collaborative Filterings" by Lei Pan and Von-Wun Soo.

@article{pan2023uipc,
  title={UIPC-MF: User-Item Prototype Connection Matrix Factorization for Explainable Collaborative Filtering},
  author={Pan, Lei and Soo, Von-Wun},
  journal={arXiv preprint arXiv:2308.07048},
  year={2023}
}

Repository Structure

The code is derived from https://github.com/karapostK/ProtoMF. The structure of the code is the same as https://github.com/karapostK/ProtoMF.

The code is written in Python and relies on Pytorch to compute the model's gradients. We further use ray tune for hyperparameter optimization and weight and biases for logging, among many cool packages.

Installation and configuration

Environment

  • Install the environment with conda env create -f uipc_mf.yml
  • Activate the environment with conda activate uipc_mf

Data

All preprocessed data is in /data.

Configuration

In utilities/consts.py you need to set:

  • DATA_PATH: absolute path to the ./data folder
  • WANDB_API_KEY: API key of Weight and Biases, currently the results are only printed there.

Run

Running start.py will initiate the training process.

By default, python start.py runs the hyperparameter optimization for a single seed (check utilities/consts.py).

Results and progress can be checked on the Weight&Biases webpage.

License

The code in this repository is licensed under the Apache 2.0 License.

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.