{"id":16371854,"url":"https://github.com/ivan-tymoshenko/neural-network","last_synced_at":"2026-03-12T23:30:18.491Z","repository":{"id":120570066,"uuid":"151051377","full_name":"ivan-tymoshenko/neural-network","owner":"ivan-tymoshenko","description":"Toy neural network","archived":false,"fork":false,"pushed_at":"2019-09-29T17:39:31.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-07T21:17:00.597Z","etag":null,"topics":["machine-learning","ml","neural-nets","neural-network","python"],"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/ivan-tymoshenko.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":"2018-10-01T07:29:27.000Z","updated_at":"2021-12-25T11:01:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"32e1530d-4d0e-4c00-bedf-5377d708d46e","html_url":"https://github.com/ivan-tymoshenko/neural-network","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/ivan-tymoshenko%2Fneural-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fneural-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fneural-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fneural-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivan-tymoshenko","download_url":"https://codeload.github.com/ivan-tymoshenko/neural-network/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239914935,"owners_count":19717760,"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":["machine-learning","ml","neural-nets","neural-network","python"],"created_at":"2024-10-11T03:09:48.523Z","updated_at":"2026-03-12T23:30:18.457Z","avatar_url":"https://github.com/ivan-tymoshenko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backpropagation neural network\n\n`neural-network` is a library that allows you to create and train a neural network of a given configuration.\n\n## Create network\n`create_network(layers_size)`\n- `layers_size` - list of the number of neurons on each layer (starting from the input layer)\n\n## Train network\n`train(weights, test_datasets, iterations, learning_rate)`\n- `weights` - network weights\n- `test_datasets` - list of typles of input datasets and expected datasets\n- `iterations` - number of interations\n- `learning_rate` - (0, 1) neural network learning speed / accuracy\n\n## Predict\n`predict(weights, input_datasets, reliable_limit)`\n- `weights` - network weights\n- `input_datasets` - list of input datasets\n- `reliable_limit` - (0, 0.5) limit of unknown results\n\nExample:\n\n```Python\ntrain_datasets = [\n        ([0, 0, 1], [1]),\n        ([0, 1, 1], [0]),\n        ([1, 0, 1], [1]),\n        ([1, 1, 1], [1]),\n        ([0, 0, 0], [0])\n        ]\n\nweights = create_weights([3, 2, 1])\ntrain(weights, train_datasets, 6000, 0.05)\nassert predict(weights, [0, 1, 0], 0.35) == [0]\n```\n## Contributors\n  - See github for full [contributors list](https://github.com/bugagashenkj/neural-network/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-tymoshenko%2Fneural-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivan-tymoshenko%2Fneural-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-tymoshenko%2Fneural-network/lists"}