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

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

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

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

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

    • @IkbalDemirdoven
      @IkbalDemirdoven Год назад +5

      same, I did Int64

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

      same here@@IkbalDemirdoven

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

      same for me..

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

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

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

      upvoted, got same issue

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

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

  • @BIOHAZARD_V2
    @BIOHAZARD_V2 5 месяцев назад +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

  • @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 месяцев назад +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.

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