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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.