Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phill030/xor-neuralnetwork
A basic implementation of a NeuralNetwork in Rust
https://github.com/phill030/xor-neuralnetwork
Last synced: 14 days ago
JSON representation
A basic implementation of a NeuralNetwork in Rust
- Host: GitHub
- URL: https://github.com/phill030/xor-neuralnetwork
- Owner: Phill030
- Created: 2024-07-04T20:50:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T10:00:34.000Z (7 months ago)
- Last Synced: 2024-07-10T12:02:04.251Z (7 months ago)
- Language: Rust
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
- [Getting Started](#getting-started)
- [Credits](#credits)
- [Features](#features)
- [Usage](#usage)---
# Getting Started
This project implements a basic neural network from scratch in Rust. It includes an input layer, dense layers, and an output layer, allowing for flexible configuration and training. The neural network uses the sigmoid activation function and supports backpropagation for training. Additionally, the project includes functionality to visualize the training loss over epochs using the plotters crate.
# Credits
Thanks to the help of [@FrozenAssassine](https://github.com/FrozenAssassine) and [@finn-freitag](https://github.com/finn-freitag/) I've built this NeuralNetwork from scratch!
# Features
- **Layered Architecture:** Includes input, dense, and output layers.
- **Feed Forward:** Implemented feed-forward algorithm.
- **Backpropagation:** Training through backpropagation using gradient descent.
- **Cross-Entropy Loss:** Utilized cross-entropy loss for binary classification.
- **Visualization:** Plot training loss over epochs using plotters library.# Usage
1. Clone the repository to your local machine:
```bash
git clone https://github.com/Phill030/XOR-NeuralNetwork.git
cd XOR-NeuralNetwork
```2. Build the project using Cargo:
```bash
cargo run
```This will train the neural network on a simple XOR dataset, print the predictions, and generate a plot of the training loss over epochs as loss_plot.png.