October 2018
Intermediate to advanced
134 pages
2h 39m
English
Let's take a look at an example to predict whether or not a patient has diabetes:
example = df.iloc[1]print(example)
This gives us a DataFrame for a patient with 1 as the class label, shown in the following screenshot:

prediction = grid.predict(X_standardized[1].reshape(1, -1))print(prediction)
This gives us the following output:

As seen in ...
Read now
Unlock full access