Visualizing the probabilistic predictions of a VotingClassifier
Plot the predicted class probabilities in a toy dataset predicted by three
different classifiers and averaged by the VotingClassifier.
First, three linear classifiers are initialized. Two are spline models with
interaction terms, one using constant extrapolation and the other using periodic
extrapolation. The third classifier is a Nystroem
with the default “rbf” kernel.
In the first part of this example, these three classifiers are used to
demonstrate soft-voting using VotingClassifier with weighted
average. We set , meaning the constant extrapolation spline
model’s predictions are weighted twice as much as the periodic spline model’s,
and the Nystroem model’s predictions are weighted three times as much as the
periodic spline.

