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: 2007/08/17 13:10:57 $
00007   Version:   $Revision: 1.2 $
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 TTargetVector>
00038 class QuickPropLearningRule : public LearningFunctionBase<LayerType, TTargetVector>
00039 {
00040 public:
00041 
00042   typedef QuickPropLearningRule Self;
00043   typedef LearningFunctionBase<LayerType, TTargetVector> 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   virtual void Learn(LayerType* layer, ValueType learningrate);
00055   virtual void Learn(LayerType* layer, TTargetVector errors, ValueType learningrate);
00056 
00057   itkSetMacro(Max_Growth_Factor, ValueType);
00058   itkGetConstReferenceMacro(Max_Growth_Factor,ValueType);
00059 
00060   itkSetMacro(Decay, ValueType);
00061   itkGetConstReferenceMacro(Decay,ValueType);
00062 
00063 protected:
00064   QuickPropLearningRule();
00065   virtual ~QuickPropLearningRule(){};
00066 
00067   ValueType m_Momentum;
00068   ValueType m_Max_Growth_Factor;
00069   ValueType m_Decay;
00070   ValueType m_Threshold;
00071   ValueType m_Epsilon;
00072   ValueType m_SigmoidPrimeOffset;
00073   ValueType m_SplitEpsilon;
00074 
00076   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00077 };
00078 
00079 } // end namespace Statistics
00080 } // end namespace itk
00081 
00082 #ifndef ITK_MANUAL_INSTANTIATION
00083   #include "itkQuickPropLearningRule.txx"
00084 #endif
00085 
00086 #endif
00087 

Generated at Tue Jul 29 21:54:31 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000