Commit be96ab4e authored by Cédric Traizet's avatar Cédric Traizet

BUG: in TrainImageBase do not connect sample.vnf to the cfield of the learning...

BUG: in TrainImageBase do not connect sample.vnf to the cfield of the learning application because the input vectors are not the same
parent af8db839
Pipeline #3979 failed with stages
in 70 minutes and 18 seconds
......@@ -148,7 +148,6 @@ void TrainImagesBase::ShareClassificationParams()
void TrainImagesBase::ConnectClassificationParams()
{
Connect("training.cfield", "polystat.field");
Connect("select.rand", "training.rand");
}
......@@ -264,6 +263,12 @@ void TrainImagesBase::TrainModel(FloatVectorImageListType* imageList, const std:
selectedNames.push_back("value_" + oss.str());
}
GetInternalApplication("training")->SetParameterStringList("feat", selectedNames);
// cfield is not directly connected to sample.vfn (ListView parameter) because the associated vector
// data is not the same (the fields are not the same).
GetInternalApplication("training")->SetParameterStringList("cfield",
{GetChoiceNames("sample.vfn")[GetSelectedItems("sample.vfn").front()]});
ExecuteInternal("training");
}
......
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