help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with newff() if more that 2 layers


From: Stefan Neumann
Subject: Problem with newff() if more that 2 layers
Date: Sat, 3 Apr 2010 00:09:58 +0200


Hi all,

a 2-layer nnet can be defined, but 3 layers produces an error. See example below. Any hints on what I missed?

The problem can be "fixed" by modifying line 110 of newff.m like this :  
original: net.IW{2:nLayers,1} = [];
"fixed":    net.IW{2:2,1} = [];

Somehow this doesn't seem right ?

Is this a question for the octave-forge-list?

THX
Stefan

--- script ---
RANGE =

          -4           4
          -4           4
          -4           4
          -4           4

# 2-layer is OK:
octave.exe:24> net = newff(RANGE , [3 1] , {"tansig" , "tansig"} ) ;

# 3-layers = Error
octave.exe:25> net = newff(RANGE , [3 3 1] , {"tansig" , "tansig" , "tansig"} ) ;
error: invalid assignment to cs-list outside multiple assignment.
error: assignment to cell array failed
error: assignment to structure element failed
error: assignment failed, or no method for `struct = null_matrix'
error: called from:
error:   C:\octave\3.2.4_gcc-4.4.0\share\octave\packages\nnet-0.1.10\newff.m at line 110, column 22



reply via email to

[Prev in Thread] Current Thread [Next in Thread]