bugGNU Octave - Bugs: bug #45754, neural net package :hardlims...

 
 

bug #45754: neural net package :hardlims function returns always an scalar

Submitted by:  Roberto Ratti <robertus85>
Submitted on:  Fri 14 Aug 2015 07:28:36 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Roberto RattiOpen/Closed: Closed
Release: otherOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 08 Oct 2015 05:59:20 PM UTC, comment #4:

Hi Roberto. It took while but I got around to do it now.

I fixed the original issue (hardlims) with:

http://hg.code.sf.net/p/octave/nnet/rev/bd0b831fcbd6

I then also fixed it for satlin and satlins with:

http://hg.code.sf.net/p/octave/nnet/rev/b98d743b7089

I ended up doing some other fixes on those functions, so take a look at http://hg.code.sf.net/p/octave/nnet

Carnë Draug <carandraug>
Project Member
Wed 26 Aug 2015 07:59:49 PM UTC, comment #3:

Hi,
i post code and attach examples use of functions.

file attached are:
variables.png
hardlims.png
satlin.png
satlins.pg

(file #34744, file #34745, file #34746, file #34747)

Roberto Ratti <robertus85>
Mon 24 Aug 2015 05:52:14 PM UTC, comment #2:

The neural net package is currently unmaintained. If you can supply a patch that fixes this with tests, I will apply it.

Carnë Draug <carandraug>
Project Member
Fri 14 Aug 2015 11:58:09 AM UTC, comment #1:

Same problem (and same solution) for functions satlin and satlins

Roberto Ratti <robertus85>
Fri 14 Aug 2015 07:28:36 AM UTC, original submission:

Good morning,
during some exercises about neurual nets functions, i found a difference of results between hardlim function and hardlims (..../packages/nnet-0.1.13).
The first one returned correctly a vector, the second one returned always a scalar.
(Actually the only difference should be that hardlims returns -1 when hardlim returns 0)

You can see, in the image attatched (octave_hardlims_orig.png).

The code of hardlims function was:

I modified that code in this:

Now it returns correctly a vector when input is a vector (attatched image octave_hardlims_modif.png).
I'm not sure that my code is the best way for the function, but i hope that it could be useful.

Thank you.
Roberto Ratti
-unavailable-

Roberto Ratti <robertus85>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #34744:  variables.png added by robertus85 (19KiB - image/png)
file #34745:  satlin.png added by robertus85 (15KiB - image/png)
file #34746:  hardlims.png added by robertus85 (12KiB - image/png)
file #34747:  satlins.png added by robertus85 (17KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by robertus85 (Submitted the item)
  • -unavailable- added by robertus85
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 08 Oct 2015 05:59:20 PM UTCcarandraugStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Release3.8.1=>other
    Wed 26 Aug 2015 07:59:49 PM UTCrobertus85Attached File-=>Added variables.png, #34744
      Attached File-=>Added satlin.png, #34745
      Attached File-=>Added hardlims.png, #34746
      Attached File-=>Added satlins.png, #34747
    Mon 24 Aug 2015 05:52:14 PM UTCcarandraugSummaryhardlims nerual nets function returns always an scalar=>neural net package :hardlims function returns always an scalar
    Fri 14 Aug 2015 07:28:37 AM UTCrobertus85Attached File-=>Added octave_hardlims_orig.png, #34642
      Attached File-=>Added octave_hardlims_modif.png, #34643
      Carbon-Copy-=>Added robertus85

    Back to the top


    Powered by Savane 3.1-cleanup1