harthur/brain — pull request #23 by josher19 (2013-03-23 23:27:59+00:00)
Title: Handle cloned neural networks with a zero "0" in the output

Use boolean to indicate if inputLookup or outputLookup are necessary when saving to/fromJSON.

Avoids bug when training for output:{"0":1} gets interpreted as an Array when using fromJSON(net.toJSON())

Fixes https://github.com/harthur/brain/issues/22