[Haskell-beginners] Avoiding stack space overflow

Hans Georg Schaathun georg+haskell at schaathun.net
Mon Jan 26 16:45:17 UTC 2015


On Mon, Jan 26, 2015 at 09:55:03AM -0500, David McBride wrote:
> I don't think the problem is with trainNetwork, but rather epoch.  You
> might try adjusting your network datatype and sub datatypes in the manner
> of data Network = Network !Int !Int until you narrow down which piece is
> causing the problem.

It turns out that you are absolutely right.
A number of randomly inserted bang patterns got rid of the overflow.
Thanks a lot for the idea..

I feel even more clueless than I used too, but I have at least a way
to proceed.

-- 
:-- Hans Georg


More information about the Beginners mailing list