Skip to content
Neural Network in Perl 6.
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Neural Bump up version numbers Jun 6, 2019
t Add builder method for neural net May 20, 2019
.travis.yml Set up travis Jun 6, 2019 Add contributing guidelines Jun 6, 2019

Build Status


Neural Network in Raku.


use Neural::Net;
use Neural::Net::Function;

my Function $sigmoid =;

my Rat @inputs = (0.5, 1.5);
my Int $output-neurons = 1;

my Function @hidden-functions;
my Rat @hidden-neurons;

my NeuralNet $neural-net = neural-net(@inpucts, $output-neurons, @hidden-neurons,
	@hidden-functions, $output-neuron)


my Rat @outputs = $neural-net.outputs;


The Neural::Net module provides a basic implementation of a neural network that people who are interested in ML can play around with. It is not meant for serious work, more as a proof of concept, and a starting point from where more advanced projects can begin.


Tim Van den Langenbergh (

Source code located at: github. Comments and pull requests are welcome.

Copyright and license

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

You can’t perform that action at this time.