Commit ba03fe81 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: remove input centroid management inside the class (it is done outside)

No related merge requests found
Showing with 0 additions and 11 deletions
+0 -11
...@@ -129,10 +129,6 @@ public: ...@@ -129,10 +129,6 @@ public:
itkGetMacro( Normalized, bool ); itkGetMacro( Normalized, bool );
itkSetMacro( 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 */ /** Initialize the centroids for the kmeans algorithm */
void SetCentroidsFromData(const shark::Data<shark::RealVector> & data) void SetCentroidsFromData(const shark::Data<shark::RealVector> & data)
{ {
...@@ -167,22 +163,15 @@ private: ...@@ -167,22 +163,15 @@ private:
SharkKMeansMachineLearningModel(const Self &) = delete; SharkKMeansMachineLearningModel(const Self &) = delete;
void operator=(const Self &) = delete; void operator=(const Self &) = delete;
bool InitializeCentroids();
// Parameters set by the user // Parameters set by the user
bool m_Normalized; bool m_Normalized;
unsigned int m_K; unsigned int m_K;
unsigned int m_MaximumNumberOfIterations; unsigned int m_MaximumNumberOfIterations;
bool m_CanRead; bool m_CanRead;
/** Centroids results form kMeans */ /** Centroids results form kMeans */
shark::Centroids m_Centroids; shark::Centroids m_Centroids;
/** Input centroid filename */
std::string m_CentroidFilename;
/** shark Model could be SoftClusteringModel or HardClusteringModel */ /** shark Model could be SoftClusteringModel or HardClusteringModel */
boost::shared_ptr<ClusteringModelType> m_ClusteringModel; boost::shared_ptr<ClusteringModelType> m_ClusteringModel;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment