{"id":13678506,"url":"https://github.com/EthanRosenthal/torchmf","last_synced_at":"2025-04-29T15:31:35.673Z","repository":{"id":19498692,"uuid":"87178652","full_name":"EthanRosenthal/torchmf","owner":"EthanRosenthal","description":"matrix factorization in PyTorch","archived":false,"fork":false,"pushed_at":"2023-07-06T21:35:30.000Z","size":50,"stargazers_count":129,"open_issues_count":3,"forks_count":33,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-11T21:37:21.220Z","etag":null,"topics":["matrix-factorization","pytorch","recommender-systems"],"latest_commit_sha":null,"homepage":"https://www.ethanrosenthal.com/2017/06/20/matrix-factorization-in-pytorch/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EthanRosenthal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-04T11:28:14.000Z","updated_at":"2024-10-29T15:08:41.000Z","dependencies_parsed_at":"2024-01-14T15:22:23.198Z","dependency_job_id":"444d86fe-9e9d-4122-9a04-55774d8f1922","html_url":"https://github.com/EthanRosenthal/torchmf","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/EthanRosenthal%2Ftorchmf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanRosenthal%2Ftorchmf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanRosenthal%2Ftorchmf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanRosenthal%2Ftorchmf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EthanRosenthal","download_url":"https://codeload.github.com/EthanRosenthal/torchmf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251529550,"owners_count":21603975,"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":["matrix-factorization","pytorch","recommender-systems"],"created_at":"2024-08-02T13:00:54.365Z","updated_at":"2025-04-29T15:31:35.370Z","avatar_url":"https://github.com/EthanRosenthal.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# torchmf\n\nmatrix factorization in PyTorch\n\n## Installation\n\n### pip\n\n```commandline\npip install -r requirements.txt\n```\n\n### conda\n\n```commandline\nconda env create -f environment.yml\nconda activate torchmf\n```\n\n## Example\n\n```bash\n$ python run.py --example explicit\n( 1 ): 100%|████████████████████████████████████████████████████████| 89/89 [00:01\u003c00:00, 85.88it/s, train_loss=7.9]\nEpoch:  1   train:  15.04790 val:  8.84972\n( 2 ): 100%|███████████████████████████████████████████████████████| 89/89 [00:01\u003c00:00, 84.06it/s, train_loss=2.96]\nEpoch:  2   train:  4.34132  val:  4.04638\n( 3 ): 100%|███████████████████████████████████████████████████████| 89/89 [00:01\u003c00:00, 81.54it/s, train_loss=1.51]\nEpoch:  3   train:  1.87918  val:  2.43315\n( 4 ): 100%|███████████████████████████████████████████████████████| 89/89 [00:01\u003c00:00, 85.55it/s, train_loss=1.19]\nEpoch:  4   train:  1.21419  val:  1.80296\n( 5 ): 100%|██████████████████████████████████████████████████████| 89/89 [00:00\u003c00:00, 90.87it/s, train_loss=0.945]\nEpoch:  5   train:  0.99693  val:  1.49770\n( 6 ): 100%|██████████████████████████████████████████████████████| 89/89 [00:00\u003c00:00, 89.33it/s, train_loss=0.914]\nEpoch:  6   train:  0.90174  val:  1.33501\n( 7 ): 100%|██████████████████████████████████████████████████████| 89/89 [00:00\u003c00:00, 115.70it/s, train_loss=0.83]\nEpoch:  7   train:  0.85230  val:  1.23783\n( 8 ): 100%|██████████████████████████████████████████████████████| 89/89 [00:01\u003c00:00, 88.85it/s, train_loss=0.879]\nEpoch:  8   train:  0.82072  val:  1.17781\n( 9 ): 100%|█████████████████████████████████████████████████████| 89/89 [00:00\u003c00:00, 119.93it/s, train_loss=0.766]\nEpoch:  9   train:  0.79898  val:  1.13976\n(10 ): 100%|█████████████████████████████████████████████████████| 89/89 [00:00\u003c00:00, 122.18it/s, train_loss=0.736]\nEpoch: 10   train:  0.77820  val:  1.10951\n```\n\nwhich looks something like\n\n![train plot](trainplot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEthanRosenthal%2Ftorchmf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEthanRosenthal%2Ftorchmf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEthanRosenthal%2Ftorchmf/lists"}