From: <gio...@un...> - 2012-10-21 14:15:41
|
Hi! there is a difference between matlab's minmax, and octave nnet pkg's min_max. In matlab: minmax([1 2 3 4 3 4 5 6 4 3 4 5]) gives ans = 1 6 In octave with nnet: min_max([1 2 3 4 3 4 5 6 4 3 4 5]) gives error: Argument must be a matrix. Octave does not like the input image to be a single line. Best regards! Ciao Giorgio |
From: Jordi G. H. <jo...@oc...> - 2012-10-22 12:46:15
|
On 21 October 2012 10:15, <gio...@un...> wrote: > there is a difference between matlab's minmax, and octave nnet pkg's min_max. The nnet package is severely bitrotten. Can you maintain it? - Jordi G. H. |
From: Carnë D. <car...@gm...> - 2012-10-22 14:47:22
|
On 21 October 2012 15:15, <gio...@un...> wrote: > Hi! > there is a difference between matlab's minmax, and octave nnet pkg's min_max. > > In matlab: > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) > gives > ans = > 1 6 > > In octave with nnet: > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) > gives > error: Argument must be a matrix. > > Octave does not like the input image to be a single line. > > Best regards! > Ciao > Giorgio Hi Giorgio I'm sending this e-mail to the package maintainer, Michael Schmid, but its last release was almost 2 years ago. Could you please report the bug at https://sourceforge.net/p/octave/bugs/ And of course, if you are able to attach a patch too that would be great. I just tok a look at its source and should not be too difficult. And to create a patch (against the dev version), the following command will do it: svn diff > ~/bugfix.diff Carnë |
From: Carnë D. <car...@gm...> - 2012-11-08 01:08:37
|
On 21 October 2012 15:15, <gio...@un...> wrote: > Hi! > there is a difference between matlab's minmax, and octave nnet pkg's min_max. > > In matlab: > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) > gives > ans = > 1 6 > > In octave with nnet: > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) > gives > error: Argument must be a matrix. > > Octave does not like the input image to be a single line. > > Best regards! > Ciao > Giorgio Hi Giorgio could you please tell me what matlab's minmax returns in the following cases? minmax (1) minmax ([i 2; 3 4]) minmax (rand (2,2,2)) minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]}) minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2] [9 7 3]}) minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3; 8 0 2]}) I would expect that some, maybe all, will fail but would like to be sure to fix this. Carnë |
From: Salva A. <js...@gm...> - 2012-11-08 01:52:52
|
Hi, I recently ran into these troubles too. It's nice if this can get fixed. And unless some particular reason I may not know, I would suggest to use the same name as in matlab (minmax instead of, or in addition to min_max) so code is consistent. I also checked what you asked in matlab r2012b: >> minmax (1) ans = 1 1 >> minmax ([i 2; 3 4]) Error using minmax (line 27) Data is complex. >> minmax (rand (2,2,2)) Error using minmax (line 27) Data is not two-dimensional. >> minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]}) Error using minmax (line 27) Data{1,2} and Data{1,1} have different numbers of columns. >> minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2] [9 7 3]}) Error using minmax (line 27) Data{2,2} and Data{1,1} have different numbers of columns. >> minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3; 8 0 2]}) Error using minmax (line 27) Data{1,2} and Data{1,1} have different numbers of columns. Thanks, Salva El Dijous, 8 de novembre de 2012, a les 01:08:09, Carnë Draug va escriure: > minmax (1) > minmax ([i 2; 3 4]) > minmax (rand (2,2,2)) > minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]}) > minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2] [9 7 3]}) > minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3; 8 0 2]}) |
From: Carnë D. <car...@gm...> - 2012-11-08 02:19:35
|
On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: >>> minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]}) >Error using minmax (line 27) >Data{1,2} and Data{1,1} have different numbers of columns. This is weird. This an example taken from Matlab's own documentation http://www.mathworks.co.uk/help/nnet/ref/minmax.html It should have not failed. Could you tell me what does the following returns then? minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2; 9 7] [12 5; 13 11]}) minmax ({[0 1; -1 -2] [2 3; 8 0; 85 75]; [1 -2; 9 7] [12 5; 13 11]}) minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0]; [1 -2; 9 7; 21 23] [12 5; 13 11]}) minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 11]}) Carnë |
From: Salva A. <js...@gm...> - 2012-11-08 02:23:55
|
Yes, it seems they have a bug in their own code or that the example is just wrong: >> P = {[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]}; >> pr = minmax(P) Error using minmax (line 27) Data{1,2} and Data{1,1} have different numbers of columns. >> minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2; 9 7] [12 5; 13 11]}) ans = [2x2 double] [2x2 double] >> minmax ({[0 1; -1 -2] [2 3; 8 0; 85 75]; [1 -2; 9 7] [12 5; 13 11]}) Error using minmax (line 27) Data{1,2} and Data{1,1} have different numbers of rows. >> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0]; [1 -2; 9 7; 21 23] [12 5; 13 11]}) Error using minmax (line 27) Data{1,2} and Data{1,1} have different numbers of rows. >> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 11]}) ans = [3x2 double] [2x2 double] Salva El Dijous, 8 de novembre de 2012, a les 02:19:06, Carnë Draug va escriure: > On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: > >>> minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]}) > > > >Error using minmax (line 27) > >Data{1,2} and Data{1,1} have different numbers of columns. > > This is weird. This an example taken from Matlab's own documentation > > http://www.mathworks.co.uk/help/nnet/ref/minmax.html > > It should have not failed. Could you tell me what does the following > returns then? > > minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2; 9 7] [12 5; 13 11]}) > minmax ({[0 1; -1 -2] [2 3; 8 0; 85 75]; [1 -2; 9 7] [12 5; 13 11]}) > minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0]; [1 -2; 9 7; 21 23] [12 5; 13 11]}) > minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 11]}) > > Carnë |
From: Carnë D. <car...@gm...> - 2012-11-08 02:39:33
|
On 8 November 2012 02:23, Salva Ardid <js...@gm...> wrote: >>> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 11]}) > > ans = > > [3x2 double] > [2x2 double] Could you tell me what this values are exactly? It's not clear to me from their documentation what they are computing. Carnë |
From: Salva A. <js...@gm...> - 2012-11-08 03:26:01
|
Sure! >> x=minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 11]}) x = [3x2 double] [2x2 double] >> x{1} ans = 0 3 -2 8 21 56 >> x{2} ans = -2 12 7 13 Salva El Dijous, 8 de novembre de 2012, a les 02:39:06, Carnë Draug va escriure: > On 8 November 2012 02:23, Salva Ardid <js...@gm...> wrote: > >>> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 > >>> 11]}) > > > > ans = > > > > [3x2 double] > > [2x2 double] > > Could you tell me what this values are exactly? It's not clear to me > from their documentation what they are computing. > > Carnë |
From: Carnë D. <car...@gm...> - 2012-11-08 11:46:47
|
On 21 October 2012 15:15, <gio...@un...> wrote: > Hi! > there is a difference between matlab's minmax, and octave nnet pkg's min_max. > > In matlab: > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) > gives > ans = > 1 6 > > In octave with nnet: > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) > gives > error: Argument must be a matrix. > > Octave does not like the input image to be a single line. On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: > I recently ran into these troubles too. Hi Giorgio and Salva please give the following new version function a try https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/nnet/inst/minmax.m Carnë Draug |
From: Giorgio De N. <gio...@un...> - 2012-11-08 14:59:46
|
Hi! Sorry, really sorry for not being present when I might have been useful... I could not even reply to your emails when needed. Sorry again. I'll check the new version, thank you Carnë! Regards Giorgio On 08/11/2012 12.46, Carnë Draug wrote: > Hi Giorgio and Salva please give the following new version function a > try > https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/nnet/inst/minmax.m > Carnë Draug -- Dr. Giorgio De Nunzio Dipart. di Matematica e Fisica "Ennio De Giorgi" Universita' del Salento Lecce (Italy) gio...@un... tel +39 0832 297084 fax +39 0832 297100 mobile +39 320 3829845 |
From: Salva A. <js...@gm...> - 2012-11-08 12:57:53
|
Hi Carnë, The link seems to be broken Salva El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure: > On 21 October 2012 15:15, <gio...@un...> wrote: > > Hi! > > there is a difference between matlab's minmax, and octave nnet pkg's > > min_max. > > > > In matlab: > > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) > > gives > > ans = > > > > 1 6 > > > > In octave with nnet: > > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) > > gives > > error: Argument must be a matrix. > > > > Octave does not like the input image to be a single line. > > On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: > > I recently ran into these troubles too. > > Hi Giorgio and Salva > > please give the following new version function a try > https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/nne > t/inst/minmax.m > > Carnë Draug |
From: Carnë D. <car...@gm...> - 2012-11-08 13:09:35
|
Please avoid top posting and reply at the bottom of the e-mail On 8 November 2012 12:57, Salva Ardid <js...@gm...> wrote: > El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure: > >> On 21 October 2012 15:15, <gio...@un...> wrote: >> > Hi! >> > there is a difference between matlab's minmax, and octave nnet pkg's >> > min_max. >> > >> > In matlab: >> > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) >> > gives >> > ans = >> > >> > 1 6 >> > >> > In octave with nnet: >> > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) >> > gives >> > error: Argument must be a matrix. >> > >> > Octave does not like the input image to be a single line. >> >> On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: >> > I recently ran into these troubles too. >> >> Hi Giorgio and Salva >> >> please give the following new version function a try >> https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/nne >> t/inst/minmax.m >> > Hi Carnë, > > The link seems to be broken > > Salva Seems to be one more problem of the new SF code viewer. It also appears to be 2 revisions behind. Use SVN to get it svn cat -r 11403 https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minmax.m or wait some time until sourceforge updates it. Carnë |
From: Salva A. <js...@gm...> - 2012-11-08 13:21:56
|
> Please avoid top posting and reply at the bottom of the e-mail > > On 8 November 2012 12:57, Salva Ardid <js...@gm...> wrote: > > El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure: > >> On 21 October 2012 15:15, <gio...@un...> wrote: > >> > Hi! > >> > there is a difference between matlab's minmax, and octave nnet pkg's > >> > min_max. > >> > > >> > In matlab: > >> > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) > >> > gives > >> > ans = > >> > > >> > 1 6 > >> > > >> > In octave with nnet: > >> > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) > >> > gives > >> > error: Argument must be a matrix. > >> > > >> > Octave does not like the input image to be a single line. > >> > >> On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: > >> > I recently ran into these troubles too. > >> > >> Hi Giorgio and Salva > >> > >> please give the following new version function a try > >> https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/ > >> nne t/inst/minmax.m > > > > Hi Carnë, > > > > The link seems to be broken > > > > Salva > > Seems to be one more problem of the new SF code viewer. It also > appears to be 2 revisions behind. Use SVN to get it > > svn cat -r 11403 > https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minm > ax.m > > or wait some time until sourceforge updates it. > > Carnë Sorry, it's the way I use to work, I'll try to keep this in mind for next e- mails though... |
From: Salva A. <js...@gm...> - 2012-11-08 16:10:19
|
El Dijous, 8 de novembre de 2012, a les 13:09:03, Carnë Draug va escriure: > Please avoid top posting and reply at the bottom of the e-mail > > On 8 November 2012 12:57, Salva Ardid <js...@gm...> wrote: > > El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure: > >> On 21 October 2012 15:15, <gio...@un...> wrote: > >> > Hi! > >> > there is a difference between matlab's minmax, and octave nnet pkg's > >> > min_max. > >> > > >> > In matlab: > >> > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) > >> > gives > >> > ans = > >> > > >> > 1 6 > >> > > >> > In octave with nnet: > >> > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) > >> > gives > >> > error: Argument must be a matrix. > >> > > >> > Octave does not like the input image to be a single line. > >> > >> On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: > >> > I recently ran into these troubles too. > >> > >> Hi Giorgio and Salva > >> > >> please give the following new version function a try > >> https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/ > >> nne t/inst/minmax.m > > > > Hi Carnë, > > > > The link seems to be broken > > > > Salva > > Seems to be one more problem of the new SF code viewer. It also > appears to be 2 revisions behind. Use SVN to get it > > svn cat -r 11403 > https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minm > ax.m > > or wait some time until sourceforge updates it. > > Carnë I've just checked one of my scripts and works nicely! |
From: Carnë D. <car...@gm...> - 2012-11-09 02:41:26
|
On 8 November 2012 16:10, Salva Ardid <js...@gm...> wrote: > El Dijous, 8 de novembre de 2012, a les 13:09:03, Carnë Draug va escriure: > >> Please avoid top posting and reply at the bottom of the e-mail >> >> On 8 November 2012 12:57, Salva Ardid <js...@gm...> wrote: >> > El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure: >> >> On 21 October 2012 15:15, <gio...@un...> wrote: >> >> > Hi! >> >> > there is a difference between matlab's minmax, and octave nnet pkg's >> >> > min_max. >> >> > >> >> > In matlab: >> >> > minmax([1 2 3 4 3 4 5 6 4 3 4 5]) >> >> > gives >> >> > ans = >> >> > >> >> > 1 6 >> >> > >> >> > In octave with nnet: >> >> > min_max([1 2 3 4 3 4 5 6 4 3 4 5]) >> >> > gives >> >> > error: Argument must be a matrix. >> >> > >> >> > Octave does not like the input image to be a single line. >> >> >> >> On 8 November 2012 01:52, Salva Ardid <js...@gm...> wrote: >> >> > I recently ran into these troubles too. >> >> >> >> Hi Giorgio and Salva >> >> >> >> please give the following new version function a try >> >> https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/ >> >> nne t/inst/minmax.m >> > >> > Hi Carnë, >> > >> > The link seems to be broken >> > >> > Salva >> >> Seems to be one more problem of the new SF code viewer. It also >> appears to be 2 revisions behind. Use SVN to get it >> >> svn cat -r 11403 >> https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minm >> ax.m >> >> or wait some time until sourceforge updates it. >> >> Carnë > > I've just checked one of my scripts and works nicely! That's good. I have made a couple of simple changes to the package now but have no idea of its actual state as I can't really test it. My guess would be that it's a bit broken since it's quite old and Octave has changed a lot in the mean time. Please test it, and if possible, send us patches. Carnë |