(****************************************************************** [LibNN - Neural Networks Library] http://libnn.org Copyright (C) 2002 - 2003 LAGACHERIE Matthieu RICORDEAU Olivier This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. SPECIAL NOTE (the beerware clause): This software is free software. However, it also falls under the beerware special category. That is, if you find this software useful, or use it every day, or want to grant us for our modest contribution to the free software community, feel free to send us a beer from one of your local brewery. Our preference goes to Belgium abbey beers and irish stout (Guiness for strength!), but we like to try new stuffs. Authors: LAGACHERIE Matthieu Paper mail : 7 rue Delescluzes 94280 LE KREMLIN BICETRE, FRANCE E-mail : matthieu@libnn.org RICORDEAU Olivier Paper mail : 69 avenue d'Italie 75013 PARIS, FRANCE E-mail : olivier@libnn.org *****************************************************************) (** The DefaultVisitor module @author Matthieu Lagacherie @author Olivier Ricordeau @since 09/04/2003 All the visitors in LibNN inherit from that class, and use the `visit' method to do their job. *) open Corpus open DefaultVisitor open Pattern class virtual nn : object ('a) (** A string containing the dynamic type of the nn. This string has to be filled by the derived classes' constructors! *) val mutable _networkType : string (** The learning step. *) val mutable _step : float (** The corpus, containing all the learning examples. *) val mutable _corpus : corpus (** The generic accept method. *) method accept : ('a) defaultVisitor -> unit (** A get*. @return The object's dynamic type. *) method getNetworkType : string (** Adds a pattern to the neural network's pattern. *) method addPattern : pattern -> unit (** Returns the corpus. @return The corpus. *) method getCorpus : corpus (** A get*. @return The current learning position of the corpus. *) method getLearnPos : (int * int) (** A get*. @return The corpus' input learn vector. *) method getInputLearnVector : float array (** A get*. @return The corpus' output learn vector. *) method getOutputLearnVector : float array (** A get*. @return The learning step *) method getStep : float end