unsignedintGetDimension(){returnm_NumberOfHiddenNeurons;};// Override the Dimensionality Reduction model method, it is used in the dimensionality reduction filter to set the output image size
* \brief MachineLearningModel is the base class for all classifier objects (SVM, KNN,
* Random Forests, Artificial Neural Network, ...) implemented in the supervised classification framework of the OTB.
/** \class DimensionalityReductionModel
* \brief DimensionalityReductionModel is the base class for all dimensionality Reduction objects (PCA, autoencoders and SOM) implemented in the dimensionality Reduction framework of the OTB.
*
* MachineLearningModel is an abstract object that specifies behavior and
* interface of supervised classifiers (SVM, KNN, Random Forests, Artificial
* Neural Network, ...) in the generic supervised classification framework of the OTB.
* The main generic virtual methods specifically implemented in each classifier
* derived from the MachineLearningModel class are two learning-related methods:
* Train() and Save(), and three classification-related methods: Load(),
* DimensionalityReductionModel is an abstract object that specifies behavior and
* interface of dimensionality reduction algorithms (PCA, autoencoders and SOM) in the generic dimensionality Reduction framework of the OTB.
* The main generic virtual methods specifically implemented in each model
* derived from the DimensionalityReductionModel class are two learning-related methods:
* Train() and Save(), and three dimensionality reduction related methods: Load(),
* DoPredict() and optionnaly DoPredictBatch().
*
* Thus, each classifier derived from the MachineLearningModel class
* computes its corresponding model with Train() and exports it with
* the help of the Save() method.
*
* It is also possible to classify any input sample composed of several
* It is also possible to reduce the dimensionality of any input sample composed of several
* features (or any number of bands in the case of a pixel extracted
* from a multi-band image) with the help of the Predict() method which
* needs a previous loading of the classification model with the Load() method.
*
* \sa MachineLearningModelFactory
* \sa LibSVMMachineLearningModel
* \sa SVMMachineLearningModel
* \sa BoostMachineLearningModel
* \sa KNearestNeighborsMachineLearningModel
* \sa DecisionTreeMachineLearningModel
* \sa RandomForestsMachineLearningModel
* \sa GradientBoostedTreeMachineLearningModel
* \sa NormalBayesMachineLearningModel
* \sa NeuralNetworkMachineLearningModel
* \sa SharkRandomForestsMachineLearningModel
* \sa ImageClassificationFilter
* \sa DimensionalityReductionModelFactory
* \sa SOMModel
* \sa PCAModel
* \sa AutoencderModel
* \sa ImageDimensionalityReductionFilter
*
*
* \ingroup OTBSupervised
* \ingroup cbDimensionalityReduction
*/
template<classTInputValue,classTTargetValue>
classITK_EXPORTDimensionalityReductionModel
...
...
@@ -121,7 +111,7 @@ public:
/** Get the size of the output after dimensionality reduction */
virtualunsignedintGetDimension()=0;
/**\name Classification model file manipulation */
/**\name Dimensionality Reduction model file manipulation */