Commit dacca88e authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: fix TrainRegression appli

parent 4c78d455
......@@ -123,6 +123,7 @@ void DoInit()
SetParameterDescription("", "A list of input images. Last band should contain the output value to predict.");
AddParameter(ParameterType_InputFilename, "io.csv", "Input CSV file");
SetParameterDescription("io.csv","Input CSV file containing the predictors, and the output values in last column. Only used when no input image is given");
AddParameter(ParameterType_InputFilename, "io.imstat", "Input XML image statistics file");
......@@ -223,7 +224,6 @@ void DoExecute()
VectorDataType::Pointer envelope = envelopeFilter->GetOutput();
TreeIteratorType itVector(envelope->GetDataTree());
for (itVector.GoToBegin(); !itVector.IsAtEnd(); ++itVector)
......@@ -357,7 +357,8 @@ void DoExecute()
// Performances estimation
ListSampleType::Pointer performanceListSample;
TargetListSampleType::Pointer predictedList;
TargetListSampleType::Pointer predictedList = TargetListSampleType::New();
TargetListSampleType::Pointer performanceLabeledListSample;
//Test the input validation set size
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