Splitting the dataset

Now let's split the dataset by performing the following steps:

  1. First, we need to import the algorithms from the sklearn library, in order to work with the dataset as follows:
from sklearn.neighbors import KNeighborsClassifierfrom sklearn.neural_network import MLPClassifierfrom sklearn.gaussian_process import GaussianProcessClassifierfrom sklearn.gaussian_process.kernels import RBFfrom sklearn.tree import DecisionTreeClassifierfrom sklearn.ensemble import RandomForestClassifier, AdaBoostClassifierfrom sklearn.naive_bayes import GaussianNBfrom sklearn.svm import SVCfrom sklearn.metrics import classification_report, accurac
To learn more about these algorithms, it is recommended that you take a look at the sklearn documentation ...

Get Machine Learning for Healthcare Analytics Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.