Update of /cvsroot/pure-data/externals/ann/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30152/src
Modified Files: ann_mlp.c ann_td.c Log Message: added note on fann version to be used
Index: ann_mlp.c =================================================================== RCS file: /cvsroot/pure-data/externals/ann/src/ann_mlp.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ann_mlp.c 29 Dec 2006 17:39:56 -0000 1.12 --- ann_mlp.c 31 Oct 2007 10:24:27 -0000 1.13 *************** *** 1,751 **** ! /* nn : Neural Networks for PD ! by Davide Morelli - info@davidemorelli.it - http://www.davidemorelli.it ! this software is simply an interface for FANN classes ! http://fann.sourceforge.net/ ! FANN is obviously needed for compilation ! this software is licensed under the GNU General Public License ! */ ! ! /* ! hacked by Georg Holzmann for some additional methods, bug fixes, ... [...1474 lines suppressed...] ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_learnrate, gensym("learnrate"), A_FLOAT, 0); ! ! // change training and activation algorithms ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_FANN_TRAIN_INCREMENTAL, gensym("FANN_TRAIN_INCREMENTAL"), 0); ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_FANN_TRAIN_BATCH, gensym("FANN_TRAIN_BATCH"), 0); ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_FANN_TRAIN_RPROP, gensym("FANN_TRAIN_RPROP"), 0); ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_FANN_TRAIN_QUICKPROP, gensym("FANN_TRAIN_QUICKPROP"), 0); ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_activation_function_output, gensym("set_activation_function_output"),A_GIMME, 0); ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_activation_function_hidden, gensym("set_activation_function_hidden"),A_GIMME, 0); ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_activation_steepness_hidden, gensym("set_activation_steepness_hidden"), A_FLOAT, 0); ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_set_activation_steepness_output, gensym("set_activation_steepness_output"), A_FLOAT, 0); ! ! // initialization: ! class_addmethod(ann_mlp_class, (t_method)ann_mlp_randomize_weights, gensym("randomize_weights"),A_GIMME, 0); ! ! // the most important one: running the ann ! class_addlist(ann_mlp_class, (t_method)ann_mlp_manage_list); ! ! ! }
Index: ann_td.c =================================================================== RCS file: /cvsroot/pure-data/externals/ann/src/ann_td.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ann_td.c 29 Dec 2006 17:39:56 -0000 1.9 --- ann_td.c 31 Oct 2007 10:24:27 -0000 1.10 *************** *** 1,662 **** ! /* ann_td : Time Delay Neural Networks for PD ! by Davide Morelli - info@davidemorelli.it - http://www.davidemorelli.it ! this software is simply an interface for FANN classes ! http://fann.sourceforge.net/ ! FANN is obviously needed for compilation ! this software is licensed under the GNU General Public License ! */ ! #include <stdio.h> ! #include <string.h> ! #include "m_pd.h" [...1296 lines suppressed...] ! ! // change training parameters ! class_addmethod(ann_td_class, (t_method)ann_td_set_desired_error, gensym("desired_error"),A_GIMME, 0); ! class_addmethod(ann_td_class, (t_method)ann_td_set_max_iterations, gensym("max_iterations"),A_GIMME, 0); ! class_addmethod(ann_td_class, (t_method)ann_td_set_iterations_between_reports, gensym("iterations_between_reports"),A_GIMME, 0); ! ! // change training and activation algorithms ! class_addmethod(ann_td_class, (t_method)ann_td_set_FANN_TRAIN_INCREMENTAL, gensym("FANN_TRAIN_INCREMENTAL"), 0); ! class_addmethod(ann_td_class, (t_method)ann_td_set_FANN_TRAIN_BATCH, gensym("FANN_TRAIN_BATCH"), 0); ! class_addmethod(ann_td_class, (t_method)ann_td_set_FANN_TRAIN_RPROP, gensym("FANN_TRAIN_RPROP"), 0); ! class_addmethod(ann_td_class, (t_method)ann_td_set_FANN_TRAIN_QUICKPROP, gensym("FANN_TRAIN_QUICKPROP"), 0); ! class_addmethod(ann_td_class, (t_method)ann_td_set_activation_function_output, gensym("set_activation_function_output"),A_GIMME, 0); ! ! class_addmethod(ann_td_class, (t_method)ann_td_set_num_input_frames, gensym("inputs_frames"),A_DEFFLOAT, A_DEFFLOAT, 0); ! ! // the most important one: running the ann ! class_addlist(ann_td_class, (t_method)ann_td_manage_list); ! ! ! }