Skip to content
Neural Network in Perl 6.
Perl 6
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit May 18, 2019
.travis.yml Add contributing guidelines Jun 6, 2019
LICENSE Initial commit May 18, 2019
META6.json Add META6.json for inclusion in the ecosystem Jun 6, 2019 Change reference to Perl6 in README to Raku. Oct 11, 2019 Add note of factory methods to TODO 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.