A neural network model that can approximate any non-linear function by using the random search algorithm for the optimization of the loss function.

Overview

random_search

A neural network model that can approximate any non-linear function by using the random search algorithm for the optimization of the loss function.

Important

If you are coming from the article on Medium, keep in mind that the code is still partially incomplete and, most importantly, not fully documented, but you can figure things out.

Experiments

experiments target_function S networks epochs layers_sizes STEP_SIZE raw mean loss mean loss %
5 sin(x) 300 16 25_000 32; 3 1e-4 0.0022145095302255496 0.221%
5 sin(x) 300 16 25_000 8; 10 1e-4 0.5271807633104308 52.718%
5 sin(x) 300 16 25_000 16; 5 1e-5 0.5271807632693248 52.718%
5 sin(x) 300 16 25_000 16; 4 1e-4 0.06721093900301409 6.721%
5 sin(x) 300 16 25_000 16; 3 1e-5 0.52699025347444 52.699%
5 sin(x) 300 128 25_000 32; 3 1e-4 0.00012897642800016362 0.013%
5 sin(x) 300 32 25_000 32; 4 1e-4 0.0009437770169172481 0.094%
5 x^3 - 2x^2 - 6x 300 32 25_000 32; 4 1e-4 1390.5025496471226 139050.255%
5 sin(x) 300 128 25_000 8; 6 1e-7 0.5271807632690662 52.718%
5 cos(x) 300 32 25_000 32; 3 1e-4 0.006531106146449706 0.653%
You might also like...
n2 is a library implementation of a feedforward, backpropagation artificial neural network.

n2 is a library implementation of a feedforward, backpropagation artificial neural network. Usage Add the following to the [dependencies] section o

A light wheight Neural Network library with a focus on ease of use and speed.

Smarty Pants This goal of this library is to: Produce NeuralNetworks that will always give the same result when given the same input. Provide methods

A gpu accelerated (optional) neural network Rust crate.

Intricate A GPU accelerated library that creates/trains/runs neural networks in pure safe Rust code. Architechture overview Intricate has a layout ver

Neural network implementations from scratch in Rust.

Neural Network from Scratch Neural network implementations from scratch in Rust. Setup & Run Dataset used is mnist. Download the 4 archives and extrac

Build neural network models in Cairo 1.0

Explore ML in Cairo 1.0 Build neural network models in Cairo 1.0 to perform inference. The calculations are performed using i33 values, and the outcom

A fun, hackable, GPU-accelerated, neural network library in Rust, written by an idiot

Tensorken: A Fun, Hackable, GPU-Accelerated, Neural Network library in Rust, Written by an Idiot (work in progress) Understanding deep learning from t

An experimental Neural Network trainer/visualizer in Rust
An experimental Neural Network trainer/visualizer in Rust

DeepRender An experimental Neural Network trainer/visualizer in Rust Try it on your browser! https://msakuta.github.io/DeepRender/ Training on a funct

The CBNF neural network header format.

cbnf The CBNF neural network header format. What is CBNF? CBNF is a neural network header format for use with efficiently updatable neural networks fo

WebAssembly component model implementation for any backend.

wasm_component_layer wasm_component_layer is a runtime agnostic implementation of the WebAssembly component model. It supports loading and linking WAS

Owner
ph04
I make bad codes, and I share them on GitHub, if you are interested in them, well you are welcome.
ph04
Rust implementation of real-coded GA for solving optimization problems and training of neural networks

revonet Rust implementation of real-coded genetic algorithm for solving optimization problems and training of neural networks. The latter is also know

Yury Tsoy 19 Aug 11, 2022
HNSW ANN from the paper "Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs"

hnsw Hierarchical Navigable Small World Graph for fast ANN search Enable the serde feature to serialize and deserialize HNSW. Tips A good default for

Rust Computer Vision 93 Dec 30, 2022
Graph-based Approximate Nearest Neighbor Search

granne* granne (graph-based retrieval of approximate nearest neighbors) is a Rust library for approximate nearest neighbor search based on Hierarchica

null 283 Dec 21, 2022
SelfOrgMap 5 Nov 4, 2020
A neural network crate

RustNN An easy to use neural network library written in Rust. Crate Documentation Description RustNN is a feedforward neural network library. The libr

Jack Montgomery 316 Dec 29, 2022
Simple neural network library for classification written in Rust.

Cogent A note I continue working on GPU stuff, I've made some interesting things there, but ultimately it made me realise this is far too monumental a

Jonathan Woollett-Light 41 Dec 25, 2022
Rust wrapper for the Fast Artificial Neural Network library

fann-rs Rust wrapper for the Fast Artificial Neural Network (FANN) library. This crate provides a safe interface to FANN on top of the low-level bindi

Andreas Fackler 12 Jul 17, 2022
A neural network, and tensor dynamic automatic differentiation implementation for Rust.

Corgi A neural network, and tensor dynamic automatic differentiation implementation for Rust. BLAS The BLAS feature can be enabled, and requires CBLAS

Patrick Song 20 Nov 7, 2022
Simple Neural Network on rust

Simple Artificial Neural Network A crate that implements simple usage of dense neural networks. Instalation Add this to your dependencies on Cargo.tom

null 6 Jul 1, 2022
Machine learning Neural Network in Rust

vinyana vinyana - stands for mind in pali language. Goal To implement a simple Neural Network Library in order to understand the maths behind it. This

Alexandru Olaru 3 Dec 26, 2022