I have constructed a Neural network in Matlab that uses my own custom functions as transfer functions. For example, I've coded a script file 'mexicanhat.m' implementing the Mexican hat function as the transfer function, with all the boilerplate code as necessary (copied from inbuilt 'tansig' function).
Now, whenever I issue the Matlab's view command (network/view, not the other view) as
view(net)
the resulting window is blank, and a spew of Java error messages are displayed on the console. For eg.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.toolbox.nnet.v6.diagram.nnTransfer.paint(nnTransfer.java:35)
at com.mathworks.toolbox.nnet.v6.image.nnOffsetImage.paint(nnOffsetImage.java:49)
at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50)
at com.mathworks.toolbox.nnet.v6.image.nnOffsetImage.paint(nnOffsetImage.java:49)
at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50)
some 20 lines like this.
Does anyone have experience with this? Any solutions or workarounds?
My network is quite very very complicated, and a visualization would be very helpful to me in debugging. So any help is very much appreciated.