Xcode also uses information about the model’s inputs and outputs to automatically generate a custom programmatic interface to the model, which you use to interact with the model in your code. For MarsHabitatPricer.mlmodel, Xcode generates interfaces to represent the model (MarsHabitatPricer), the model’s inputs (MarsHabitatPricerInput), and the model’s output (MarsHabitatPricerOutput).
MarsHabitatPricer.mlmodel
模型,則可以宣告某個常數為 MarsHabitatPricer()
實例MarsHabitatPricerInput
MarsHabitatPricerInput