After adding the two Core ML model files, HouseLR.mlmodel and HouseSVM.mlmodel, to a new Swift-based Xcode iOS project, HouseLR.mlmodel looks like Figure 11.7:
The other HouseSVM.mlmodel model looks exactly the same, except the Machine Learning Model Name and the Model Class are changed from HouseLR to HouseSVM.
Add the following code to class ViewController in ViewController.swift:
private let lr = HouseLR()private let svm = HouseSVM()override func viewDidLoad() { super.viewDidLoad() let lr_input = HouseLRInput(Bedrooms: ...