From ba03fe816ab299f3463ad8a59d268296fa58706a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr> Date: Wed, 17 Apr 2019 09:45:34 +0200 Subject: [PATCH] ENH: remove input centroid management inside the class (it is done outside) --- .../include/otbSharkKMeansMachineLearningModel.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h index 2127439fb7..700a58eacd 100644 --- a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h +++ b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h @@ -129,10 +129,6 @@ public: itkGetMacro( Normalized, bool ); itkSetMacro( Normalized, bool ); - /** If true, normalized input data sample list */ - itkGetMacro( CentroidFilename, std::string ); - itkSetMacro( CentroidFilename, std::string ); - /** Initialize the centroids for the kmeans algorithm */ void SetCentroidsFromData(const shark::Data<shark::RealVector> & data) { @@ -167,22 +163,15 @@ private: SharkKMeansMachineLearningModel(const Self &) = delete; void operator=(const Self &) = delete; - bool InitializeCentroids(); - - // Parameters set by the user bool m_Normalized; unsigned int m_K; unsigned int m_MaximumNumberOfIterations; bool m_CanRead; - /** Centroids results form kMeans */ shark::Centroids m_Centroids; - /** Input centroid filename */ - std::string m_CentroidFilename; - /** shark Model could be SoftClusteringModel or HardClusteringModel */ boost::shared_ptr<ClusteringModelType> m_ClusteringModel; -- GitLab