This section will go through the details of creating a regression model and then using the regression model in an iOS mobile application. It will provide a detailed walk-through of the various steps involved in creating an iOS regression ML application to address the problem defined.
The following software needs to be installed on the developer machine:
- Python
- Xcode in a Mac environment
The exercise programs for this chapter can be downloaded from our GitHub repository at https://github.com/PacktPublishing/Machine-Learning-for-Mobile/tree/master/housing%20price%20prediction.
In the following program, we are going to use pandas
, numpy
, and scikit-learn
to create the model. So, install these packages from the pip
package manager using the following command from the Command Prompt/Terminal:
pip install scikit-learn pip install numpy pip install pandas
In order to convert the created model to the Core ML format, we need to use the...