Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkQuickPropLearningRule.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuickPropLearningRule.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/02 19:17:37 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 /*
00019 The QuickPropLearningRule is the base class for all the ErrorBackPropagationLearning strategies. These
00020 include error back propagation, bp+momentum, conjugte gradient descent, quick prop. 
00021 This class specifies how the errors are backpropagated for a layer. They take a LayerBase 
00022 object as input and compute the input for the layers input weightset
00023 */
00024 
00025 #ifndef __itkQuickPropLearningRule_h
00026 #define __itkQuickPropLearningRule_h
00027 
00028 #include <iostream>
00029 #include "itkLightProcessObject.h"
00030 #include "itkLearningFunctionBase.h"
00031 
00032 namespace itk
00033 {
00034 namespace Statistics
00035 {
00036 
00037 template<class LayerType, class TOutput>
00038 class QuickPropLearningRule : public LearningFunctionBase<LayerType, TOutput>
00039 {
00040 public:
00041 
00042   typedef QuickPropLearningRule Self;
00043   typedef LearningFunctionBase<LayerType, TOutput> Superclass;
00044   typedef SmartPointer<Self> Pointer;
00045   typedef SmartPointer<const Self> ConstPointer;
00046 
00048   itkTypeMacro(QuickPropLearningRule, LearningFunctionBase);
00049 
00051   itkNewMacro(Self);
00052 
00053   typedef typename Superclass::ValueType ValueType;
00054   void Learn(LayerType* layer, ValueType learningrate);
00055 
00056   void Learn(LayerType* layer, TOutput errors, ValueType learningrate);
00057 
00058   itkSetMacro(Max_Growth_Factor, ValueType);
00059   itkGetConstReferenceMacro(Max_Growth_Factor,ValueType);
00060 
00061   itkSetMacro(Decay, ValueType);
00062   itkGetConstReferenceMacro(Decay,ValueType);
00063 
00064 protected:
00065   QuickPropLearningRule();
00066   ~QuickPropLearningRule(){};
00067 
00068   ValueType m_Momentum;
00069   ValueType m_Max_Growth_Factor;
00070   ValueType m_Decay;
00071   ValueType m_Threshold;
00072   ValueType m_Epsilon;
00073   ValueType m_SigmoidPrimeOffset;
00074   ValueType m_SplitEpsilon;
00075 
00077   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00078 };
00079 
00080 } // end namespace Statistics
00081 } // end namespace itk
00082 
00083 #ifndef ITK_MANUAL_INSTANTIATION
00084   #include "itkQuickPropLearningRule.txx"
00085 #endif
00086 
00087 #endif

Generated at Wed May 24 23:54:17 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000