elm

Crates.ioelm
lib.rselm
version0.3.2
sourcesrc
created_at2023-12-10 05:32:22.227146
updated_at2024-01-13 20:35:04.591679
descriptionA minimalist framework for Extreme Learning Machines (ELMs).
homepage
repositoryhttps://github.com/mbfernan/elm.git
max_upload_size
id1064046
size28,149
Marcos Blanco Fernandes (mbfernan)

documentation

README

Extreme Learning Machines (ELMs)

Extreme Learning Machine (ELM) crate. A minimalistic and flexible crate that can be used to train ELMs, a type of Neural Networks. Currently supports a single hidden layer and regression tasks.

References:

Basic usage

use elm::{ELM, Epsilon};
use elm::activation_functions::ActivationFunction;

let mut elm = ELM::new(2, 4, 2, ActivationFunction::LeakyReLU, Epsilon::Default);
let inputs: Vec<Vec<f64>> = vec![vec![1.0, 0.0], vec![1.0, 0.0]];
let targets: Vec<Vec<f64>> = vec![vec![1.0, 1.0], vec![1.0, 1.5]];
elm.train(&inputs, &targets);

let new_inputs: Vec<Vec<f64>> = vec![vec![1.0, 4.0], vec![1.3, 0.6]];
let prediction = elm.predict(&new_inputs);

Activation functions

ELU

LeakyReLU

Linear

ReLU

Sigmoidal

Step

TanH

Road map

  • Export module: to save and load previously trained models
Commit count: 33

cargo fmt