Over a million developers have joined DZone.

Watson Machine Learning Sample for Developers

DZone's Guide to

Watson Machine Learning Sample for Developers

You don't have to be a data scientist to use Watson Machine Learning! Get a dev-friendly walkthrough with an example that uses the Titanic dataset.

· AI Zone ·
Free Resource

The most visionary programmers today dream of what a robot could do, just like their counterparts in 1976 dreamed of what personal computers could do. Read more on MistyRobotics.com and enter to win your own Misty. 

Last month, IBM announced the general availability of Watson Machine Learning, which can be used by data scientists to create models and used by developers to run predictions from their applications. Below is a simple sample walkthrough.

As a sample scenario, I've chosen the Titanic dataset to predict whether people would have survived based on their age, ticket class, sex, and the number of siblings and spouses aboard the Titanic. I picked this dataset because it seems to be used a lot in tutorials and demos how to do machine learning.

There are different ways for data scientists to create models with Watson Machine Learning. I've used the simplest approach. With the Model Builder, you can create models with a graphical interface without having to write code or understand machine learning.

First, I created a new model.

Next, I uploaded the Titanic dataset (.csv file).

At the top of the next page, the label (column to predict) is defined — in this case, "survived." Below the label, the list of features like age and ticket class is specified. Since in this sample I want to predict "survived" or "not survived," I choose binary classification. Since I'm not a data scientist, I didn't know which estimators to use and selected all of them.

After the training has been completed, you can see the results of the different estimators, select the best one, and save the model.

In order to run predictions from applications, the model needs to be deployed (bottom of the screenshot).

Once deployed, an endpoint is provided to invoke POST requests with input features which returns the prediction. Check out the API Explorer for details.

To learn more about Watson Machine Learning, open IBM Data Science Experience and give it a try.

Robot Development Platforms: What the heck is ROS and are there any frameworks to make coding a robot easier? Read more on MistyRobotics.com

ai ,watson ,machine learning ,data science ,tutorial ,predictive analytics

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}