neuroforge 0.1.2

A neural network library with advanced features including quantum-inspired neurons, adaptive architecture, and neuro-symbolic integration.
Documentation
  • Coverage
  • 0%
    0 out of 40 items documented0 out of 33 items with examples
  • Size
  • Source code size: 24.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 752.55 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • xStFtx

Neuroforge

Neuroforge is a Rust library for creating and training neural networks with an integrated neuro-symbolic processing layer.

1. Usage

Here's a basic example of how to use the neuroforge library:

use neuroforge::{NeuroForge, neuro_symbolic::NeuroSymbolicLayer};

fn main() {
    // Create a new neural network with 5 input neurons, 10 hidden neurons, and 3 output neurons
    let mut network = NeuroForge::new(&[5, 10, 3]);
    let mut symbolic_layer = NeuroSymbolicLayer::new();

    // Add a neuro-symbolic rule
    symbolic_layer.add_rule("high_activation", Box::new(|output: &[f64]| {
        if output.iter().any(|&x| x > 0.8) { 1.0 } else { 0.0 }
    }));

    // Train the network
    let inputs = vec![vec![0.1, 0.2, 0.3, 0.4, 0.5]];
    let targets = vec![vec![0.9, 0.1, 0.5]];
    network.train(&inputs, &targets, 1000);

    // Make a prediction
    let input = vec![0.2, 0.3, 0.4, 0.5, 0.6];
    let mut output = network.forward(&input);
    
    // Apply neuro-symbolic processing
    output = symbolic_layer.process(output);

    println!("Output: {:?}", output);
    println!("Explanations: {:?}", symbolic_layer.explain());
}

2. Features

  • Neural Network Creation: Easily create neural networks with a specified architecture.
  • Training: Train the network with input-target pairs.
  • Forward Propagation: Perform forward propagation to get network outputs.
  • Neuro-Symbolic Processing: Integrate symbolic rules to post-process neural network outputs.

3. Installation

Add neuroforge to your Cargo.toml:

[dependencies]
neuroforge = "*"

Or command:

cargo add neuroforge

4. License

This project is licensed under the MIT License.