Hi - yes, I also have difficulty tracing through the very OOP-style of coding though I have only attempted it manually so far. By my count, the example model for the CIFAR10 problem creates 23 namespaces, each with three to more than twenty values, most of them scalars. Also, this style of coding appears to use globals to pass values, making it more difficult to figure out the data flow.
My de-looping change decreased the execution time by such a large amount, running hundreds of times faster, that I suspect it has to be wrong. Upon reflection, I suspect that the use of namespaces and global scalars for passing values essentially serializes the computation, so my attempt to call the "fit" function with arrays fails to run all but one of the trials. I intend to continue to work on this both because of my interest in developing my own CNN for working with photos and for working out an example of the difference between OOP and array programming. Also, J's flaky handling of namespaces in debug does not help efforts to understand this code at a high level. Regards, Devon On Mon, Apr 29, 2019 at 1:16 PM Brian Schott <[email protected]> wrote: > Devon, > > I'm not sure what I would have called my difficulty with understanding > Jon's fine jlearn system, but "de-looping" may be a good choice. To me the > difficulty involves the heavy use of locales, with which I have little > experience. This has meant that trying to trace verb calls and using debug > have been difficult for me. For example when I try to use debug for a verb > like foo__bar, the stop manager in jQt produces a paragraph of lines in the > selected verb but not a list of lines. The paragraph does not permit stop > line selection. I have not tried to use dbss to select stop lines, but > maybe that is possible. > > I wonder if the complication locales inserts has been a reason that I have > not been able to find a usable verb/adverb/conjunction cross-reference > script for J. > The jlearn system is really impressive, though. It's documentation is > excellent inside most verbs. > > > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA Quantitative Consultant ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
