Chris Spencer
2007-02-02 16:44:17 UTC
All the examples I've seen for training a FANN network use
train_on_file(), which seems somewhat awkward to me. In my app I
generate a lot of training sets dynamically. How can I give this data
directly to FANN instead of first writing it to a file? I see a
fann_train_on_data() but I can't find any examples of it's use,
particularly through pyfann.
I've also heavily used Pyrobot's Conx module, which let's you train or
propagate a network by simply saying something like:
net.step(fruitType='apple', fruitAge='new', color='red')
where separate input layers have been mapped to the 'fruitType' and
'fruitAge' labels, the output layer has been labeled 'color', and the
strings 'apple', 'new', and 'red' have been mapped to lists of numeric
inputs like [1,0,0]. Does FANN have any features similar to this?
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
train_on_file(), which seems somewhat awkward to me. In my app I
generate a lot of training sets dynamically. How can I give this data
directly to FANN instead of first writing it to a file? I see a
fann_train_on_data() but I can't find any examples of it's use,
particularly through pyfann.
I've also heavily used Pyrobot's Conx module, which let's you train or
propagate a network by simply saying something like:
net.step(fruitType='apple', fruitAge='new', color='red')
where separate input layers have been mapped to the 'fruitType' and
'fruitAge' labels, the output layer has been labeled 'color', and the
strings 'apple', 'new', and 'red' have been mapped to lists of numeric
inputs like [1,0,0]. Does FANN have any features similar to this?
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