In a binary classification problem, what is the minimum C (can be dependent on the data)…
- User
In a binary classification problem, what is the minimum C (can be dependent on the data) that guarantees that a linear SVM will fit the data perfectly if they are linearly separable?
Assistant
If the data is linearly separable, then a hard-margin SVM (with infinite C) will fit the data perfectly. This means the SVM will find a hyperplane that perfectly separates the two classes with no misclassifications or margin errors.
More formally, if the training data {(xi, yi)} satisfies:
yi(w^T xi + b) >= 1 for all i
for some w,b
Then there exists a solution with C=infinity that achieves zero training error. Setting C=infinity corresponds to maximizing the margin and not allowing any slack, which is possible here since the data is linearly separable.
So the minimum C that guarantees perfect fitting is C=infinity. No finite C value would guarantee perfect fitting, since that would allow some slack and misclassifications. Although in practice, a very large (but finite) C value may separate the data perfectly depending on the solver implementation and precision.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.