Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feedforward network not learning #5

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 12 comments
Closed

feedforward network not learning #5

GoogleCodeExporter opened this issue Mar 16, 2015 · 12 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. training nff
2. large input --42 input neurons floaing point vales as inputs
3. out put (0,0,0,1)  ,(0,0,1,0),(0,1,0,0),(1,0,0,0)

What is the expected output? What do you see instead?
   decrease in error but constant error seen

What version of the product are you using? On what operating system?
   most recent version on my fedora 17(linux 3.7)

Please provide any additional information below.

This was to recognize handgesture where the inputs are x,y,z acceleration 
values and 4 patterns are the possible outputs

Original issue reported on code.google.com by sarath.sp06 on 10 Mar 2013 at 5:56

Attachments:

@GoogleCodeExporter
Copy link
Author

I seen only main(), and understand that you need scalable input and output 
parameters for range [-1, 1]. For example:

inp = inp / 10
tar = tar / 40
error=net.train(inp, tar, show=50, goal=0.0001)

Default output activation function may generate output range [-1, 1].
I also chenge goal of training for get better result

Original comment by zue...@gmail.com on 11 Mar 2013 at 3:31

@GoogleCodeExporter
Copy link
Author

please do check the train function..
my input data are accelerometer data and target is 4 nodes with 3 zeros and
one 1 indicating the pattern

Original comment by sarath.sp06 on 11 Mar 2013 at 4:26

@GoogleCodeExporter
Copy link
Author

I need train samples for check it

Original comment by zue...@gmail.com on 12 Mar 2013 at 8:11

@GoogleCodeExporter
Copy link
Author

sure here is the input and output[target]

Original comment by sarath.sp06 on 13 Mar 2013 at 10:24

Attachments:

@GoogleCodeExporter
Copy link
Author

1) You file in difficult format
2) Arrays have a different lenght (input 395, target 87). I cut input array
3) Output SSE error of train range in [15; 5]. My best result 1.0, I think it 
is norm (see train_result.png)

Original comment by zue...@gmail.com on 13 Mar 2013 at 5:51

Attachments:

@GoogleCodeExporter
Copy link
Author

Thank you let me is itwould work for me...Can you please let me know what 
should be the net , training fn etc to be used for this..

Original comment by sarath.sp06 on 14 Mar 2013 at 3:10

@GoogleCodeExporter
Copy link
Author

Epoch: 10; Error: 40.4550766464;
Epoch: 20; Error: 37.7631905921;
Epoch: 30; Error: 35.7498408171;
Epoch: 40; Error: 34.8640337229;
Epoch: 50; Error: 34.3089574896;
Epoch: 60; Error: 33.3786583596;
Epoch: 70; Error: 33.3756710823;
Epoch: 80; Error: 33.3753713557;
Epoch: 90; Error: 33.3730166875;




this is the output i got as i run your code in my fedora with the same
files as you uploaded

Original comment by sarath.sp06 on 14 Mar 2013 at 4:31

@GoogleCodeExporter
Copy link
Author

And? Train algorithm find local minimum, it is normally. Run script again

Original comment by zue...@gmail.com on 15 Mar 2013 at 7:04

@GoogleCodeExporter
Copy link
Author

got it but am now facing another problem that is i can not load my net
using nl.net error is
File "./pro.py", line 45, in <module>
    main_()
  File "./pro.py", line 35, in main_
    gesture=simulate(data14);
  File "/home/sarath/gesture/my_part/ann.py", line 40, in simulate
    net=get_net()
  File "/home/sarath/gesture/my_part/t_sim.py", line 13, in main
    net=nl.load('net.net')
  File
"/usr/lib/python2.7/site-packages/neurolab-0.2.0-py2.7.egg/neurolab/tool.py",
line 54, in load
    with open(fname, 'r') as file:



IOError: [Errno 2] No such file or directory: 'net.net'

but when i run script in an another folder with same function its working
fine am here by uploading the code ,

the problem is in file ann.py function simulate0

Original comment by sarath.sp06 on 17 Mar 2013 at 4:46

@GoogleCodeExporter
Copy link
Author

>>>nl.load('net.net') 
set absolute path to 'net.net' file


Original comment by zue...@gmail.com on 19 Mar 2013 at 8:19

@GoogleCodeExporter
Copy link
Author

Original comment by zue...@gmail.com on 15 Apr 2013 at 6:24

  • Changed state: Done

@GoogleCodeExporter
Copy link
Author

yeah did it got it working thanks,i just completed my project work 

Original comment by sarath.sp06 on 15 Apr 2013 at 1:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant