Giter VIP home page Giter VIP logo

ssmf's Introduction

SSMF

Implementation of SSMF: Shifting Seasonal Matrix Factorization, Koki Kawabata, Siddharth Bhatia, Rui Liu, Mohit Wadhwa, Bryan Hooi. NeurIPS, 2021.

ssmf

DEMO

  • Please RUN python3 ssmf.py, which starts processing DISEASE dataset and produces the SSMF results into "out" directory.
  • Also, please RUN python3 ssmf.py --max_regimes 1 to compare its performance with SMF, which does not assume regime shifts.

Input for SSMF

SSMF expects 3-dimensional numpy.ndarray, whose last dimension corresponds to time points. If you have multi-column dataframes, utils.list2tensor helps convert your data to 3-dimensional array.

Commnad line options

  • --output_dir:
    Path of output directory (default: 'out')
  • --periodicity:
    Length of periodicity (default: 52, for yearly patterns of weekly data)
  • --n_components:
    Rank of matrix factorization (default: 10)
  • --max_regimes:
    Maximum number of regimes (default: 50, set at 1 for SMF)
  • --learning_rate:
    Size of gradient steps in each update (default: 0.2)
  • --max_iter:
    Number of iterations to estimate new regimes (default: 1)
  • --float_cost:
    Number of bits in MDL (default: 32)
  • --update_freq:
    Interval of regime estimation (default: 1)

Installation

You will need to install following libraries,

Datasets

Citation

If you use this code for your research, please consider citing our paper.

@inproceedings{kawabata2021ssmf,
    title={SSMF: Shifting Seasonal Matrix Factorization},
    author={Koki Kawabata, Siddharth Bhatia, Rui Liu, Mohit Wadhwa, Bryan Hooi},
    booktitle={NeurIPS},
    year={2021}

ssmf's People

Contributors

taskkimura 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.