Quickstart: An example of binary classification with the microsoftml Python package
Applies to: Machine Learning Server 9.x
Learn how to use binary classification using the functions in the microsoftml package that ships with Machine Learning Server. Data scientists work locally in their preferred Python IDE and favorite version control tools to build scripts and models.
This example uses the well known breast cancer dataset. The dataset contains characteristics of cell nuclei and has a target label to indicate whether the tumor was benign (0) or malignant (1). The example builds a linear model with the rx_fast_linear function from the microsoftml package.
After you have completed the prerequisites, this task takes approximately 10 minutes to complete.
Before you begin this QuickStart, have an the following ready:
The example for this quickstart is stored in a Jupyter notebook. This notebook format allows you to not only see the code alongside detailed explanations, but also allows you to try out the code.
This quickstart notebook walks you through how to:
Load the example data
Import the microsoftml package
Add transforms for featurization
Train and evaluate the model
Predict using the model on new data
You can try it yourself with the notebook.
Now that you've tried this example, you can start developing your own solutions using the MicrosoftML packages and APIs for R and Python:
For more about Machine Learning Sever in general, see Overview of Machine Learning Server
For more machine learning samples using the microsoftml Python package, see Python samples for MicrosoftML.