Skip to content

Methods · Machine learning · Online learning

Passive-Aggressive Online Classifier

A passive-aggressive classifier learns a linear decision rule one example at a time. When an example is classified with enough margin the weights stay unchanged (passive); otherwise they move by the smallest step that fixes the hinge loss (aggressive), with the step capped (PA-I) or damped (PA-II) by a parameter C to tolerate noise.

패시브-어그레시브 분류기는 예를 하나씩 보며 선형 결정 규칙을 배웁니다. 여유 있게 맞힌 예에서는 가중치를 그대로 두고(수동), 그렇지 않으면 힌지 손실을 없애는 가장 작은 만큼 가중치를 옮기며(공격), PA-I과 PA-II는 매개변수 C로 그 크기를 제한해 잡음에 견딥니다.

Can a linear classifier that updates row by row, as data stream in, predict my classes well, and how many mistakes does it make while learning?

자료가 들어오는 대로 한 행씩 갱신하는 선형 분류기가 범주를 잘 예측하는지, 학습하는 동안 몇 번 틀리는지 알고 싶습니다.

The method standardises features, runs PA, PA-I or PA-II updates over the training rows for several epochs (one-vs-rest for more than two classes) and records the online mistakes made before each update. It reports the first-pass online error rate, mistakes per epoch, the weights and held-out accuracy next to batch logistic regression.

When to use Passive-Aggressive Online Classifier

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

A PA-I classifier (C = [value]) made [value] online mistakes in its first pass over [value] rows; held-out accuracy was [value] against [value] for logistic regression.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 2 reference tests compare the results with scikit-learn and direct computations (formulas, enumeration or simulation).

    독립 계산. scikit-learn·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Passive-Aggressive Online Classifier on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q71135 · Reviewed 2026-10-25