{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/ssmf-shifting-seasonal-matrix-factorization","title":"SSMF: Shifting Seasonal Matrix Factorization","arxiv_id":"2110.12763","date":"2021-10-25","proceeding":"NeurIPS 2021 12","authors":["Koki Kawabata","Siddharth Bhatia","Rui Liu","Mohit Wadhwa","Bryan Hooi"],"abstract":"Given taxi-ride counts information between departure and destination locations, how can we forecast their future demands? In general, given a data stream of events with seasonal patterns that innovate over time, how can we effectively and efficiently forecast future events? In this paper, we propose Shifting Seasonal Matrix Factorization approach, namely SSMF, that can adaptively learn multiple seasonal patterns (called regimes), as well as switching between them. Our proposed method has the following properties: (a) it accurately forecasts future events by detecting regime shifts in seasonal patterns as the data stream evolves; (b) it works in an online setting, i.e., processes each observation in constant time and memory; (c) it effectively realizes regime shifts without human intervention by using a lossless data compression scheme. We demonstrate that our algorithm outperforms state-of-the-art baseline methods by accurately forecasting upcoming events on three real-world data streams.","url_abs":"https://arxiv.org/abs/2110.12763v1","url_pdf":"https://arxiv.org/pdf/2110.12763v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"ssmf-shifting-seasonal-matrix-factorization","repo_url":"https://github.com/kokikwbt/ssmf","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[{"task_slug":"data-compression","task_name":"Data Compression"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2110.12763","atlas_url":"https://app.syntology.ai/?focus=2110.12763","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.12763"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/kokikwbt/ssmf","reach":null}],"summary":{"ran":1,"ran_honours":1,"ran_draft_wrong":1,"unverified":1},"by_repo_kind":{"official":{"samples":4,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"96fd3e3bd4743931","entry":"SSMF","repo":"kokikwbt/ssmf","repo_kind":"official","path":"ssmf.py","file_url":"https://github.com/kokikwbt/ssmf/blob/HEAD/ssmf.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"96fd3e3bd4743931"}},{"code_sha256_prefix":"82168e8aaf1c50ff","entry":"list2tensor","repo":"kokikwbt/ssmf","repo_kind":"official","path":"utils.py","file_url":"https://github.com/kokikwbt/ssmf/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"82168e8aaf1c50ff"}},{"code_sha256_prefix":"56e154b731b3816e","entry":"read_csv","repo":"kokikwbt/ssmf","repo_kind":"official","path":"utils.py","file_url":"https://github.com/kokikwbt/ssmf/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"56e154b731b3816e"}},{"code_sha256_prefix":"990001ef139ed8da","entry":"list2tensor_from_index","repo":"kokikwbt/ssmf","repo_kind":"official","path":"utils.py","file_url":"https://github.com/kokikwbt/ssmf/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"990001ef139ed8da"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}