July 2017
Intermediate to advanced
382 pages
9h 13m
English
Let's look at a simple example of a voting classifier that combines three different algorithms:
We can combine these three algorithms into a voting classifier and apply it to the breast cancer dataset with the following steps:
In [1]: from sklearn.datasets import load_breast_cancer ... cancer = load_breast_cancer() ... X = cancer.data ... y = cancer.target In [2]: from sklearn.model_selection import train_test_split ...Read now
Unlock full access