Neural Network From Scratch In Python

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

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

  • @vikasparuchuri
    @vikasparuchuri Год назад +2

    Hi everyone! The code and explanations behind this video are here - github.com/VikParuchuri/zero_to_gpt/blob/master/explanations/dense.ipynb . You can also find all the lessons in this series here - github.com/VikParuchuri/zero_to_gpt .

  • @chk2899
    @chk2899 Год назад +3

    beautiful video Vik! starting my term project this week and NN are a main method i’ll be using! thank you!

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

    this videos have so much value! Thank you!!

  • @SALESENGLISH2020
    @SALESENGLISH2020 Год назад +2

    You are a fantastic teacher! Subscribing. Love your pace and explanation of what and why you are doing something.

  • @paulohss2
    @paulohss2 Год назад +3

    Great content as usual!

  • @s.t.s-a.t.s5429
    @s.t.s-a.t.s5429 Месяц назад

    Hi, thank you so much for your really helpfull videos and explanations.
    i wanted to ask you about the code for a CNN that i saw in your github, is there a video of it?
    or is part of other video already published?
    i can´t find it.
    thanks.

  • @agushendra
    @agushendra 11 месяцев назад +1

    Thank you for your thoroughly explanation, I have a question, how to decide which matrix to transpose during backpropagation?

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

    Thank you for your video, I believe there is an error 31:25 where you define the MSE function. Shouldn't you be taking the mean of the error squared?

  • @nickst2797
    @nickst2797 5 месяцев назад

    Thanks! One question, is this video complete?

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

    How would you calculate the bias?

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

    My dude, I love you!
    Peace! ❤

  • @Leonhart_93
    @Leonhart_93 5 месяцев назад

    If you went as far as to do it from scratch, then you might have just as well done it in anything other than Python. All that Python has in this field is libraries.
    Because it's not like Python has any advantage when it comes to linear algebra. If anything, it will be slower than most other things.

  • @saisureshmacharlavasu3116
    @saisureshmacharlavasu3116 10 месяцев назад +2

    1:06:17 We should not update the weights until we find the grads for all layers. In your code its a mistake, pls correct it.

  • @theparten
    @theparten 11 месяцев назад

    could you show me the link to get the dataset you used please...

  • @BrijeshAmarnath
    @BrijeshAmarnath Год назад

    I'm also having the problem with ModuleNotFoundError: No module named 'csv_data'
    at the very beginning

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

    Does anyone know why for the mse function he does (actual - predicted) ** 2, but for mse_grad he writes predicted - actual? Wouldn't it matter whether you do (predicted - actual) or (actual - predicted) in the mse_grad function as this will change how you update your parameters?

  • @siljageorge1178
    @siljageorge1178 Год назад

    Does this code work if there is no hidden layer? Only an input and output layer?

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

    WTF at 5:09 happened mse has only two arguments how it's taking weight and bias as input?

  • @syedmuqtasidalibscs0434
    @syedmuqtasidalibscs0434 Год назад

    please i want to download the dataset that you are using in this code. kindly share link of this dataset thanks you

  • @FirstLast-tx7cw
    @FirstLast-tx7cw 10 месяцев назад

    @41:49 the link to the document pls

  • @luckyman912
    @luckyman912 Год назад

    Hi Vik!
    Please help with football video information.

    Can you please tell me how to start predicting future matches? I prepared the schedule for next week and added it to the "matches.csv" file
    In the data, I have moving averages for the following data:
    "xg", "xga", "gls", "sh", "sot", "g/sh", "g/sot", "dist", "fk", "pk", "pkatt", "npxg" ", "npxg/sh".
    How can I run prediction now?
    Thanks in advance for your reply.
    P.S. I am writing through google translator, I hope you understand what I mean.

    • @Dataquestio
      @Dataquestio  Год назад

      I think you want help on this video, right? - ruclips.net/video/0irmDBWLrco/видео.html
      You basically take all of the training data up to the last day (today), then generate a prediction. The prediction will be for the next match. You'll need to do it without backtesting, and without dropping any rows from the end of the training data.
      I talk a little bit about the steps at the very end of this video - ruclips.net/video/egTylm6C2is/видео.html

    • @luckyman912
      @luckyman912 Год назад

      Vik, thanks for the reply.
      Yes, I watched the NBA video and noticed that at the very end there is information about what I am trying to figure out😊
      But I watch the video through a translator and there is a possibility that he translates the speech from the video incorrectly, so this process is not clear to me yet.
      Is it possible for you to record a short video demonstrating how to do this?
      And what's the price?
      Thanks for the info 👍

  • @utti_12c
    @utti_12c 9 месяцев назад

    Wow thank❤

  • @trustlesss
    @trustlesss Год назад

    where bias came from? 11

    • @emeebritto
      @emeebritto Год назад

      it's like a weight, it's adjusted in training. 11 is just an example (for video)

  • @beep615
    @beep615 4 месяца назад

    i love math

  • @thechoosen4240
    @thechoosen4240 Год назад

    Good job bro, JESUS IS COMING BACK VERY SOON; WATCH AND PREPARE

  • @chrischoir3594
    @chrischoir3594 2 месяца назад

    Python is a baby's toy

  • @jackaubrey8614
    @jackaubrey8614 Год назад

    Many thanks for this very comprehensive course, but I'm having a problem - when I run the program I get the following output:
    Epoch: 0 Train MSE: nan Valid MSE: nan
    Epoch: 1 Train MSE: nan Valid MSE: nan
    Epoch: 2 Train MSE: nan Valid MSE: nan
    (Truncated example).
    Printing 'loss' and 'epoch_loss' seperately, the following is output (after approx 4500 lines of numeric output):
    epoch_loss: 4789.425964748963
    loss: [[-69.19245634]
    [-62.18411289]
    [ nan]
    [ nan]
    [ nan]
    [-63.21175768]
    [-63.18508556]
    [-62.17785529]]
    epoch_loss: nan
    loss: [[nan]
    [nan]
    Running both my own code from following this video plus your code from Github, same results. Any ideas?

    • @MrM-br1ke
      @MrM-br1ke Год назад

      HI! Have you solved it?

    • @Dataquestio
      @Dataquestio  Год назад

      There can be a lot of potential reasons for nan loss, so it's hard to know for sure. Basically, some value (weight, prediction, gradient) is too large for the numpy data type.
      Things I would try:
      - Lower the learning rate
      - It's possible your system defaults to a float format with a lower range - check the dtype of the numpy arrays, and switch to float64 if the dtype is something else
      - Are you initializing the weights the same way I am? You could try initializing them to smaller values than I did to see if anything changes.
      - Make sure you're using mse_grad as the loss, not mse