The Data Lab menu
  • Topicsarrow_drop_down
  • Projects
  • Aboutarrow_drop_down
  • Get Connected
  • Machine Learning for Developers
  • Notebooks for Developers
  • Offline First
  • Partners + Data
  • Serverless + Data
  • Working with JSON
  • Team
  • Get Involved
  • Code of Conduct
  • Event Support
  • Projects
  • Topicsarrow_drop_down
  • Aboutarrow_drop_down
  • Get Connected
  • Machine Learning for Developers
  • Notebooks for Developers
  • Offline First
  • Partners + Data
  • Serverless + Data
  • Working with JSON
  • Team
  • Get Involved
  • Code of Conduct
  • Event Support
Machine Learning for Developers / Collection

Your First Machine Learning System

A little ML goes a long way.

Mark Watson
Welcome to my data lab.
More by Mark Watson

We’ll show you how to get your first ML system up and running.

The tools

If you can load up a Jupyter Notebook with PixieDust, you’re already halfway there. Quickly load and display data, like the following in a Python Jupyter Notebook cell:

You can install PixieDust, Anaconda, and Jupyter locally, or just use a service. IBM’s Data Science Experience comes preconfigured and lets you quickly deploy Jupyter Notebooks in the cloud, as well as backing services such as Apache Spark. It’s a great place to get your feet wet.

The model

Now it’s a matter of knowing what kind of problem you want to solve, and the libraries to help you do it. The most common problem, predicting numbers, is called a “regression” problem, so we’ll start with that. Using the Spark ML libraries, you can set up a machine learning model with only a few lines in a notebook:

Then, building a model is almost as simple as passing in the right parameters:

The prediction

Now run your model against a data set:

We unpack the code line-by-line in Building Your First Machine Learning System, but thankfully it’s not a lot to grok. The article has more on deploying the model to the cloud to enable REST API access, opening up your predictions to users of your apps.

See? The basics can take you pretty far. Check out the projects here for more ML basics, and beyond.

↓ View projects in this collection

Projects

  • Deploying a Simple Machine Learning App with Node.js and Watson ML
    Medium | GitHub | demo

    Give users real-time predictions; Watson ML for developers (part 3).

    • Watson Machine Learning
    • Nodejs
  • Building Your First Machine Learning System
    Medium | Notebook

    Train your model and deploy it, Watson ML for developers (part 2).

    • Watson Machine Learning
    • Python
    • Jupyter Notebook
    • PixieDust
  • Watson Machine Learning for Developers
    Medium

    Understanding the basic problems and workflow (part 1).

    • Watson Machine Learning
© 2017 IBM Watson Data Lab