A simple example to train a Machine Learning model. It's just a quick glimpse of training models.
I hope it could be your first step in Machine Learning.
Python 2.7, numpy, pandas and sklearn are required.
You can download an Anaconda for a easy setup.
CoreMLModelDemo.py shows minimum codes to train a model which can predict a person's weight by his gender and height.
More details about this demo in Chinese.