{"id":29023302,"url":"https://github.com/rish-16/nam-pytorch","last_synced_at":"2025-06-26T03:06:03.721Z","repository":{"id":57444796,"uuid":"371299975","full_name":"rish-16/nam-pytorch","owner":"rish-16","description":"Unofficial PyTorch implementation of Neural Additive Models (NAM) by Agarwal, et al.","archived":false,"fork":false,"pushed_at":"2021-05-30T05:34:29.000Z","size":108,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-22T21:33:27.343Z","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/rish-16.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}},"created_at":"2021-05-27T08:24:18.000Z","updated_at":"2025-04-16T05:52:29.000Z","dependencies_parsed_at":"2022-09-26T17:30:36.250Z","dependency_job_id":null,"html_url":"https://github.com/rish-16/nam-pytorch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rish-16/nam-pytorch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Fnam-pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Fnam-pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Fnam-pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Fnam-pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rish-16","download_url":"https://codeload.github.com/rish-16/nam-pytorch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Fnam-pytorch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261403115,"owners_count":23153218,"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-06-26T03:06:03.073Z","updated_at":"2025-06-26T03:06:03.695Z","avatar_url":"https://github.com/rish-16.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nam-pytorch\nUnofficial PyTorch implementation of Neural Additive Models (NAM) by Agarwal, et al. [[`abs`](https://arxiv.org/abs/2004.13912), [`pdf`](https://arxiv.org/pdf/2004.13912.pdf)]\n\n\u003cimg width=600 src=\"https://github.com/rish-16/nam-pytorch/raw/main/pic.png\" /\u003e\n\n---\n\n## Installation\n\nYou can access `nam-pytorch` via `pip`:\n\n```bash\n$ pip install nam-pytorch\n```\n\n## Usage\n\n```python\nimport torch \nfrom nam_pytorch import NAM\n\nnam = NAM(\n    num_features=784,\n    link_func=\"sigmoid\"\n)\n\nimages = torch.rand(32, 784)\npred = nam(images) # [32, 1]\n```\n\n## Contributing\nAs always, if there are any issues with / suggestions for the code, feel free to raise an issue or submit a PR.\n\n## License\n[MIT](https://github.com/rish-16/nam-pytorch/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frish-16%2Fnam-pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frish-16%2Fnam-pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frish-16%2Fnam-pytorch/lists"}