{"id":22663928,"url":"https://github.com/zsteve/wtf","last_synced_at":"2025-10-24T09:04:09.563Z","repository":{"id":70047255,"uuid":"354890643","full_name":"zsteve/wtf","owner":"zsteve","description":"wasserstein tensor factorisation","archived":false,"fork":false,"pushed_at":"2021-08-18T20:07:31.000Z","size":113536,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T09:24:09.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Roff","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/zsteve.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":"2021-04-05T16:01:39.000Z","updated_at":"2024-09-09T17:04:24.000Z","dependencies_parsed_at":"2023-04-08T09:46:14.693Z","dependency_job_id":null,"html_url":"https://github.com/zsteve/wtf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fwtf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fwtf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fwtf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fwtf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zsteve","download_url":"https://codeload.github.com/zsteve/wtf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249727713,"owners_count":21316731,"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":"2024-12-09T12:45:42.586Z","updated_at":"2025-10-24T09:04:09.467Z","avatar_url":"https://github.com/zsteve.png","language":"Roff","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wtf: Wasserstein Tensor Factorisation\n\nA unified framework for non-negative matrix and tensor factorisations with a smoothed Wasserstein loss\n\n![pooh bear meme](images/wtf.jpg)\n\nThis repository contains a basic implementation of the method described in the article \"A unified framework for non-negative matrix and tensor factorisations with a smoothed Wasserstein loss\".\n\n## Requirements\n - PyTorch\n - [Tensorly](http://tensorly.org)\n - [PythonOT](https://pythonot.github.io/)\n - CUDA-compatible GPU (e.g. use [Colab](http://colab.research.google.com/)) for efficient autodiff\n\n## Instructions\n - Clone this repo: `git clone https://github.com/zsteve/wtf.git`\n - Import the `wtf` module using\n   ```python\n   import sys\n   sys.path.insert(0, \"/content/wtf/src\")\n   import wtf\n   ```\n - ???\n - Profit\n\n## Example\n\n### From the paper\n\nA notebook for Figures 3, 4, 5 is located in the `examples/` directory.\n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/zsteve/wtf/blob/main/examples/example.ipynb)\n\n### Amino acids fluorescence dataset\n\nA notebook for the [amino acids fluorescence dataset](http://www.models.life.ku.dk/Amino_Acid_fluo) of Andersson and Bro is available as `examples/amino.ipynb`. \n\nThanks to Shoaib Bin Masud (Tufts) and Anna Konstorum (Yale) for bringing this dataset to my attention.\n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/zsteve/wtf/blob/main/examples/amino.ipynb)\n\n## Citing \n - If you find this work relevant to your research project, please cite the [preprint](https://arxiv.org/abs/2104.01708)\n\n```\nZhang, S. A unified framework for non-negative matrix and tensor factorisations with a smoothed Wasserstein loss, arXiv preprint arXiv:2104.01708, 2021\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsteve%2Fwtf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsteve%2Fwtf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsteve%2Fwtf/lists"}