Skip to content

Passive aggressive

The Passive aggressive algorithm does not react to correct classifications, even if they have a low score, but "aggressively" reacts to incorrect classifications, updating the model to correct the mistake.

The algorithm uses a loss function to measure errors and updates the model by calculating weights that minimize the function. Hyperparameter C controls the trade-off between classification accuracy and update size, so it represents the degree of "aggressiveness".