Skip to content

Commit

Permalink
Merge pull request #2060 from frank0523/develop
Browse files Browse the repository at this point in the history
add config.h in all .h files in shogun/classifier
  • Loading branch information
iglesias committed Mar 21, 2014
2 parents 33419a6 + 1176064 commit 683999f
Show file tree
Hide file tree
Showing 34 changed files with 68 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/classifier/AveragedPerceptron.h
Expand Up @@ -10,6 +10,8 @@
#ifndef _AVERAGEDPERCEPTRON_H___
#define _AVERAGEDPERCEPTRON_H___

#include <shogun/lib/config.h>

#include <stdio.h>
#include <shogun/lib/common.h>
#include <shogun/features/DotFeatures.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/NearestCentroid.h
Expand Up @@ -10,6 +10,8 @@
#ifndef _NEAREST_CENTROID_H__
#define _NEAREST_CENTROID_H__

#include <shogun/lib/config.h>

#include <stdio.h>
#include <shogun/lib/common.h>
#include <shogun/io/SGIO.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/Perceptron.h
Expand Up @@ -11,6 +11,8 @@
#ifndef _PERCEPTRON_H___
#define _PERCEPTRON_H___

#include <shogun/lib/config.h>

#include <stdio.h>
#include <shogun/lib/common.h>
#include <shogun/features/DotFeatures.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/PluginEstimate.h
Expand Up @@ -11,6 +11,8 @@
#ifndef _PLUGINESTIMATE_H___
#define _PLUGINESTIMATE_H___

#include <shogun/lib/config.h>

#include <shogun/machine/Machine.h>
#include <shogun/features/StringFeatures.h>
#include <shogun/labels/BinaryLabels.h>
Expand Down
1 change: 1 addition & 0 deletions src/shogun/classifier/mkl/MKLClassification.h
Expand Up @@ -10,6 +10,7 @@
#ifndef __MKLCLASSIFICATION_H__
#define __MKLCLASSIFICATION_H__

#include <shogun/lib/config.h>
#include <shogun/lib/common.h>
#include <shogun/classifier/mkl/MKL.h>

Expand Down
1 change: 1 addition & 0 deletions src/shogun/classifier/mkl/MKLMulticlass.h
Expand Up @@ -16,6 +16,7 @@

#include <vector>

#include <shogun/lib/config.h>
#include <shogun/base/SGObject.h>
#include <shogun/kernel/Kernel.h>
#include <shogun/kernel/CombinedKernel.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/mkl/MKLMulticlassGLPK.h
Expand Up @@ -14,6 +14,8 @@
#ifndef MKLMulticlassGLPK_H_
#define MKLMulticlassGLPK_H_

#include <shogun/lib/config.h>

#include <vector>
#include <shogun/base/SGObject.h>
#include <shogun/classifier/mkl/MKLMulticlassOptimizationBase.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/mkl/MKLMulticlassGradient.h
Expand Up @@ -14,6 +14,8 @@
#ifndef MKLMulticlassGRADIENT_H_
#define MKLMulticlassGRADIENT_H_

#include <shogun/lib/config.h>

#include <vector>
#include <cmath>
#include <cassert>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/mkl/MKLMulticlassOptimizationBase.h
Expand Up @@ -11,6 +11,8 @@
#ifndef MKLMulticlassOPTIMIZATIONBASE_H_
#define MKLMulticlassOPTIMIZATIONBASE_H_

#include <shogun/lib/config.h>

#include <vector>
#include <shogun/base/SGObject.h>

Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/mkl/MKLOneClass.h
Expand Up @@ -10,6 +10,8 @@
#ifndef __MKLONECLASS_H__
#define __MKLONECLASS_H__

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/classifier/mkl/MKL.h>

Expand Down
3 changes: 3 additions & 0 deletions src/shogun/classifier/svm/CPLEXSVM.h
Expand Up @@ -10,6 +10,9 @@

#ifndef _CPLEXSVM_H___
#define _CPLEXSVM_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>

#ifdef USE_CPLEX
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/GNPPLib.h
Expand Up @@ -15,6 +15,8 @@
#ifndef GNPPLIB_H__
#define GNPPLIB_H__

#include <shogun/lib/config.h>

#include <math.h>
#include <limits.h>

Expand Down
1 change: 1 addition & 0 deletions src/shogun/classifier/svm/GNPPSVM.h
Expand Up @@ -11,6 +11,7 @@
#ifndef _GNPPSVM_H___
#define _GNPPSVM_H___

#include <shogun/lib/config.h>
#include <shogun/lib/common.h>
#include <shogun/classifier/svm/SVM.h>

Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/GPBTSVM.h
Expand Up @@ -10,6 +10,8 @@

#ifndef _GPBTSVM_H___
#define _GPBTSVM_H___

#include <shogun/lib/config.h>
#include <shogun/lib/common.h>
#include <shogun/classifier/svm/SVM.h>
#include <shogun/lib/external/shogun_libsvm.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/LibSVM.h
Expand Up @@ -11,6 +11,8 @@
#ifndef _LIBSVM_H___
#define _LIBSVM_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/classifier/svm/SVM.h>
#include <shogun/lib/external/shogun_libsvm.h>
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/classifier/svm/LibSVMOneClass.h
Expand Up @@ -11,6 +11,9 @@

#ifndef _LIBSVM_ONECLASS_H___
#define _LIBSVM_ONECLASS_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/classifier/svm/SVM.h>
#include <shogun/lib/external/shogun_libsvm.h>
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/classifier/svm/MPDSVM.h
Expand Up @@ -10,6 +10,9 @@

#ifndef _MPDSVM_H___
#define _MPDSVM_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/classifier/svm/SVM.h>
#include <shogun/lib/Cache.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/NewtonSVM.h
Expand Up @@ -11,6 +11,8 @@
#ifndef _NEWTONSVM_H___
#define _NEWTONSVM_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/machine/LinearMachine.h>
#include <shogun/features/DotFeatures.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/OnlineSVMSGD.h
Expand Up @@ -21,6 +21,8 @@
Shogun adjustments (w) 2008 Soeren Sonnenburg
*/

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/labels/Labels.h>
#include <shogun/machine/OnlineLinearMachine.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/SGDQN.h
Expand Up @@ -22,6 +22,8 @@
Shogun adjustments (w) 2011 Siddharth Kherada
*/

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/machine/LinearMachine.h>
#include <shogun/features/DotFeatures.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/SVM.h
Expand Up @@ -11,6 +11,8 @@
#ifndef _SVM_H___
#define _SVM_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/features/Features.h>
#include <shogun/kernel/Kernel.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/SVMOcas.h
Expand Up @@ -12,6 +12,8 @@
#ifndef _SVMOCAS_H___
#define _SVMOCAS_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/machine/LinearMachine.h>
#include <shogun/lib/external/libocas.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/SVMSGD.h
Expand Up @@ -22,6 +22,8 @@
Shogun adjustments (w) 2008 Soeren Sonnenburg
*/

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/machine/LinearMachine.h>
#include <shogun/features/DotFeatures.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/WDSVMOcas.h
Expand Up @@ -12,6 +12,8 @@
#ifndef _WDSVMOCAS_H___
#define _WDSVMOCAS_H___

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/machine/Machine.h>
#include <shogun/classifier/svm/SVMOcas.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/VowpalWabbit.h
Expand Up @@ -16,6 +16,8 @@
#ifndef _VOWPALWABBIT_H__
#define _VOWPALWABBIT_H__

#include <shogun/lib/config.h>

#include <shogun/classifier/vw/vw_common.h>
#include <shogun/classifier/vw/learners/VwAdaptiveLearner.h>
#include <shogun/classifier/vw/learners/VwNonAdaptiveLearner.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/VwEnvironment.h
Expand Up @@ -15,6 +15,8 @@
#ifndef _VW_ENV_H__
#define _VW_ENV_H__

#include <shogun/lib/config.h>

#include <shogun/base/SGObject.h>
#include <shogun/base/DynArray.h>
#include <shogun/lib/DataType.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/VwLearner.h
Expand Up @@ -16,6 +16,8 @@
#ifndef _VW_LEARNER_H__
#define _VW_LEARNER_H__

#include <shogun/lib/config.h>

#include <shogun/base/SGObject.h>
#include <shogun/base/Parameter.h>
#include <shogun/classifier/vw/vw_common.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/VwParser.h
Expand Up @@ -16,6 +16,8 @@
#ifndef _VW_PARSER_H__
#define _VW_PARSER_H__

#include <shogun/lib/config.h>

#include <shogun/base/SGObject.h>
#include <shogun/io/SGIO.h>
#include <shogun/lib/Hash.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/VwRegressor.h
Expand Up @@ -16,6 +16,8 @@
#ifndef _VW_REGRESSOR_H__
#define _VW_REGRESSOR_H__

#include <shogun/lib/config.h>

#include <shogun/base/SGObject.h>
#include <shogun/lib/DataType.h>
#include <shogun/classifier/vw/VwEnvironment.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/vw_common.h
Expand Up @@ -15,6 +15,8 @@
#ifndef _VW_COMMON_H__
#define _VW_COMMON_H__

#include <shogun/lib/config.h>

#include <shogun/lib/DataType.h>
#include <shogun/lib/common.h>
#include <shogun/mathematics/Math.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/vw_constants.h
Expand Up @@ -15,6 +15,8 @@
#ifndef _VW_CONSTANTS_H__
#define _VW_CONSTANTS_H__

#include <shogun/lib/config.h>

namespace shogun
{
/// Hash function typedef, takes a substring and seed as parameters
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/vw_example.h
Expand Up @@ -15,6 +15,8 @@
#ifndef _VW_EXAMPLE_H__
#define _VW_EXAMPLE_H__

#include <shogun/lib/config.h>

#include <shogun/lib/DataType.h>
#include <shogun/lib/common.h>
#include <shogun/lib/v_array.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/vw_label.h
Expand Up @@ -15,6 +15,8 @@
#ifndef _VW_LABEL_H__
#define _VW_LABEL_H__

#include <shogun/lib/config.h>

#include <shogun/lib/DataType.h>
#include <shogun/lib/common.h>
#include <shogun/lib/v_array.h>
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/vw/vw_math.h
Expand Up @@ -15,6 +15,8 @@
#ifndef _VW_MATH_H__
#define _VW_MATH_H__

#include <shogun/lib/config.h>

#include <shogun/lib/common.h>
#include <shogun/mathematics/Math.h>
#include <shogun/classifier/vw/vw_common.h>
Expand Down

0 comments on commit 683999f

Please sign in to comment.