Giter VIP home page Giter VIP logo

neurlang's Introduction

Neurlang

A library for constructing Neural Networks in Elixir or Erlang.

Neurlang is essentially a port of the DXNN2 core neural network elements.

However, unlike DXNN2, Neurlang:

  • Is written in Elixir
  • Is easily usable in non-TWEANN's (Topology WEight Adapting Neural Networks).

The goal is that any neural network should be able to be built using the components available in Neurlang. If you want to build a neural network, and Neurlang is missing something you need, please file an issue with a feature request.

Status: Neurlang is still in the process of being built, and is therefore is about as stable as the price of bitcoins

Using Neurlang

# Create nodes
neuron = Neuron.start_node(bias: 10, activation_function: function(identity/1))
sensor = Sensor.start_node(sync_function: fake_sensor_data([[1, 1, 1, 1, 1]]))
actuator = Actuator.start_node([])

# Wire up network
connect(from: sensor, to: neuron, weights: [20, 20, 20, 20, 20])
connect(from: neuron, to: actuator)

# tap into actuator for testing purposes
NodeProcess.add_outbound_connection(actuator, self())

# feed input into sensor
NodeProcess.sync(sensor)

# verify actuator output
assert actuator_next_output() == 110

Architecture

Neurlang provides three types of neural elements, all of which are gen_server processes which can link up with each other and exchange messages.

  • Sensor

  • Neuron

  • Actuator

Related Work

DXNN2 - Pure Erlang TWEANN (Topology WEight Adapting Neural Network). Neurlang is essentially a port of the DXNN2 core neural network elements.

Related Publications

Handbook of Neuroevolution Through Erlang by Gene Sher.

How to run dialyzer

One time:

dialyzer -DDIALYZER --output_plt .depsolver.plt --build_plt --apps erts kernel stdlib crypto public_key $ELIXIR/lib/elixir/ebin $ELIXIR/lib/ex_unit/ebin

where $ELIXIR points to your elixir install dir, eg, /usr/local/lib/elixir

Each time:

dialyzer --quiet --no_check_plt --plt .depsolver.plt -Wunmatched_returns -Werror_handling -Wrace_conditions ebin

or

dialyzer --quiet --no_check_plt --plt .depsolver.plt -Wunderspecs -Wunmatched_returns -Werror_handling -Wrace_conditions ebin

neurlang's People

Contributors

keynuker avatar richmorin avatar tleyden avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.