Это видео недоступно.
Сожалеем об этом.

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

Поделиться
HTML-код
  • Опубликовано: 17 окт 2023
  • 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...

Комментарии • 18

  • @jaskirat1999
    @jaskirat1999 6 месяцев назад +3

    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 9 месяцев назад +13

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

    • @IkbalDemirdoven
      @IkbalDemirdoven 9 месяцев назад +5

      same, I did Int64

    • @ASD-ss2lq
      @ASD-ss2lq 8 месяцев назад

      same here@@IkbalDemirdoven

    • @ondrejrambousek9250
      @ondrejrambousek9250 8 месяцев назад

      same for me..

    • @eqprog
      @eqprog 7 месяцев назад

      same as well. M1 Max here, if it matters.

    • @Comenory
      @Comenory 6 месяцев назад +1

      upvoted, got same issue

  • @BIOHAZARD_V2
    @BIOHAZARD_V2 3 месяца назад +1

    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

  • @kajs2875
    @kajs2875 6 месяцев назад +1

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

  • @bluewho
    @bluewho 7 месяцев назад +1

    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 6 месяцев назад +1

      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?

  • @iggi7655
    @iggi7655 6 месяцев назад

    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 6 месяцев назад

      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 3 месяца назад

      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.

  • @chirags2711
    @chirags2711 6 месяцев назад

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

    • @iggi7655
      @iggi7655 6 месяцев назад +1

      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.