{"id":26997189,"url":"https://github.com/adityalab/foil","last_synced_at":"2025-04-04T02:17:09.772Z","repository":{"id":244821726,"uuid":"809490513","full_name":"AdityaLab/FOIL","owner":"AdityaLab","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-25T06:43:43.000Z","size":1444,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-07-25T13:54:59.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdityaLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-02T20:44:01.000Z","updated_at":"2024-07-25T06:43:46.000Z","dependencies_parsed_at":"2024-07-11T18:59:50.741Z","dependency_job_id":"59030186-75ca-4dca-84d1-f743a695679b","html_url":"https://github.com/AdityaLab/FOIL","commit_stats":null,"previous_names":["adityalab/foil"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaLab%2FFOIL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaLab%2FFOIL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaLab%2FFOIL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaLab%2FFOIL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdityaLab","download_url":"https://codeload.github.com/AdityaLab/FOIL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107827,"owners_count":20884797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-04T02:17:09.077Z","updated_at":"2025-04-04T02:17:09.757Z","avatar_url":"https://github.com/AdityaLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FOIL (ICML2024)\n### This is an offical implementation of FOIL: [Time-Series Forecasting for Out-of-Distribution Generalization Using Invariant Learning](https://arxiv.org/abs/2406.09130). \n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/AdityaLab/FOIL/blob/main/Framework.png\" width=\"500\"\u003e\n\u003c/div\u003e\n\n## Requirements\nDependencies can be installed using the following file: \nnewtimelib_environment.yml\n## Dataset\nYou can obtain the well pre-processed datasets from [[Google Drive]](https://drive.google.com/drive/folders/13Cg1KYOlzM5C7K8gK8NfC-F3EYxkM3D2?usp=sharing) or [[Baidu Drive]](https://pan.baidu.com/s/1r3KhGd0Q9PJIUZdfEYoymg?pwd=i9iy), Then place the downloaded data in the folder`./dataset`\n## Try out FOIL\nUsecase\nRun Raw Informer on ILI dataset with Pred_Len=4:\n```bash\ncd Informer-Raw\npython ILI-Pred4.py \n```\nRun Informer with FOIL on ILI dataset with Pred_Len=4:\n```bash\ncd Informer+FOIL\npython ILI-Pred4-0.py \npython ILI-Pred4-1.py \n```\n*  First Infer Envrionment; Second Learn Invariant Reperesentation\n## Citation\n\nIf you find this repo useful, please cite our paper.\n\n```\n@inproceedings{\nliu2024timeseries,\ntitle={Time-Series Forecasting for Out-of-Distribution Generalization Using Invariant Learning},\nauthor={haoxin liu and Harshavardhan Kamarthi and Lingkai Kong and Zhiyuan Zhao and Chao Zhang and B. Aditya Prakash},\nbooktitle={Forty-first International Conference on Machine Learning},\nyear={2024},\nurl={https://openreview.net/forum?id=SMUXPVKUBg}\n}\n```\n\n## Contact\nIf you have any questions or suggestions, feel free to contact:\nhliu763@gatech.edu\n## Acknowledgement\n\nThis library is constructed based on the following repos:\n\nhttps://github.com/zhouhaoyi/Informer2020/\n\nhttps://github.com/thuml/Time-Series-Library/\n\nhttps://github.com/ts-kim/RevIN\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityalab%2Ffoil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityalab%2Ffoil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityalab%2Ffoil/lists"}