Passive-Aggressive Online Classifier

medium
Unit 18 · Online Learning0/2 to milestone

The passive-aggressive algorithm learns from one example at a time: if the example is classified with margin ≥ 1 it stays passive; otherwise it makes the smallest update that fixes it (aggressive), capped by C (PA-I).

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Passive-Aggressive Online Classifier · TechGradify