Rbrain

Gem Version Licence

Rbrain is a simple implimentation of how brain works. The gem includes methods to create a simple brain and execute the neural network(each neuron is an array)

Installation

Add this line to your application's Gemfile:

gem 'rbrain'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rbrain

Usage

Sample usage in program

```
require 'rbrain'
b = Rbrain.init_brain(20)
no_connections = Rbrain.make_connections(b)
while true
  accum_neuron = Rbrain.accum_rand_neuron(b, 5)
  b.each {|n| Rbrain.update_neuron(n, b)}
end
```

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Auxilus/rbrain. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Rbrain project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.