ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkNeuralNetworkObject.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkNeuralNetworkObject_h
19 #define itkNeuralNetworkObject_h
20 
21 #include "itkDataObject.h"
22 #include "itkLayerBase.h"
24 
25 namespace itk
26 {
27 namespace Statistics
28 {
35 template<typename TMeasurementVector, typename TTargetVector >
37 {
38 public:
39 
44 
46 
47  typedef TMeasurementVector MeasurementVectorType;
48  typedef typename MeasurementVectorType::ValueType ValueType;
50  typedef TTargetVector TargetVectorType;
51 
53 
54  virtual NetworkOutputType GenerateOutput(TMeasurementVector samplevector)=0;
55 
56  virtual void BackwardPropagate(NetworkOutputType errors) = 0;
57  virtual void UpdateWeights(ValueType) = 0;
58 
59 protected:
60 
62  virtual ~NeuralNetworkObject();
63 
65  virtual void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
66 
68 
69 };
70 
71 } // end namespace Statistics
72 } // end namespace itk
73 
74 #ifndef ITK_MANUAL_INSTANTIATION
75 #include "itkNeuralNetworkObject.hxx"
76 #endif
77 
78 #endif
LayerBase< TMeasurementVector, TTargetVector > LayerInterfaceType
Array class with size defined at construction time.
Definition: itkArray.h:50
This is the itkLayerBase class.
Definition: itkLayerBase.h:38
virtual NetworkOutputType GenerateOutput(TMeasurementVector samplevector)=0
virtual void BackwardPropagate(NetworkOutputType errors)=0
MeasurementVectorType::ValueType ValueType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
This is the itkNeuralNetworkObject class.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for all data objects in ITK.
virtual void UpdateWeights(ValueType)=0