* * @param input * @returns {*}
(input)
| 190 | * @returns {*} |
| 191 | */ |
| 192 | run(input) { |
| 193 | if (!this.isRunnable) return null; |
| 194 | if (this.inputLookup) { |
| 195 | input = lookup.toArray(this.inputLookup, input); |
| 196 | } |
| 197 | |
| 198 | let output = [...this.runInput(input)]; |
| 199 | |
| 200 | if (this.outputLookup) { |
| 201 | output = lookup.toHash(this.outputLookup, output); |
| 202 | } |
| 203 | return output; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * trains via sigmoid |
no test coverage detected