Skip to content
Snippets Groups Projects
Commit 9eef0230 authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

ENH: add verbosity to TrainSVM Application.

parent aafe4e18
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,16 @@ private:
concatenateValidationSamples->Update();
concatenateValidationLabels->Update();
if (concatenateTrainingSamples->GetOutputSampleList()->Size() == 0)
{
otbAppLogFATAL("No training samples, cannot perform SVM training.");
}
if (concatenateValidationSamples->GetOutputSampleList()->Size() == 0)
{
otbAppLogWARNING("No validation samples.");
}
if (IsParameterEnabled("io.imstat"))
{
StatisticsReader::Pointer statisticsReader = StatisticsReader::New();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment