Commit c6d21d79 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: Clean ML factories before leaving

parent 103906cf
......@@ -102,6 +102,13 @@ public:
typedef ClassificationFilterType::LabelType LabelType;
typedef otb::MachineLearningModelFactory<ValueType, LabelType> MachineLearningModelFactoryType;
protected:
~PredictRegression() ITK_OVERRIDE
{
MachineLearningModelFactoryType::CleanFactories();
}
private:
void DoInit() ITK_OVERRIDE
{
......
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