Giter Club home page Giter Club logo

elixir_ne's Introduction

elixir_ne

structure

  • Demo structure: lib/demo.ex
    • a single "demo" neuron is instantiated
    • a n==1000 neurons are started, knowing their target neuron
    • these are connected to the "demo" neuron
    • a prediction is requested (artificially), by sending the "demo" neuron a message
    • this in turn requests predictions from its connections
  • Simulated voting neuron: lib/neuron.ex
    • if there are no connections, the neuron just returns a random number and sleeps a bit (delay)
    • if there are connections, the neuron tries to receive all the predictions, but within a deadline ("metabolic constraint"): deadline_ms
    • returns the maximal value received so far or -1 if none were received within a timeout
    • TODO: return the best prediction if it's above a numeric threshold
    • deadline example: {:prediction, %{delay: 142, input_count: 1000, prediction: [value: 65.30085608551246, reason: :deadline, inputs_used: 496]}}
    • all received: {:prediction, %{delay: 117, input_count: 1000, prediction: [value: 61.81215141710118, reason: :all_received, inputs_used: 1000]}
    • none received within time limits: {:prediction, %{delay: 101, input_count: 1000, prediction: [value: -1, reason: :deadline, inputs_used: 0]}}
  • written deliberately without GenServers to demonstrate actual message passing that could be mapped onto neuron signalling
  • see the build output: Build Status

ideas behind it

disclaimer

  • I'm not a professional researcher
  • this is a spare time project to play around with ideas

elixir_ne's People

Contributors

d-led avatar

Watchers

James Cloos avatar  avatar Jordan Miller 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.