AI Wiki中文/EN

Support vector machines: margins, hinge loss and an optimum certificate

支持向量机

Derive hard and soft margins, dual constraints and KKT conditions; solve a clearly restricted convex SVM exactly with primal-dual certificates.

On this pageIntuitionMathematics & methodImplementationLimitationsExercisesResearch connections

A separator needs a scale before its margin can be compared

Put negative examples at x=−2 and −1, and positive examples at x=1 and 2. The rules “predict by the sign of x” and “predict by the sign of 10x” give identical labels. The second rule’s raw scores are ten times larger, but its boundary has not moved. Calling it ten times better separated would confuse score scale with geometry.

A support vector machine chooses a decision function together with a normalization and an optimization objective. In a separable problem, hard-margin classification seeks a separating hyperplane with a large geometric margin. Soft-margin classification permits violations and trades their total hinge penalty against the squared norm of the feature-space weight vector. The output is a signed decision score, not automatically a probability.

We will derive the usual binary formulation, then solve a restricted version exactly: one numeric feature, with intercept fixed at zero. That restriction makes it possible to inspect a complete optimum certificate using only rational arithmetic. It also excludes separators that need a translated boundary; the example will show why that matters.

Hard and soft margins are different optimization problems

Let a feature map be phi, labels be −1 or +1, and the decision function be f(x)=the inner product of w and phi(x), plus b. For nonzero w, the functional margin and signed geometric margin of record i are

mi=yi(⟨w,ϕ(xi)⟩+b),di=mi∥w∥,distance between the levels f=+1 and f=−1: 2∥w∥.m_i=y_i\bigl(\langle w,\phi(x_i)\rangle+b\bigr),\qquad d_i=\frac{m_i}{\|w\|},\qquad \text{distance between the levels }f=+1\text{ and }f=-1:\ \frac{2}{\|w\|}.

Multiplying w and b by the same positive constant changes m_i but leaves d_i and the decision boundary unchanged. Hard-margin SVM fixes the scale by requiring every m_i to be at least one, then minimizes half the squared norm. For a finite training set that is strictly separable in the chosen feature space, a separator can be rescaled to satisfy these constraints. If no such separator exists, the hard-margin problem is infeasible. Its empty margin band cannot be obtained by simply ignoring violating points. Cortes and Vapnik, Support-Vector Networks, §2

Soft-margin C-SVM instead solves, for C>0,

min⁡w,b,ξ 12∥w∥2+C∑i=1nξisubject to mi≥1−ξi,ξi≥0.\min_{w,b,\xi}\ \frac12\|w\|^2+C\sum_{i=1}^{n}\xi_i\qquad\text{subject to }m_i\ge 1-\xi_i,\quad \xi_i\ge0.

At an optimum, each slack equals max(0,1−m_i). A positive slack does not necessarily mean a wrong label: if the margin is between zero and one, the point is correctly classified but lies inside its prescribed margin boundary. A margin below zero is a strict classification error. Margin zero lies on the decision boundary and needs a tie rule. The program predicts −1 at a zero score. When w=0, scores can still be defined, but dividing by its norm to claim a geometric margin is invalid.

Unlike the hard problem, the soft constraints are feasible even for contradictory labels: sufficiently large slacks allow them. The objective penalizes the sum of hinge violations, not the count of mistakes. The modern C-SVM formulation makes that choice explicit. scikit-learn 1.7.2, mathematical formulation

C depends on the exact objective convention

Larger C places more weight on training violations relative to the norm term. It is not a command to make all data separable. If an implementation averages its hinge loss instead of summing it, its regularization parameter has a different numerical scale:

J(w,b)=12∥w∥2+C∑imax⁡(0,1−mi),J(w,b)Cn=1n∑imax⁡(0,1−mi)+λ2∥w∥2,λ=1Cn.J(w,b)=\frac12\|w\|^2+C\sum_i\max(0,1-m_i),\qquad \frac{J(w,b)}{Cn}=\frac1n\sum_i\max(0,1-m_i)+\frac{\lambda}{2}\|w\|^2,\quad \lambda=\frac1{Cn}.

This equality specifies both the loss and norm conventions. It is not a conversion formula for every library parameter called “alpha.” Repeating every record three times with the same C has the same objective as using the original records with 3C. Changing feature scale changes the norm penalty’s meaning too. Preprocessing and C selection belong to the same training and validation protocol.

Dual coefficients supply an optimality certificate

Introduce a nonnegative multiplier alpha_i for each margin constraint and another multiplier for slack nonnegativity. Minimizing the Lagrangian over w gives a sum of training features; minimizing over the free, unpenalized b requires the signed multipliers to sum to zero. Minimizing over the slacks bounds each alpha_i by C. The dual is

max⁡α ∑iαi−12∑i,jαiαjyiyjk(xi,xj)subject to 0≤αi≤C,∑iαiyi=0.\max_{\alpha}\ \sum_i\alpha_i-\frac12\sum_{i,j}\alpha_i\alpha_j y_i y_j k(x_i,x_j)\qquad\text{subject to }0\le\alpha_i\le C,\quad \sum_i\alpha_i y_i=0.

Here k is the feature inner product. A symmetric PSD kernel makes the quadratic term PSD, so the dual is a concave maximization problem. An arbitrary similarity matrix need not preserve this property. The kernel trick explains the feature and Gram-matrix conditions; kernel choice changes the geometry in which the margin is measured.

Together with primal and dual feasibility, the Karush–Kuhn–Tucker (KKT) conditions include

w=∑iαiyiϕ(xi),αi(mi−1+ξi)=0,(C−αi)ξi=0.w=\sum_i\alpha_i y_i\phi(x_i),\qquad \alpha_i(m_i-1+\xi_i)=0,\qquad (C-\alpha_i)\xi_i=0.

These equations explain the familiar cases. Alpha zero implies margin at least one. An alpha strictly between zero and C implies margin exactly one. Alpha equal to C allows a margin at most one, including correctly classified points inside the margin. A boundary point can have alpha zero in a degenerate solution; “on the boundary” does not force a positive coefficient. In the coefficient sense used here, support vectors are records with positive alpha. Duplicate or dependent features can permit several optimal multiplier vectors, so the positive-coefficient index list need not be unique.

The prediction score becomes the sum of alpha_i y_i k(x_i,x) over the support vectors, plus b. If some coefficient lies strictly between zero and C, its equality margin gives b directly; otherwise b may need to be recovered from the remaining inequalities. Solving an arbitrary linear system and labeling its coefficients “support vectors” is not enough: the constraints and KKT conditions must hold. A feasible primal solution and a feasible dual solution with equal objective values certify a global optimum. Official C-SVM dual

Solve an exact convex problem, with the intercept fixed

The solver below specializes to phi(x)=x in one dimension and fixes b=0. Let a_i=y_i x_i. Its soft objective is P(w) = w*w/2 + C*sum(max(0, 1-a_i*w)). This is strictly convex and tends to infinity as the magnitude of w grows, so it has a unique minimizer. No iteration tolerance or finite search grid is required.

Every nonzero a_i creates a breakpoint at 1/a_i. Between adjacent breakpoints, the set of positive hinge terms is fixed. On such an interval I, the derivative and constrained minimizer are

P′(w)=w−C∑i:aiw<1ai,wI=clip⁡I ⁣(C∑i:aiw<1ai).P'(w)=w-C\sum_{i:a_iw<1}a_i,\qquad w_I=\operatorname{clip}_I\!\left(C\sum_{i:a_iw<1}a_i\right).

A probe strictly inside each interval identifies its active terms. The quadratic minimizer is then clipped to the interval’s closure. Evaluate these finitely many exact candidates, including endpoints reached by clipping. The intervals cover the real line and the objective is continuous, so this procedure finds the global minimum; it is not a sampled scan of possible hyperplanes. A zero a_i contributes a constant hinge term and no breakpoint.

Fixing b changes the dual. There is now no minimization over an intercept, so there is no constraint requiring the signed alpha values to sum to zero. The specialized dual is

D0(α)=∑iαi−12(∑iαiai)2,0≤αi≤C.D_0(\alpha)=\sum_i\alpha_i-\frac12\left(\sum_i\alpha_i a_i\right)^2,\qquad 0\le\alpha_i\le C.

After finding w, assign alpha=C to points with margin below one and alpha=0 to points above one. At exact margin one, distribute enough multiplier mass to satisfy w=sum(alpha_i a_i). All such boundary a_i equal 1/w, so this is an interval allocation problem. The program allocates in input order, which specifies one certificate when several are possible.

For any feasible dual multipliers and any w, the gap has a useful decomposition:

P(w)−D0(α)=12(w−∑iαiai)2+∑i[Cmax⁡(0,1−aiw)−αi(1−aiw)]≥0.P(w)-D_0(\alpha)=\frac12\left(w-\sum_i\alpha_i a_i\right)^2+\sum_i\left[C\max(0,1-a_iw)-\alpha_i(1-a_iw)\right]\ge0.

Each bracket is nonnegative because alpha lies between zero and C. The returned solution makes every term zero. This proves optimality without trusting how the candidate search was implemented. The code’s raw scores and zero-tie convention are also explicit.

For hard margin in this fixed-origin setting, a zero a_i is immediately impossible. Products of both signs demand a simultaneously positive and negative w, also impossible. If all products have the same nonzero sign, the closest-to-zero feasible w is 1/a_j for the smallest absolute a_j. A certificate places multiplier 1/(a_j²) on that record and zero elsewhere. Hard multipliers have no upper bound C. An infeasible result returns one zero-product index or two opposite-product indices, not a classifier.

from fractions import Fraction as Q


def rational(value):
    if isinstance(value,bool) or not isinstance(value,(int,Q)):
        raise ValueError('features and C must be integers or Fractions')
    return Q(value)


def records(rows):
    if not isinstance(rows,(list,tuple)) or not rows:
        raise ValueError('training data must be nonempty')
    data=[]
    for row in rows:
        if not isinstance(row,(list,tuple)) or len(row)!=2:
            raise ValueError('each record must contain x and label')
        x,y=row
        if type(y) is not int or y not in (-1,1):
            raise ValueError('labels must be the integers -1 or +1')
        data.append((rational(x),y))
    return tuple(data)


def optimal_report(a,w,alpha,C):
    slack=tuple(max(Q(0),1-v*w) for v in a)
    primal=w*w/2+(C*sum(slack) if C is not None else 0)
    dual=sum(alpha)-sum(t*v for t,v in zip(alpha,a))**2/2
    return {'status':'optimal','w':w,'fixed_bias':Q(0),'C':C,
            'slack':slack,'alpha':tuple(alpha),'primal':primal,
            'dual':dual,'gap':primal-dual,'infeasible_witness':()}


def solve_origin_svm(rows,C=None):
    # C=None selects hard margin. Otherwise use summed ordinary hinge loss.
    data=records(rows)
    a=tuple(x*y for x,y in data)
    if C is None:
        zero=next((i for i,v in enumerate(a) if v==0),None)
        pos=next((i for i,v in enumerate(a) if v>0),None)
        neg=next((i for i,v in enumerate(a) if v<0),None)
        witness=(zero,) if zero is not None else ((pos,neg) if pos is not None and neg is not None else ())
        if witness:
            return {'status':'infeasible','w':None,'fixed_bias':Q(0),'C':None,
                    'slack':None,'alpha':None,'primal':None,'dual':None,
                    'gap':None,'infeasible_witness':witness}
        j=min(range(len(a)),key=lambda i:abs(a[i]))
        w=1/a[j]
        alpha=[Q(0)]*len(a)
        alpha[j]=1/(a[j]*a[j])
        return optimal_report(a,w,alpha,None)
    C=rational(C)
    if C<=0:
        raise ValueError('C must be positive for soft margin')
    breaks=sorted(set(1/v for v in a if v))
    ends=[None]+breaks+[None]
    candidates=[]
    for lo,hi in zip(ends,ends[1:]):
        probe=(Q(0) if lo is None and hi is None else
               hi-1 if lo is None else lo+1 if hi is None else (lo+hi)/2)
        w=C*sum((v for v in a if v*probe<1),Q(0))
        if lo is not None:w=max(w,lo)
        if hi is not None:w=min(w,hi)
        candidates.append(w)
    def objective(w):
        return w*w/2+C*sum((max(Q(0),1-v*w) for v in a),Q(0))
    w=min(candidates,key=lambda z:(objective(z),z))
    alpha=[C if v*w<1 else Q(0) for v in a]
    boundary=[i for i,v in enumerate(a) if v*w==1]
    remaining=w-sum(t*v for t,v in zip(alpha,a))
    if boundary:
        # All boundary products a_i equal 1/w, so allocate one total mass.
        mass=remaining/a[boundary[0]]
        if not 0<=mass<=C*len(boundary):
            raise ArithmeticError('dual mass is outside its feasible interval')
        for i in boundary:
            alpha[i]=min(C,mass)
            mass-=alpha[i]
        if mass!=0:raise ArithmeticError('unallocated dual mass')
    elif remaining!=0:
        raise ArithmeticError('stationarity certificate failed')
    return optimal_report(a,w,alpha,C)


def decision_function(model,queries):
    # model must be an unmodified solver result.
    if model['status']!='optimal':
        raise ValueError('an infeasible hard-margin result has no classifier')
    if not isinstance(queries,(list,tuple)):
        raise ValueError('queries must be a list or tuple')
    xs=tuple(rational(x) for x in queries)
    return tuple(model['w']*x for x in xs)


def predict(model,queries):
    return tuple(1 if score>0 else -1 for score in decision_function(model,queries))


if __name__=='__main__':
    data=((-2,-1),(-1,-1),(1,1),(2,1))
    for C in (Q(1,20),Q(1,10),Q(2),None):
        fit=solve_origin_svm(data,C)
        print('C:',C,'w:',fit['w'],'primal:',fit['primal'],'dual:',fit['dual'],'gap:',fit['gap'])
        print('alpha:',', '.join(map(str,fit['alpha'])))
    conflict=solve_origin_svm(((1,-1),(1,1)),Q(1))
    print('conflict:',conflict['w'],'slack:',conflict['slack'],'gap:',conflict['gap'])
    hard=solve_origin_svm(((1,-1),(2,1)))
    print('fixed-origin hard:',hard['status'],'witness:',hard['infeasible_witness'])
    print('tie labels:',predict(conflict,(-1,0,1)))

The complete standard-library program prints:

C: 1/20 w: 3/10 primal: 31/200 dual: 31/200 gap: 0
alpha: 1/20, 1/20, 1/20, 1/20
C: 1/10 w: 1/2 primal: 9/40 dual: 9/40 gap: 0
alpha: 1/10, 1/10, 1/10, 1/20
C: 2 w: 1 primal: 1/2 dual: 1/2 gap: 0
alpha: 0, 1, 0, 0
C: None w: 1 primal: 1/2 dual: 1/2 gap: 0
alpha: 0, 1, 0, 0
conflict: 0 slack: (Fraction(1, 1), Fraction(1, 1)) gap: 0
fixed-origin hard: infeasible witness: (1, 0)
tie labels: (-1, -1, -1)

All optimal rows have matching primal and dual values. At C=1/20, w=3/10 and all four records have positive hinge loss, although their predicted labels are correct. At C=1/10, the outer records reach margin one. At C=2, the solution agrees with the fixed-origin hard-margin optimum w=1. These examples distinguish margin violations from classification errors.

For n records, the soft solver examines at most n+1 intervals. Sorting costs O(n log(n+1)); checking active terms and evaluating the objective costs O(n) per interval, so the total is O(n²) arithmetic/comparison operations with O(n) storage. The hard solver and certificate construction take O(n). Predicting m queries takes O(1+m) operations and extra entries. These bounds assume expected constant-time set operations and exclude rational bit lengths. Extreme exact fractions can be expensive. The public solver validates raw data and C, and prediction expects an unmodified optimal result. Single-label samples are allowed as convex optimization inputs; that does not turn this into a one-class novelty detector.

An optimum certificate proves the stated problem, not a broader model

The fixed intercept is a substantial restriction. With records (1,-1) and (2,+1), the program reports hard-margin infeasibility: no boundary through zero separates them. The ordinary free-intercept model has the feasible choice w=2, b=−3, giving margin one to both. Therefore this result does not prove the general SVM problem infeasible. Conversely, our hard certificate for the symmetric example has signed multiplier sum −1; it is valid for the fixed-intercept problem, but fails the free-intercept dual’s equality constraint.

The soft solver uses ordinary hinge loss and an L2 squared-norm penalty on w. Squared hinge loss, an intercept penalty, instance-dependent C values and nonlinear kernels change the optimization problem or its certificate. A general multidimensional problem calls for an appropriate convex optimizer, decomposition method or specialized primal algorithm. The small scalar interval solver is useful because every returned quantity can be checked, not because it replaces those methods.

C and a kernel parameter such as an RBF bandwidth govern different choices: one weights violations relative to the norm penalty, the other changes feature-space geometry. Tune them using data excluded from fitting, with preprocessing learned on training data. The same feature transformations and kernel must be used for new points. A large geometric margin or a zero optimization gap alone does not establish low test error; statistical conclusions also need sampling and model-complexity assumptions.

An SVM score is not a calibrated probability. Calibration is a separate fitted mapping and requires an appropriate evaluation protocol. Even implementations with familiar names may use different defaults: the official documentation distinguishes ordinary SVC’s hinge formulation from LinearSVC’s default squared hinge and its treatment of the intercept. Compare objectives before comparing numerical C values or coefficients. scikit-learn: scores, scaling and implementation differences

Check the geometry and the certificate

  1. In one dimension, compare f(x)=x and f(x)=10x on a correctly labeled point at x=1. Has the geometric margin increased tenfold?

Answer: No. The functional margins are one and ten, but the weight norms are also one and ten. The signed geometric margin is one in both cases. Hard-margin normalization removes this arbitrary scale before norm minimization. For w=0, this ratio is undefined.

  1. The symmetric four-point example has C=1/20 and w=3/10. Are all four points misclassified because all four slacks are positive?

Answer: No. Their margins are 3/5, 3/10, 3/10 and 3/5, all positive. They are correctly classified inside the prescribed margin boundaries. Slacks are 2/5, 7/10, 7/10 and 2/5. Their sum is 11/5; adding its C-weighted penalty to w²/2 gives 31/200, matching the dual certificate.

  1. Why does a zero primal-dual gap certify a global optimum here? What changes if every training record is repeated three times with C unchanged?

Answer: Feasible dual values lower-bound every feasible primal value, as the nonnegative gap decomposition proves. Equality leaves no room for a better primal objective. Repeating all records triples the summed hinge penalty, so it is equivalent to using 3C on the original records, not to leaving the learning problem unchanged.

  1. The fixed-origin hard solver rejects (1,-1) and (2,+1). Does this reject an SVM with a free intercept? May the fixed-origin certificate ignore signed multiplier balance in the free-intercept problem too?

Answer: No. The choice w=2, b=−3 satisfies both general hard-margin constraints. Fixing b removes a primal variable and therefore removes its dual stationarity condition. When b is free and unpenalized, signed multipliers must sum to zero. A certificate for the restricted problem cannot omit that condition while claiming to certify the general one.

From separating hyperplanes to soft-margin kernel models

Cortes and Vapnik’s 1995 paper develops support-vector networks beyond error-free separation, combining feature-space separating surfaces with a treatment of nonseparable training data. It builds on earlier optimal-hyperplane and kernel constructions rather than introducing every component at once. Its soft-margin discussion considers a broader family of slack penalties; this chapter specifies the ordinary summed-hinge C-SVM objective so its equations and certificates refer to one clear problem. Support-Vector Networks, §§2–4 and Appendix A

Three ideas remain distinct. Margin normalization fixes score scale; convex primal-dual optimization chooses a solution and permits certificates; the kernel representation changes the feature geometry while retaining inner-product calculations. None of these alone supplies the other two. This is why the kernel trick is useful preparation, while one-class SVM and support vector regression require their own objectives.

For practical comparison, keep the kernel, loss, norm penalty, intercept convention and sample normalization explicit. Then separate optimization validation from generalization and from the training, validation and test protocol. An exact optimum answers “did we solve this objective?”; evaluating its usefulness on future data is a different question.

Make a prediction, then check

If the intercept is fixed at zero, must the dual still satisfy the signed-alpha balance constraint?

Choose one answer

Learning objectives

  • Distinguish functional margins, geometric margins and hinge violations under an explicit normalization.
  • Derive the dual and KKT conditions, including the balance constraint caused by a free unpenalized intercept.
  • Verify an exact restricted SVM through primal-dual equality and detect hard-margin infeasibility from an explicit witness.

Prerequisites & connections

Explore related knowledge →

References

  1. Support-Vector Networks
    Corinna Cortes; Vladimir Vapnik · 1995
  2. scikit-learn 1.7 — Support Vector Machines
    scikit-learn contributors

Version1 · Editorial status: Recorded technical checks completed

View technical check record (AI)

Codex · 2026-09-05 · Codex technical check: primary-source locations, original runnable models, independent mathematical and computational references, bilingual review and second-agent cross-checks; not independent human peer review.

  • Nine tests pass. An independent dual-box-face optimizer checks 90 soft fits; 30 hard reports are checked by global optimality or nonnegative infeasibility certificates. All returned optimum fields are checked through feasibility, stationarity, complementarity and the nonnegative primal-dual gap decomposition. The reference does not reuse scalar primal interval search.
  • Checked exact breakpoints, zero and contradictory features, single-label mathematical inputs, fixed-b infeasibility despite a feasible translated separator, sample duplication and C conversion, feature scaling, reordered certificate ties, invalid and empty inputs, 60-digit feature scales and extreme rational C. Rational bit cost and the one-dimensional fixed-intercept restriction remain explicit.
  • Complete original bilingual text and identical code with eleven output lines, eight matching display equations, six anchors and four answered exercises. Nine tests and strict MDX/KaTeX/React HTML, MathML and emphasis checks pass on the final snapshot. Root’s readability review corrected the regression topic slug and the Chinese wording for a specialized primal solver; code and mathematics were unchanged. Only article_text controls test paths. Status written records AI author checks, not human review; no general SVM library, whole-site build or browser acceptance is claimed.
  • Reread both full articles, eight displays, four answers and solver; nine author tests and final strict MDX/KaTeX/actual HTML pass. Independently checked scaling, ordinary versus squared hinge, free/fixed-intercept duals, degenerate support coefficients, strict convexity and hard infeasibility witnesses.
  • A third reference maps the dual alpha box to the plane (sum a*alpha,sum alpha), then exactly maximizes s−q²/2 along polygon edges. Thirty problems and126 hull vertices agree on w and primal/dual values with zero gap. It uses neither primal hinge breakpoints nor the author’s candidate/certificate allocation.
  • Corrected the nonexistent svr link slug to support-vector-regression in both languages and clarified the Chinese translation of specialized primal algorithm. Only navigation and terminology changed, with mathematics/program unchanged. Five hashes bind final files; this is an AI technical check, not human peer review.
  • Promoted the full prose, equations, code and exercises. Tests read formal MDX only; removed temporary fallbacks/draft skips and updated review assertion to checked. Algorithm and independent references are unchanged; final record binds both locale hashes.
  • Publication navigation points published topics to complete articles and removes corresponding pending wording, retaining directory entries for unwritten targets. Principles, equations, programs and exercises are unchanged; final article SHA values rebound.

Source locations checked:

  • Support-Vector Networks · Actually read extracted text of the 25-page university-hosted PDF: cover and abstract; §2, printed pages 277–280, hard margins and support-vector optimization; §3, pages 280–282, the nonseparable extension and broader penalty choices; Appendix A.1, pages 291–293, Lagrangian stationarity and KKT; Appendix A.2, pages 293–295, including the statement that experiments used k=2. Some displayed equations are absent from text extraction, so the modern ordinary C-SVM equations were checked against the official guide instead; no visual PDF inspection is claimed. The original university mirror at image.diku.dk failed; the UIC mirror worked. The DOI publisher record https://doi.org/10.1007/BF00994018 independently supplies September 1995 and journal pages, not a claim to have read its hosted full text.
  • scikit-learn 1.7 — Support Vector Machines · Actually read the versioned official HTML: §1.4.7.1, lines 330–355, ordinary summed-hinge primal, box-constrained dual with signed-alpha balance and decision function; §1.4.1.2, lines 166–177, separate probability calibration; §1.4.5, lines 227–236, C and consistent feature scaling; §1.4.6, lines 279–319, custom and precomputed kernel shape; lines 89–91, LinearSVC loss/intercept differences. The article defines functional and geometric margins independently and does not repeat the guide’s loose distance terminology or imply that every boundary record has positive alpha.
  • Support-Vector Networks · Independently opened UIC-hosted25-page original. Read cover1995/vol20/pp273–297, §§2–3 textual pp.5–10, extracted lines110–219: error-free optimal hyperplanes, support representation, nonseparable extension and broader convex slack penalty F. Several mathematical expressions were omitted by PDF extraction, so modern ordinary-hinge formulas were separately checked against fixed official HTML and independently derived; no whole-PDF visual or experimental replication claimed.
  • scikit-learn 1.7 — Support Vector Machines · Independently read fixed1.7.2 guide §1.4.7.1 lines330–355: ordinary-hinge C-SVM primal, box-constrained dual and signed-coefficient equality, PSD Gram and kernel scoring. Read §1.4.1.2 lines168–177 for calibration versus decision scores and §1.4.5 lines227–236 for objective parameter/scaling context. Did not adopt informal functional/geometric terminology or universal C-to-alpha conversions from surrounding prose. No library execution.

Related topics

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.