Skip to content

Commit

Permalink
remove function that not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYuHui committed Jun 17, 2020
1 parent ea3da01 commit 5c70702
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions src/shogun/classifier/NearestCentroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ namespace shogun{

NearestCentroid::NearestCentroid() : DistanceMachine()
{
init();
}

NearestCentroid::NearestCentroid(const std::shared_ptr<Distance>& d) : DistanceMachine()
{
init();
ASSERT(d)
set_distance(d);
}
Expand All @@ -30,12 +28,6 @@ namespace shogun{
{
}

void NearestCentroid::init()
{

}


bool NearestCentroid::train_machine(std::shared_ptr<Features> data)
{
require(distance, "Distance not set");
Expand Down
7 changes: 0 additions & 7 deletions src/shogun/classifier/NearestCentroid.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ class NearestCentroid : public DistanceMachine{
*/
virtual bool train_machine(std::shared_ptr<Features> data=NULL);

/** Stores feature data of underlying model.
*
* Sets centroids as lhs
*/

private:
void init();

protected:
/// number of classes (i.e. number of values labels can take)
Expand Down

0 comments on commit 5c70702

Please sign in to comment.