How to implement Perceptron from scratch with Python

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 17

  • @alfonsoramirezelorriaga1153
    @alfonsoramirezelorriaga1153 Рік тому +3

    I liked that the mathematical explanation is very clear. Also, for the python implementation you wrote the code from scratch, rather than copy past it, and walked the viewer through each line. Thank you.

  • @zmm978
    @zmm978 2 роки тому +14

    The ending escalated very quickly, lol

  • @tunmbi_okediran
    @tunmbi_okediran 3 місяці тому

    Thank you! Clear and precise.

  • @kshitijnishant4968
    @kshitijnishant4968 6 місяців тому

    What's different in between this and Logit? Both scripts feel the same?

  • @jerielopvp
    @jerielopvp Рік тому +1

    And how would you implement the multiclass one ?

  • @maryamaghili1148
    @maryamaghili1148 Рік тому +1

    why you did not write the loop in vectorized form like what you did in regression models?
    what is the difference?

    • @emrek1
      @emrek1 Рік тому +1

      He is updating the weights and biases for each data sample. So at each iteration he makes the prediction with the updated weight. This is stochastic gradient. It can be done in the other way as you said also. The weights will be updated once after an epoch in that case.

  • @rizzbod
    @rizzbod Рік тому

    Thnx buddy! Clean explanation

  • @marco8673
    @marco8673 Рік тому

    during fittig
    linear_output = np.dot(x_i,self.weight) +self.bias
    during prediction
    linear_output = np.dot(X,self.weight) +self.bias
    X and x_i are two type of different object, so during the fitting linear_output is the prediction is done on one item, and during the prediction is a prediction of a list of item right?

  • @ojaswighate2588
    @ojaswighate2588 Рік тому

    Thank you for sharing!!

  • @fazulf1054
    @fazulf1054 2 роки тому

    Nice explanation

  • @mioszmephir2926
    @mioszmephir2926 Рік тому

    thanks for help

  • @mohammedamirjaved8418
    @mohammedamirjaved8418 2 роки тому

    Love you man...😘

  • @georulez89
    @georulez89 Рік тому +1

    didnt know messi was into teaching python

  • @MustafaAli-ve1vm
    @MustafaAli-ve1vm 2 роки тому +2

    accuracy 100%?? that should be suspicious