{"id":28729775,"url":"https://github.com/peterdev123/bpnn_activity","last_synced_at":"2025-10-07T20:00:10.236Z","repository":{"id":266599404,"uuid":"898806045","full_name":"peterdev123/bpnn_activity","owner":"peterdev123","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-06T06:01:26.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T17:11:30.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/peterdev123.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-05T04:21:41.000Z","updated_at":"2024-12-06T06:01:30.000Z","dependencies_parsed_at":"2024-12-05T05:32:57.319Z","dependency_job_id":null,"html_url":"https://github.com/peterdev123/bpnn_activity","commit_stats":null,"previous_names":["peterdev123/bpnn_activity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterdev123/bpnn_activity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Fbpnn_activity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Fbpnn_activity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Fbpnn_activity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Fbpnn_activity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterdev123","download_url":"https://codeload.github.com/peterdev123/bpnn_activity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Fbpnn_activity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278838467,"owners_count":26054721,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","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":[],"created_at":"2025-06-15T17:11:01.189Z","updated_at":"2025-10-07T20:00:10.208Z","avatar_url":"https://github.com/peterdev123.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Back Propagation Neural Network Activity\n\n## Problem Overview\n\nThe 4-input AND gate outputs `1` only when **all inputs are 1**, otherwise the output is `0`. The network must learn this pattern through training. A 4-input AND gate has a total of **16 unique input-output combinations**:\n\n| Input A | Input B | Input C | Input D | Output |\n|---------|---------|---------|---------|--------|\n| 0       | 0       | 0       | 0       | 0      |\n| 0       | 0       | 0       | 1       | 0      |\n| 0       | 0       | 1       | 0       | 0      |\n| 0       | 0       | 1       | 1       | 0      |\n| 0       | 1       | 0       | 0       | 0      |\n| 0       | 1       | 0       | 1       | 0      |\n| 0       | 1       | 1       | 0       | 0      |\n| 0       | 1       | 1       | 1       | 0      |\n| 1       | 0       | 0       | 0       | 0      |\n| 1       | 0       | 0       | 1       | 0      |\n| 1       | 0       | 1       | 0       | 0      |\n| 1       | 0       | 1       | 1       | 0      |\n| 1       | 1       | 0       | 0       | 0      |\n| 1       | 1       | 0       | 1       | 0      |\n| 1       | 1       | 1       | 0       | 0      |\n| 1       | 1       | 1       | 1       | 1      |\n\n## Neural Network Design\n\nThe network is designed with the following structure:\n- **Input Layer:** 4 neurons (representing the 4 inputs).\n- **Hidden Layer:** The **minimum number of hidden neurons** required is **2**.\n- **Output Layer:** 1 neuron (representing the AND gate output).\n\n## Training Process\n\n### Training Data\nThe network is trained on the 16 input-output combinations shown above.\n\n### Minimum Number of Hidden Neurons\nThrough experimentation, it was found that **2 hidden neurons** are sufficient to model the 4-input AND gate. Using fewer neurons results in the network failing to learn the patterns.\n\n### Minimum Number of Training Epochs\nThe network requires approximately **1100-1900 epochs** to converge, depending on the learning rate.\n\n## How to Run\n1. Clone the repository.\n2. Build and run the C# program.\n3. Observe the training progress and final output.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdev123%2Fbpnn_activity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdev123%2Fbpnn_activity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdev123%2Fbpnn_activity/lists"}