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

  Рет қаралды 3,981

Paul Hudson

Paul Hudson

Күн бұрын

Download the completed project here: github.com/two...
Other parts in Project 4:
Introduction: www.hackingwit...
1. Entering numbers with Stepper: • Entering numbers with ...
2. Selecting dates and times with DatePicker: • Selecting dates and ti...
3. Working with dates: • Working with dates - B...
4. Training a model with Create ML: • Training a model with ...
5. Building a basic layout: • Building a basic layou...
6. Connecting SwiftUI to Core ML: This video
7. Cleaning up the user interface: • Cleaning up the user i...
Wrap up and challenges: www.hackingwit...
You can find the full set of videos, along with transcriptions, challenges, tests, and more, in my free 100 Days of SwiftUI course: www.hackingwit...
Watch the full 100 Days of SwiftUI playlist here: • 100 Days of SwiftUI (i...

Пікірлер: 19
@jaskirat1999
@jaskirat1999 9 ай бұрын
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))_
@nyquil5423
@nyquil5423 Жыл бұрын
at 9 minutes for the prediction constant, why does swift have me input Int64 for wake and coffee?
@IkbalDemirdoven
@IkbalDemirdoven Жыл бұрын
same, I did Int64
@ASD-ss2lq
@ASD-ss2lq 11 ай бұрын
same here@@IkbalDemirdoven
@ondrejrambousek9250
@ondrejrambousek9250 11 ай бұрын
same for me..
@eqprog
@eqprog 10 ай бұрын
same as well. M1 Max here, if it matters.
@Comenory
@Comenory 9 ай бұрын
upvoted, got same issue
@kajs2875
@kajs2875 9 ай бұрын
it is not showing the alert that it was supposed to, also the Int64 er showing for my case too
@BIOHAZARD_V2
@BIOHAZARD_V2 6 ай бұрын
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
@chirags2711
@chirags2711 9 ай бұрын
12:26 Sir, What shortcut do you use to discard the rest of the word while changing alertMessage to alertTitle?
@iggi7655
@iggi7655 9 ай бұрын
Holding the option key and using your arrow keys will allow you to move from word to word, then also holding the command key will let you move from one side of the line to the other. You can also hold shift to highlight the section.
@iggi7655
@iggi7655 9 ай бұрын
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.
@Comenory
@Comenory 9 ай бұрын
Not sure if related but I think this is part of his 100 days of SwiftUI course where he previously mentioned Xcode 15 as a system requirement
@volimpia
@volimpia 6 ай бұрын
I got the same issue with newest Xcode while using an old saved csv file from the old course, i am redoing it now. After downloaded the new file and regenerated ml model, all works, hope this helps.
@bluewho
@bluewho 10 ай бұрын
Looks like things have changed and he missed updating this. I also can't run the predictive model in the simulator now either.
@Comenory
@Comenory 9 ай бұрын
I just recently bought an M2 Mac Mini, am running Sonoma 14.2 and Xcode 15.2, and it worked fine for me. What system / OS ver. / Xcode ver. are you running?
Cleaning up the user interface - BetterRest SwiftUI Tutorial 7/7
7:31
HELP!!!
00:46
Natan por Aí
Рет қаралды 54 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 200 МЛН
Understand Core ML on iOS in 5 Minutes
5:40
Mobile Quickie
Рет қаралды 15 М.
How to use CreateML to generate Machine learning Models in Xcode - Xcode 15?
8:39
CoreML on iOS: Get started programming a simple Swift app
49:34
Manning Publications
Рет қаралды 4,2 М.
Training CoreML Object Detection model from scratch using CreateML
16:30
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 49 М.
Create ML for Everyone
43:40
Paul Hudson
Рет қаралды 32 М.
FASTEST way to Make a CAMERA APP with Swift AVFoundations
40:14
Rebeloper - Rebel Developer
Рет қаралды 21 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 54 МЛН