Page not found
63 | 64 |Sorry, but the page you were trying to get to, does not exist. You 65 | may want to try searching this site using the sidebar or using our 66 | API Reference page to find what 67 | you were looking for.
68 | 69 | 81 |├── test ├── test_helper.exs └── neural_net │ ├── connection_test.exs │ ├── neuron_test.exs │ └── layer_test.exs ├── .gitignore ├── mix.lock ├── doc ├── fonts │ ├── icomoon.eot │ ├── icomoon.ttf │ ├── icomoon.woff │ └── icomoon.svg ├── index.html ├── dist │ ├── sidebar_items.js │ ├── app.css │ └── app.js ├── 404.html ├── extra-api-reference.html ├── Mix.Tasks.Neural.html ├── NeuralNet.Connection.html └── NeuralNet.Neuron.html ├── README.md ├── lib ├── neural_net │ ├── connection.ex │ ├── neuron.ex │ └── layer.ex └── mix │ └── tasks │ └── neural.ex ├── mix.exs └── config └── config.exs /test/test_helper.exs: -------------------------------------------------------------------------------- 1 | ExUnit.start() 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /_build 2 | /cover 3 | /deps 4 | erl_crash.dump 5 | *.ez 6 | -------------------------------------------------------------------------------- /mix.lock: -------------------------------------------------------------------------------- 1 | %{"earmark": {:hex, :earmark, "0.1.19"}, 2 | "ex_doc": {:hex, :ex_doc, "0.10.0"}} 3 | -------------------------------------------------------------------------------- /doc/fonts/icomoon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kblake/neural-net-elixir-v1/HEAD/doc/fonts/icomoon.eot -------------------------------------------------------------------------------- /doc/fonts/icomoon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kblake/neural-net-elixir-v1/HEAD/doc/fonts/icomoon.ttf -------------------------------------------------------------------------------- /doc/fonts/icomoon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kblake/neural-net-elixir-v1/HEAD/doc/fonts/icomoon.woff -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NeuralNet 2 | 3 | **Neuron interactions** 4 | 5 | This is a very basic foundation for a neural network. It supports neuron connections. It is a WIP. 6 | -------------------------------------------------------------------------------- /doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |Sorry, but the page you were trying to get to, does not exist. You 65 | may want to try searching this site using the sidebar or using our 66 | API Reference page to find what 67 | you were looking for.
68 | 69 | 81 |Callback implementation for c:Mix.Task.run/1.
Represent a connection used by neurons
95 |Represent a connection used by neurons
134 |iex> connection = %NeuralNet.Connection{}
135 | ...> connection.weight
136 | 0.5
137 |
138 | Active a neuron
95 |Sigmoid function. See more at: https://en.wikipedia.org/wiki/Sigmoid_function
104 |Connect two neurons
113 |Active a neuron
152 |iex> neuron = NeuralNet.Neuron.activate(%NeuralNet.Neuron{}, 1)
154 | ...> neuron.output
155 | 0.7310585786300049
156 | iex> neuron = NeuralNet.Neuron.activate(%NeuralNet.Neuron{})
158 | ...> neuron.output
159 | 0.5
160 | iex> neuron = %NeuralNet.Neuron{ incoming: [ %NeuralNet.Connection{source: %NeuralNet.Neuron{output: 6}} ] }
162 | ...> neuron = NeuralNet.Neuron.activate(neuron)
163 | ...> neuron.output
164 | 0.9525741268224334
165 |
166 | Sigmoid function. See more at: https://en.wikipedia.org/wiki/Sigmoid_function
183 |iex> NeuralNet.Neuron.activation_function(1)
185 | 0.7310585786300049
186 |
187 | Connect two neurons
204 |iex> neuronA = %NeuralNet.Neuron{ outgoing: [%NeuralNet.Connection{}] }
206 | ...> neuronB = %NeuralNet.Neuron{ incoming: [%NeuralNet.Connection{}] }
207 | ...> {:ok, neuronA, neuronB} = NeuralNet.Neuron.connect(neuronA, neuronB)
208 | ...> length(neuronA.outgoing)
209 | 2
210 | iex> length(neuronB.incoming)
211 | 2
212 |
213 |