Skip to content

Commit

Permalink
fix get_name in MKL classes fixing serialization / parameter framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jul 9, 2013
1 parent 3c8ea00 commit 206a880
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
3 changes: 3 additions & 0 deletions src/shogun/classifier/mkl/MKLClassification.h
Expand Up @@ -40,6 +40,9 @@ class CMKLClassification : public CMKL
*/
virtual float64_t compute_sum_alpha();

/** @return object name */
virtual const char* get_name() const { return "MKLClassification"; }

protected:
/** check run before starting training (to e.g. check if labeling is
* two-class labeling in classification case
Expand Down
5 changes: 1 addition & 4 deletions src/shogun/classifier/mkl/MKLMulticlassGLPK.h
Expand Up @@ -64,10 +64,7 @@ class MKLMulticlassGLPK: public MKLMulticlassOptimizationBase
virtual void computeweights(std::vector<float64_t> & weights2);

/** @return object name */
virtual const char* get_name() const
{
return "MKLMulticlassGLPK";
}
virtual const char* get_name() const { return "MKLMulticlassGLPK"; }

protected:
/** Class Copy Constructor
Expand Down
5 changes: 1 addition & 4 deletions src/shogun/classifier/mkl/MKLMulticlassGradient.h
Expand Up @@ -77,10 +77,7 @@ class MKLMulticlassGradient: public MKLMulticlassOptimizationBase
virtual void computeweights(std::vector<float64_t> & weights2);

/** @return object name */
virtual const char* get_name() const
{
return "MKLMulticlassGradient";
}
virtual const char* get_name() const { return "MKLMulticlassGradient"; }

/** sets p-norm parameter for MKL
* @param norm the MKL norm
Expand Down
5 changes: 1 addition & 4 deletions src/shogun/classifier/mkl/MKLMulticlassOptimizationBase.h
Expand Up @@ -61,10 +61,7 @@ class MKLMulticlassOptimizationBase: public CSGObject
virtual void computeweights(std::vector<float64_t> & weights2);

/** @return object name */
virtual const char* get_name() const
{
return "MKLMulticlassOptimizationBase";
}
virtual const char* get_name() const { return "MKLMulticlassOptimizationBase"; }

/** sets p-norm parameter for MKL
* @param norm the MKL norm
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/classifier/mkl/MKLOneClass.h
Expand Up @@ -40,6 +40,9 @@ class CMKLOneClass : public CMKL
*/
virtual float64_t compute_sum_alpha();

/** @return object name */
virtual const char* get_name() const { return "MKLOneClass"; }

protected:
/** check run before starting training (to e.g. check if labeling is
* two-class labeling in classification case
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/regression/svr/MKLRegression.h
Expand Up @@ -43,6 +43,9 @@ class CMKLRegression : public CMKL
*/
virtual float64_t compute_sum_alpha();

/** @return object name */
virtual const char* get_name() const { return "MKLRegression"; }

protected:
/** check run before starting training (to e.g. check if labeling is
* two-class labeling in classification case
Expand Down

0 comments on commit 206a880

Please sign in to comment.