Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
1304cbae
Commit
1304cbae
authored
Mar 20, 2015
by
Christophe Palmann
Browse files
COMP: otbTrainMachineLearningModel.cxx (when LIBSVM and OPENCV are not installed)
parent
527b33c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Learning/Supervised/test/otbTrainMachineLearningModel.cxx
View file @
1304cbae
...
...
@@ -20,17 +20,7 @@
#include <string>
#include <algorithm>
#include "otbLibSVMMachineLearningModel.h"
#include "otbSVMMachineLearningModel.h"
#include "otbKNearestNeighborsMachineLearningModel.h"
#include "otbRandomForestsMachineLearningModel.h"
#include "otbBoostMachineLearningModel.h"
#include "otbNeuralNetworkMachineLearningModel.h"
#include "otbNormalBayesMachineLearningModel.h"
#include "otbDecisionTreeMachineLearningModel.h"
#include "otbGradientBoostedTreeMachineLearningModel.h"
#include "otbKNearestNeighborsMachineLearningModel.h"
#include <otbMachineLearningModel.h>
#include "otbConfusionMatrixCalculator.h"
...
...
@@ -188,6 +178,8 @@ bool ReadDataRegressionFile(const std::string & infname, InputListSampleRegressi
return
true
;
}
#ifdef OTB_USE_LIBSVM
#include "otbLibSVMMachineLearningModel.h"
int
otbLibSVMMachineLearningModelNew
(
int
itkNotUsed
(
argc
),
char
*
itkNotUsed
(
argv
)
[])
{
typedef
otb
::
LibSVMMachineLearningModel
<
InputValueType
,
TargetValueType
>
SVMType
;
...
...
@@ -269,6 +261,18 @@ int otbLibSVMMachineLearningModel(int argc, char * argv[])
return
EXIT_FAILURE
;
}
}
#endif
#ifdef OTB_USE_OPENCV
#include "otbSVMMachineLearningModel.h"
#include "otbKNearestNeighborsMachineLearningModel.h"
#include "otbRandomForestsMachineLearningModel.h"
#include "otbBoostMachineLearningModel.h"
#include "otbNeuralNetworkMachineLearningModel.h"
#include "otbNormalBayesMachineLearningModel.h"
#include "otbDecisionTreeMachineLearningModel.h"
#include "otbGradientBoostedTreeMachineLearningModel.h"
#include "otbKNearestNeighborsMachineLearningModel.h"
int
otbSVMMachineLearningModelNew
(
int
itkNotUsed
(
argc
),
char
*
itkNotUsed
(
argv
)
[])
{
...
...
@@ -1036,3 +1040,4 @@ int otbGradientBoostedTreeMachineLearningModel(int argc, char * argv[])
return
EXIT_FAILURE
;
}
}
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment