December 2018
Intermediate to advanced
274 pages
7h 46m
English
This section will explain how we are going to create the random forest model file using scikit-learn and convert it into the .mlmodel file that is compatible with Core ML. We are going to use the Breast Cancer dataset to create the model. The following is a Python program that creates a simple random forest model using scikit-learn and the Breast Cancer dataset. Then, the Core ML tools convert it into the Core ML—compatible model file. Let's go through the program in detail.
First, we need to import the required packages:
# importing required packages import numpy as np
NumPy is the fundamental package for scientific computing with Python. It contains a powerful N-dimensional array object. This ...
Read now
Unlock full access