author: steeve laquitaine
Description: This is the codebase for a small iOS app that reports price predictions based on various house variables such as the number of rooms, etc.,.. The predictions are calculated by a machine learning model trained on the Boston housing dataset.
conda create ios_predict python==3.6.2
conda activate ios_predict
python src/build_model.py
# produces bhousing.mlmodel in project's root
- open xcode
- select single view app - ios - swiftUI (no need to select a team: None)
- Manually move
bhousing.mlmodel
tocore_ml_demo/
folder
contentView.swift
must be programmed with Apple's Swift
programming language.
- select e.g.,
simulator iphone 11 Pro Max
- build (
Ctrl + r
) or clickplay
A interactive simulator phone will appear to preview and test the app