Commit 6600addd authored by Ludovic Hussonnois's avatar Ludovic Hussonnois

BUG: Mantis-1368: Check for empty validation samples.

parent d8676165
......@@ -474,7 +474,8 @@ void DoExecute() ITK_OVERRIDE
// ---------------------------------------------------------------------------
// Train model
GetInternalApplication("training")->SetParameterStringList("io.vd",sampleTrainOutputs, false);
GetInternalApplication("training")->SetParameterStringList("valid.vd",sampleValidOutputs, false);
if( vtr!=0.0 && !sampleValidOutputs.empty() )
GetInternalApplication("training")->SetParameterStringList("valid.vd",sampleValidOutputs, false);
UpdateInternalParameters("training");
// set field names
FloatVectorImageType::Pointer image = imageList->GetNthElement(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment