SVM: Separating hyperplane for unbalanced classes
  • References/Python/scikit-learn/Examples/Support Vector Machines

Find the optimal separating hyperplane using an SVC for classes that are unbalanced. We first find the separating plane with a plain

2025-01-10 15:47:30
SVM: Weighted samples
  • References/Python/scikit-learn/Examples/Support Vector Machines

Plot decision function of a weighted dataset, where the size of points is proportional to its weight. The sample weighting rescales the C parameter, which means

2025-01-10 15:47:30
One-class SVM with non-linear kernel
  • References/Python/scikit-learn/Examples/Support Vector Machines

An example using a one-class SVM for novelty detection.

2025-01-10 15:47:30
SVM with custom kernel
  • References/Python/scikit-learn/Examples/Support Vector Machines

Simple usage of Support Vector Machines to classify a sample. It will plot the decision surface and the support vectors.

2025-01-10 15:47:30
SVM-Anova
  • References/Python/scikit-learn/Examples/Support Vector Machines

This example shows how to perform univariate feature selection before running a SVC (support vector classifier) to improve the classification

2025-01-10 15:47:30
SVM: Maximum margin separating hyperplane
  • References/Python/scikit-learn/Examples/Support Vector Machines

Plot the maximum margin separating hyperplane within a two-class separable dataset using a Support Vector Machine classifier with linear kernel.

2025-01-10 15:47:30
SVM-Kernels
  • References/Python/scikit-learn/Examples/Support Vector Machines

Three different types of SVM-Kernels are displayed below. The polynomial and RBF are especially useful when the data-points are not linearly separable.

2025-01-10 15:47:30
Plot different SVM classifiers in the iris dataset
  • References/Python/scikit-learn/Examples/Support Vector Machines

Comparison of different linear SVM classifiers on a 2D projection of the iris dataset. We only consider the first 2 features of this dataset:

2025-01-10 15:47:30
Non-linear SVM
  • References/Python/scikit-learn/Examples/Support Vector Machines

Perform binary classification using non-linear SVC with RBF kernel. The target to predict is a XOR of the inputs. The color map illustrates the decision function learned

2025-01-10 15:47:30
Scaling the regularization parameter for SVCs
  • References/Python/scikit-learn/Examples/Support Vector Machines

The following example illustrates the effect of scaling the regularization parameter when using

2025-01-10 15:47:30