Connecting SwiftUI to Core ML – BetterRest SwiftUI Tutorial 6/7

preview_player
Показать описание

Other parts in Project 4:

6. Connecting SwiftUI to Core ML: This video

Рекомендации по теме
Комментарии
Автор

Looks like the prediction input parameters are now Int64 instead of Double. So the prediction at 8:32 should now read:

_let prediction = try model.prediction(wake: Int64(hour + minute), estimatedSleep: sleepAmount, coffee: Int64(coffeeAmount))_

jaskirat
Автор

at 9 minutes for the prediction constant, why does swift have me input Int64 for wake and coffee?

nyquil
Автор

1:30 I didn't know how to rename a file in Xcode (there was no rename or refactor option) so I figured out you can do it by holding left click on it

BIOHAZARD_V
Автор

it is not showing the alert that it was supposed to, also the Int64 er showing for my case too

kajs
Автор

12:26 Sir, What shortcut do you use to discard the rest of the word while changing alertMessage to alertTitle?

chirags
Автор

Looks like things have changed and he missed updating this. I also can't run the predictive model in the simulator now either.

bluewho
Автор

Im using an older Mac that has xcode 14.3.1, not sure if I did anything wrong because when I press the coreML file on my xcode, it only shows the ML logo and wont allow me to create line 45 at 3:17. Not sure if anyone is also is using an older mac and it works for them.

iggi
welcome to shbcf.ru