Crate smyl

Crate smyl 

Source
Expand description

§Smyl - A Machine Learning Library in Rust

Smyl is a machine learning library written in Rust, providing a set of tools and abstractions for building and training neural networks.

§Features

  • Matrix Operations: Smyl provides a Matrix struct for efficient matrix operations, including addition, subtraction, multiplication, and more. See the [matrix] module for details.
  • Activation Functions: Smyl includes common activation functions such as ReLU and Sigmoid. These are defined in the [activation] module.
  • Layers: Smyl defines two main layer types: SignalLayer and SynapseLayer, which can be used to build neural network architectures. See the network module.
  • Macros (optional): With the macros feature enabled, Smyl provides a set of macros to simplify the creation of neural networks. These are defined in the [macros] module.
  • Idx3 Support (optional): With the idx3 feature enabled, Smyl can read and process data in the IDX3 format, commonly used for storing images. This is provided in the [idx] module.

§Getting Started

To use Smyl, add the following to your Cargo.toml file:

[dependencies]
smyl = "0.1.1"

Then, in your Rust code, you can import the necessary modules from the prelude:

use smyl::prelude::*;

§Documentation

For more detailed documentation, please refer to the individual module documentation:

  • [matrix]: Matrix operations
  • [activation]: Activation functions
  • network: Neural network layers
  • [macros]: Macros for simplifying neural network creation
  • [idx]: IDX3 data format support

§Examples

You can find example usage of Smyl in the [examples] directory of the repository.

Re-exports§

pub extern crate rand;

Modules§

data
maths
network
The layer module defines the core layer types used in the Smyl library.
prelude
The prelude module re-exports the most commonly used types and functions.