{"id":19674774,"url":"https://github.com/shashvatshah9/ffpytorch","last_synced_at":"2025-04-29T02:30:25.610Z","repository":{"id":161160625,"uuid":"635947535","full_name":"shashvatshah9/FFPytorch","owner":"shashvatshah9","description":"Forward Forward Implementation improvements","archived":false,"fork":false,"pushed_at":"2023-11-05T05:59:40.000Z","size":131,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T12:33:11.226Z","etag":null,"topics":["deep-learning","forward-forward-algorithm","neural-networks","pytorch"],"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/shashvatshah9.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}},"created_at":"2023-05-03T19:56:13.000Z","updated_at":"2025-01-22T10:49:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b892872-7d02-481f-be33-27ab0ee687b4","html_url":"https://github.com/shashvatshah9/FFPytorch","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/shashvatshah9%2FFFPytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashvatshah9%2FFFPytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashvatshah9%2FFFPytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashvatshah9%2FFFPytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shashvatshah9","download_url":"https://codeload.github.com/shashvatshah9/FFPytorch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251420862,"owners_count":21586693,"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":["deep-learning","forward-forward-algorithm","neural-networks","pytorch"],"created_at":"2024-11-11T17:19:45.582Z","updated_at":"2025-04-29T02:30:25.376Z","avatar_url":"https://github.com/shashvatshah9.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FFPytorch\nForward Forward Implementation improvements\n\nReferences\n1. https://github.com/mohammadpz/pytorch_forward_forward\n2. [Geoffrey Hinton's talk at NeurIPS 2022](https://www.cs.toronto.edu/~hinton/FFA13.pdf).\n\nCode Structure\nFFEncoding -  provides methods to overlay one-hot-encoded labels onto input data, either in the form of replacing the first 10 pixels of the data with the label or replacing the first 10 pixels in each channel of a 2D image with the corresponding label.\nFFLayer - defines a feed-forward layer (FFLayer) that extends the Linear class from PyTorch. It takes input features, output features, an activation function, an optimizer, a threshold value, and other parameters. \nFFNetwork - defines two classes: FFNetwork and FFNetworkBatched. FFNetwork is a feed-forward neural network module that sequentially passes inputs through layers, while FFNetworkBatched supports batched processing of inputs and applies the forward pass to each batch.\n\nHow to run? \nAssuming you have a python-supporting environment, which has available gpu(s), you can type this in the terminal *python base.py*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshashvatshah9%2Fffpytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshashvatshah9%2Fffpytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshashvatshah9%2Fffpytorch/lists"}