{"id":15882748,"url":"https://github.com/chris-santiago/scarf","last_synced_at":"2026-01-29T03:02:43.895Z","repository":{"id":227564176,"uuid":"768949012","full_name":"chris-santiago/scarf","owner":"chris-santiago","description":"Reproducing the SCARF framework with PyTorch","archived":false,"fork":false,"pushed_at":"2024-08-28T17:53:24.000Z","size":31466,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-26T13:58:27.287Z","etag":null,"topics":["contrastive-learning","hydra","pytorch","pytorch-lightning","scarf","self-supervised-learning","taskfile"],"latest_commit_sha":null,"homepage":"","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/chris-santiago.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2024-03-08T03:05:10.000Z","updated_at":"2024-08-28T17:53:08.000Z","dependencies_parsed_at":"2025-05-29T11:14:02.512Z","dependency_job_id":null,"html_url":"https://github.com/chris-santiago/scarf","commit_stats":null,"previous_names":["chris-santiago/scarf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chris-santiago/scarf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-santiago%2Fscarf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-santiago%2Fscarf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-santiago%2Fscarf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-santiago%2Fscarf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chris-santiago","download_url":"https://codeload.github.com/chris-santiago/scarf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-santiago%2Fscarf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28861654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["contrastive-learning","hydra","pytorch","pytorch-lightning","scarf","self-supervised-learning","taskfile"],"created_at":"2024-10-06T04:06:58.953Z","updated_at":"2026-01-29T03:02:43.874Z","avatar_url":"https://github.com/chris-santiago.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCARF - PyTorch\n\nThis repo reproduces the SCARF (Self-Supervised Contrastive Learning Using Random Feature Corruption) framework for self-supervised learning with tabular data.\n\n*Authors: Dara Bahri, Heinrich Jiang, Yi Tay, Donald Metzler*\n\n*Reference: Bahri, Dara, et al. \"Scarf: Self-supervised contrastive learning using random feature corruption.\" arXiv preprint arXiv:2106.15147 (2021).*\n\nOriginal paper: https://research.google/pubs/scarf-self-supervised-contrastive-learning-using-random-feature-corruption/\n\nOriginal repo: --\n\n## Install\n\nClone this repository, create a new Conda environment and \n\n```bash\ngit clone https://github.com/chris-santiago/scarf.git\nconda env create -f environment.yml\ncd scarf\npip install -e .\n```\n\n## Use\n\n### Prerequisites\n\n#### Hydra\n\nThis project uses [Hydra](https://hydra.cc/docs/intro/) for managing configuration CLI arguments. See `scarf/conf` for full\nconfiguration details.\n\n#### Task\n\nThis project uses [Task](https://taskfile.dev/) as a task runner. Though the underlying Python\ncommands can be executed without it, we recommend [installing Task](https://taskfile.dev/installation/)\nfor ease of use. Details located in `Taskfile.yml`.\n\n#### Current commands\n\n```bash\n\u003e task -l\ntask: Available tasks for this project:\n* check-config:       Check Hydra configuration\n* compare:            Compare using linear baselines\n* train:              Train a model\n* wandb:              Login to Weights \u0026 Biases\n```\n\nExample: Train model and for `adult-income` dataset experiment\n\n*The `--` forwards CLI arguments to Hydra.*\n\n```bash\ntask train -- experiment=income\n```\n\n#### PDM\n\nThis project was built using [this cookiecutter](https://github.com/chris-santiago/cookie) and is\nsetup to use [PDM](https://pdm.fming.dev/latest/) for dependency management, though it's not required\nfor package installation.\n\n#### Weights and Biases\n\nThis project is set up to log experiment results with [Weights and Biases](https://wandb.ai/). It\nexpects an API key within a `.env` file in the root directory:\n\n```toml\nWANDB_KEY=\u003cmy-super-secret-key\u003e\n```\n\nUsers can configure different logger(s) within the `conf/trainer/default.yaml` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris-santiago%2Fscarf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchris-santiago%2Fscarf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris-santiago%2Fscarf/lists"}