Your First Machine Learning System
A little ML goes a long way.
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.
Projects
-
Deploying a Simple Machine Learning App with Node.js and Watson ML
Medium | GitHub | demoGive users real-time predictions; Watson ML for developers (part 3).
-
Building Your First Machine Learning System
Medium | NotebookTrain your model and deploy it, Watson ML for developers (part 2).
-
Watson Machine Learning for Developers
MediumUnderstanding the basic problems and workflow (part 1).