This merge request adds a new application VectorRegression
that performs regression on input vector data according to a regression model.
This application is almost the same as VectorClassifier. The differences are:
unsigned int
vs float
), as well as the ogr field type (OFTInteger
versus OFTFloat
)SetRegressionMode(1)
on the model created by the MachineLearningModelFactory
Instead of creating the VectorRegression
by copy-pasting almost all the VectorClassifier
application, I tried to factorize the code in VectorClassifier
using templates.
VectorPrediction<bool RegressionMode>
that performs regression when RegressionMode =1 and classification when RegressionMode = 0. The code of this application is the code of the old VectorClassifier, whith some modification to use the right types depending on RegressionMode
.The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.
Check before merging:
git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i
on latest changes and commit