Implementing in Watson

Again, rather than dwell on the interpretation of the previous output, let's look at how we might be able to implement the same exercise using IBM Watson Studio. We could use the Notebook we created earlier in this chapter, but let's create a fresh new one (following the same procedure as we used earlier).

Once the Notebook is open and ready, we can run the Python code we just reviewed. First paste the original code block into the first Notebook cell and click on Run:

Repeat the step but with the following code block:

This yields the following output:

Get Hands-On Machine Learning with IBM Watson 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.