@AndresN1 found a bug in NeuralNet(NetworkType netType, ICollection<uint> layers)
where I was accessing the layers
ICollection
before the first element by using its IEnumerator
. The MSFT docs say that an IEnumerator
starts before the first element in the collection and the preferred method of using an IEnumerator
is with the foreach
statement. So, I changed all my ICollection
iteration to use foreach
.
Upgrade to v0.1.7 if you use the NeuralNet(NetworkType netType, ICollection<uint> layers)
constructor. If you don't use that constructor you can safely keep using earlier versions.