Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cgarciae/neuraljs

Neural Networks in JavaScript, inspired by PyBrain.
https://github.com/cgarciae/neuraljs

Last synced: 10 days ago
JSON representation

Neural Networks in JavaScript, inspired by PyBrain.

Awesome Lists containing this project

README

        

NeuralJS
========

Neural Networks in JavaScript, inspired by PyBrain.

### fullConnection
**Signature**

```
fullConnection :: Layer -> Layer -> Layer
```

**Expression**

```
fullConnection (la, lb) == lb
```

**Description**

`fullConnection` connects all neurons in `la` to all neurons in `lb`, and returns `lb`. More specifically, for all `Neuron` `na`
in `la.neurons`, and for all `Neuron` `nb` in `lb.neurons`, `Weight (na, nb)` belongs to `na.targets` and `nb.sources`.
This is the classical connection between layers.

**Usage**
Since `fullConnection (la, lb)` returns `lb`, this function admits for chaining
```
fullConnection(la, lb);
fullConnection(lb, lc);
```
is equivalent to
```
fullConnection (fullConnection(la, lb), lc);
```
### fullConnectTo
**Signature**

```
(Layer l) => l.fullConnectTo :: Layer -> Layer
```

**Expression**

```
la.fullConnectTo (lb) == fullConnection (la, lb) == lb
```

**Description**

Same as `fullConnection` but wrapped as a method for `Layer`s.

**Usage**
`fullConnectTo` improves the chaining capacities of `fullConnection`, given that
```
fullConnection(la, lb);
fullConnection(lb, lc);
```
is equivalent to
```
la.fullConnectTo (lb).fullConnectTo (lc);
```