{"id":22874046,"url":"https://github.com/spt-development/spt-neural-net","last_synced_at":"2025-08-31T14:09:29.411Z","repository":{"id":267538869,"uuid":"901533039","full_name":"spt-development/spt-neural-net","owner":"spt-development","description":"Native Rust implementation of the Neural Network defined in Tariq Rashid's excellent book \"Make Your Own Neural Network\".","archived":false,"fork":false,"pushed_at":"2024-12-15T17:29:05.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T12:57:27.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spt-development.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":"2024-12-10T20:46:07.000Z","updated_at":"2024-12-15T17:29:36.000Z","dependencies_parsed_at":"2024-12-10T23:28:36.529Z","dependency_job_id":"43199414-be72-4264-ad6c-affb341bdb91","html_url":"https://github.com/spt-development/spt-neural-net","commit_stats":null,"previous_names":["spt-development/spt-neural-net"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spt-development/spt-neural-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spt-development%2Fspt-neural-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spt-development%2Fspt-neural-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spt-development%2Fspt-neural-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spt-development%2Fspt-neural-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spt-development","download_url":"https://codeload.github.com/spt-development/spt-neural-net/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spt-development%2Fspt-neural-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272988919,"owners_count":25026961,"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-08-31T02:00:09.071Z","response_time":79,"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":"2024-12-13T14:32:43.894Z","updated_at":"2025-08-31T14:09:29.388Z","avatar_url":"https://github.com/spt-development.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spt-neural-net\n\nNative Rust implementation of the Neural Network defined in Tariq Rashid's excellent book\n[\\\"Make Your Own Neural Network\\\"](https://github.com/makeyourownneuralnetwork/makeyourownneuralnetwork/tree/master).\n\n## Pre-requisites\n\nThe application takes a single (optional) boolean argument that results in each of the images used\nfor training and testing the [NeuralNetwork](src/neural_network.rs) being displayed - this is\nuseful when debugging the application. The display of the images uses the\n[matplotlib](https://crates.io/crates/matplotlib) crate, which simply wraps the Python library of\nthe same name. In order therefore, for the image display to work, the following Python library\npre-requisites must be installed.\n\n```shell\n$ pip install --user matplotlib\n$ pip install --user PyQt5\n```\n\n## Building and running the application\n\nThe standard `cargo` commands can be used for building, testing and running the application.\n\n```shell\n$ cargo clippy\n$ cargo test\n$ cargo build --release\n$ cargo run --release\n```\n\nExample output when running the application.\n\n```shell\n$  cargo run --release\n    Finished `release` profile [optimized] target(s) in 0.13s\n     Running `target/release/spt-neural-net`\n2024-12-15T17:13:51.391128 Training the network...\n2024-12-15T17:14:13.786799 Network trained with 10000 records...\n2024-12-15T17:14:35.126296 Network trained with 20000 records...\n2024-12-15T17:14:55.012176 Network trained with 30000 records...\n2024-12-15T17:15:15.502282 Network trained with 40000 records...\n2024-12-15T17:15:35.603023 Network trained with 50000 records...\n2024-12-15T17:15:55.829038 Network trained with 60000 records...\n2024-12-15T17:15:55.829095 Testing the network...\n2024-12-15T17:15:57.872578 Network performance: 0.97\n```\n\n**NOTE** In order to get results in the region of 97% as shown in the example above, it will be\nnecessary to train the neural network with a larger data set than\n[mnist_train_100.csv](mnist_dataset/mnist_train_100.csv); the full dataset is available\n[here](https://pjreddie.com/projects/mnist-in-csv/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspt-development%2Fspt-neural-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspt-development%2Fspt-neural-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspt-development%2Fspt-neural-net/lists"}