Discussion:
Pyfann Problem Setting Network Attributes
Chris Spencer
2007-02-02 17:00:34 UTC
Permalink
I've found Pyfann's methods for setting network attributes, like
set_learning_rate() and set_learning_momentum() don't actually set
these attributes:

from pyfann import libfann

net = libfann.neural_net()

net.set_learning_rate(0.7)
assert net.get_learning_rate() == 0.7 # error

net.set_learning_momentum(1.0)
assert net.get_learning_momentum() == 1.0 # error

This is using the Pyfann in the current CVS.

Regards,
Chris

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Greg Troxel
2007-02-02 17:07:54 UTC
Permalink
See

http://acert.ir.bbn.com/viewvc/adroit/mrp/src/learning/

for a fairly complex use of the python fann interface. This is a
state-distribution protocol for mobile nodes(*) that varies parameters
and observes performance, trains a net and chooses one that gives good
results on check data, and then uses the net to choose parameters on a
future run.

* http://www.lexort.com/gallery/random-geek

Greg Troxel <gdt-2FjktZCtrC/QT0dZR+***@public.gmane.org>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Chris Spencer
2007-02-02 17:37:43 UTC
Permalink
Post by Greg Troxel
See
http://acert.ir.bbn.com/viewvc/adroit/mrp/src/learning/
for a fairly complex use of the python fann interface. This is a
state-distribution protocol for mobile nodes(*) that varies parameters
and observes performance, trains a net and chooses one that gives good
results on check data, and then uses the net to choose parameters on a
future run.
Thanks! I'm still not sure why the get_* methods aren't confirming the
set values, but that code answers a lot of my other questions.

Regards,
Chris

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Loading...