{"id":14992127,"url":"https://github.com/goldstraw/rust_cnn","last_synced_at":"2025-09-25T14:30:55.233Z","repository":{"id":159337843,"uuid":"576384475","full_name":"goldstraw/rust_cnn","owner":"goldstraw","description":"Rust convolutional neural network from scratch","archived":false,"fork":false,"pushed_at":"2024-10-05T11:30:09.000Z","size":13978,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-08T23:03:09.511Z","etag":null,"topics":["cnn","convolutional-neural-network","machine-learning","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goldstraw.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}},"created_at":"2022-12-09T18:07:31.000Z","updated_at":"2024-10-20T16:07:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"f571c3df-fe41-4951-b589-a52606ea0c37","html_url":"https://github.com/goldstraw/rust_cnn","commit_stats":null,"previous_names":["goldstraw/rustcnn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldstraw%2Frust_cnn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldstraw%2Frust_cnn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldstraw%2Frust_cnn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldstraw%2Frust_cnn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goldstraw","download_url":"https://codeload.github.com/goldstraw/rust_cnn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234200170,"owners_count":18795139,"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":["cnn","convolutional-neural-network","machine-learning","rust"],"created_at":"2024-09-24T15:00:45.650Z","updated_at":"2025-09-25T14:30:49.946Z","avatar_url":"https://github.com/goldstraw.png","language":"Rust","funding_links":[],"categories":["Machine Learning"],"sub_categories":[],"readme":"# Rust Convolutional Neural Network from Scratch\n\nThis repository contains a Rust implementation of a Convolutional Neural Network (CNN) built from scratch. This repository provides code for training on the MNIST dataset, and the 50States10K dataset.\n\nAll machine learning code is written from scratch, however the `ndarray` crate is used for matrix operations. When tuned correctly, the network should reach 90+% accuracy within one minute on the MNIST dataset.\n\n## Overview\n\nThe repository implements the following features:\n\n- Convolutional, max pooling, and fully connected layers\n- ReLU and Softmax activation functions\n- Cross-entropy loss function\n- SGD, Momentum, RMSProp, and Adam optimizers\n- Dropout\n- He initialization\n\n## Usage\n\nTo run the demo of the CNN, place the [MNIST dataset](http://yann.lecun.com/exdb/mnist/) in a folder named `data`, and use the following command:\n\n```\n$ cargo run --release\n```\n\nThis command will run a demo of the CNN and train it on the MNIST dataset.\n\n## Further Reading\n\nFor more information about this project, read [my blog post on CNNs](https://charliegoldstraw.com/articles/cnn/).\n\n## License\n\nThis project is licensed under the GNU Affero General Public License v3.0 - see the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldstraw%2Frust_cnn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldstraw%2Frust_cnn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldstraw%2Frust_cnn/lists"}