Integration of the OpenCV Machine Learning library for Logistic Regression based classification of gridded features.
Optimization algorithms like Batch Gradient Descent and Mini-Batch Gradient Descent are supported in Logistic Regression. It is important that we mention the number of iterations these optimization algorithms have to run. The number of iterations can be thought as number of steps taken and learning rate specifies if it is a long step or a short step. This and previous parameter define how fast we arrive at a possible solution.
In order to compensate for overfitting regularization can be performed. (L1 or L2 norm).
Logistic regression implementation provides a choice of two training methods with Batch Gradient Descent or the Mini-Batch Gradient Descent.
| Name | Type | Identifier | Description | Constraints |
Input | Features | Grid list, input | FEATURES | - | - |
Training Areas | Shapes, input | TRAIN_AREAS | - | - |
Output | Classification | Grid, output | CLASSES | - | - |
Options | Grid System | Grid system | PARAMETERS_GRID_SYSTEM | - | - |
Normalize | Boolean | NORMALIZE | - | Default: 0 |
Update Colors from Features | Boolean, GUI | RGB_COLORS | Use the first three features in list to obtain blue, green, red components for class colour in look-up table. | Default: 1 |
Load Model | File path | MODEL_LOAD | Use a model previously stored to file. | - |
Class Identifier | Table field | TRAIN_CLASS | - | - |
Buffer Size | Floating point | TRAIN_BUFFER | For non-polygon type training areas, creates a buffer with a diameter of specified size. | Minimum: 0.000000 Default: 1.000000 |
Save Model | File path | MODEL_SAVE | Stores model to file to be used for subsequent classifications instead of training areas. | - |
Learning Rate | Floating point | LOGR_LEARNING_RATE | The learning rate determines how fast we approach the solution. | Minimum: 0.000000 Default: 1.000000 |
Number of Iterations | Integer | LOGR_ITERATIONS | - | Minimum: 1 Default: 300 |
Regularization | Choice | LOGR_REGULARIZATION | - | Available Choices: [0] disabled [1] L1 norm [2] L2 norm Default: 0 |
Training Method | Choice | LOGR_TRAIN_METHOD | - | Available Choices: [0] Batch Gradient Descent [1] Mini-Batch Gradient Descent Default: 0 |
Mini-Batch Size | Integer | LOGR_MINIBATCH_SIZE | - | Minimum: 1 Default: 1 |