Neural Network For Handwritten Digits Classification | Deep Learning Tutorial 7 (Tensorflow2.0)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • In this video we will build our first neural network in tensorflow and python for handwritten digits classification. We will first build a very simple neural network with only input and output layer. After that we will add a hidden layer and check how the performance of our model changes.
    🔖 Hashtags 🔖
    #handwrittendigitrecognition #tensorflowtutorial #handwritingrecognition #mnisttensorflowtutorial
    Do you want to learn technology from me? Check codebasics.io/... for my affordable video courses.
    Github link for code in this tutorial: github.com/cod...
    Next video: • Activation Functions |...
    Previous video: • Pytorch vs Tensorflow ...
    Deep learning playlist: • Deep Learning With Ten...
    Prerequisites for this series:
    1: Python tutorials (first 16 videos): www.youtube.co...
    2: Pandas tutorials(first 8 videos): • Pandas Tutorial (Data ...
    3: Machine learning playlist (first 16 videos): www.youtube.co...
    🌎 My Website For Video Courses: codebasics.io/...
    Need help building software or data analytics and AI solutions? My company www.atliq.com/ can help. Click on the Contact button on that website.
    #️⃣ Social Media #️⃣
    🔗 Discord: / discord
    📸 Dhaval's Personal Instagram: / dhavalsays
    📸 Codebasics Instagram: / codebasicshub
    🔊 Facebook: / codebasicshub
    📱 Twitter: / codebasicshub
    📝 Linkedin (Personal): / dhavalsays
    📝 Linkedin (Codebasics): / codebasics
    🔗 Patreon: www.patreon.co...

ความคิดเห็น • 495

  • @codebasics
    @codebasics  2 ปีที่แล้ว +18

    Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced

    • @brad8122
      @brad8122 2 ปีที่แล้ว +3

      Hello, why do we have 1875 steps in each epoch in 20:40 ? Where is this 1875 number coming from? It is not the 60000 training data size or nothing else we saw above that line?
      Thank you so much by the way..,

    • @Rafian1924
      @Rafian1924 ปีที่แล้ว +1

      Sir.. you deserve to teach the entire world machine learning.. you are an exceptional talent.

    • @rohithgangarapu4648
      @rohithgangarapu4648 หลายเดือนก่อน

      @@brad8122 good question bro same doubt?a brief information about epoch sir?

  • @phaniauce
    @phaniauce 4 ปีที่แล้ว +69

    Excellent Video.. I always follow the philosophy: First have something working with as much little theory as possible...and then play with parameters that increase curiosity and then dissect the theory..Makes life easy.. than the other way around..

    • @codebasics
      @codebasics  4 ปีที่แล้ว +15

      Phani, exactly. I am following exactly same principal. There are many things in this tutorial such as loss, optimizer etc which remains mystery but I wanted to use that first and than unveil the mystery step by step :)

  • @riteshnimje3302
    @riteshnimje3302 4 ปีที่แล้ว +1

    If we use activation function 'softplus' and 'sigmoid' and optimizer is 'nadam' is also giving good result
    model=keras.Sequential([
    keras.layers.Flatten(input_shape=(28,28)),
    keras.layers.Dense(300,activation='softplus'),
    keras.layers.Dense(10,activation='sigmoid')
    ])
    model.compile(
    optimizer='nadam',
    loss='sparse_categorical_crossentropy',
    metrics=['accuracy']
    )
    model.fit(X_train_flattend,y_train,epochs=10)

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      What accuracy did you get here?

    • @riteshnimje3302
      @riteshnimje3302 4 ปีที่แล้ว +1

      98.47 percent 😊

  • @budiaribowo8885
    @budiaribowo8885 2 หลายเดือนก่อน

    thank you, sir can you make video for simple insurance problem from the start of video?

  • @shashankreddy8390
    @shashankreddy8390 3 ปีที่แล้ว

    may I know what is 1875/1875 when we run model.fit()?

  • @panuvatdanvorapong2812
    @panuvatdanvorapong2812 3 ปีที่แล้ว

    what if the output isn't binary? more than 2 classes. What should the model be like please suggest?

  • @AlonAvramson
    @AlonAvramson 3 ปีที่แล้ว +31

    from the Optimizers ['SGD','RMSprop','Adam','Adadelta','Adagrad','Adamax','Nadam','Ftrl'] with 5 Ephocs, Adamax got the highest score on Test samples. Ftrl got the lowest score.

    • @sanuarhossain8184
      @sanuarhossain8184 18 วันที่ผ่านมา

      adafactor gives only 0.15. its worst

  • @niveditadas5532
    @niveditadas5532 ปีที่แล้ว +39

    Sir, you are a born teacher. The way you represent complex topics in simpler way is truly amazing. I really admire your hard work for designing such wonderful courses. Thank you sir.

  • @arnavg7789
    @arnavg7789 2 ปีที่แล้ว +5

    THANK YOU ,LOVE FROM INDIA .... GAYATRI , GAURAV (LOOSERS)

  • @skojjalar
    @skojjalar 2 ปีที่แล้ว +23

    Using 1 hidden layer (1000) & relu (remaining parameters untouched), I reached 0.9908 accuracy. Thanks a lot for this course.

    • @RajaKumar-hg9wl
      @RajaKumar-hg9wl 2 ปีที่แล้ว +2

      Is it a evaluation score or training score?

    • @shijilvr120
      @shijilvr120 3 หลายเดือนก่อน +1

      Training

  • @iva1389
    @iva1389 3 ปีที่แล้ว +10

    This is the most elegant solution of Hand-Written digits MNIST problem in the whole Internet! Thank you. I've learned so much! You have my sub and much respect!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @amineamaach4450
    @amineamaach4450 3 ปีที่แล้ว +26

    Just love the way you're making things pretty simple. A big shout-out to you.

  • @abeerzidan4349
    @abeerzidan4349 ปีที่แล้ว +3

    Dear Sir... thanks a lot for your clever and robust teaching ... please can i get presentation of this course ...

  • @jaganinfo
    @jaganinfo 4 ปีที่แล้ว +10

    student : What is tensor?
    codebasics: in the general case, an array of numbers arranged on a regular grid with a variable number of axes is know as a tensor

  • @sand9282
    @sand9282 ปีที่แล้ว +8

    Even though you have mentioned 3Blue1brown over here you have explained Neural Network with much concrete example here. Your examples are very easy to visualise and understand for beginners and in some cases it's even better than the great AndrewNG himself. Being from the field of education I see all the qualities of a great teacher in you, keep up the good work and thank you for such a good tutorial for free.

    • @codebasics
      @codebasics  ปีที่แล้ว +5

      🙏🙏🙏 thanks and yes I am continuing it and even left my 9 to 6 job to do this full time

  • @jainamshroff4998
    @jainamshroff4998 2 ปีที่แล้ว +2

    Since we have categorical predictions to be made, shouldn't we use softmax as an activation function in the output layer to get best possible performance?

    • @ousmanealamakaba3135
      @ousmanealamakaba3135 2 ปีที่แล้ว

      i think it depends on your choice based on activation function

  • @aditiparetkar2862
    @aditiparetkar2862 2 ปีที่แล้ว +9

    Thank you so much for the great explanation!
    By using relu in the hidden layer and softmax in the output layer , was able to achieve an accuracy of 99%

    • @eclairs0909
      @eclairs0909 2 ปีที่แล้ว

      can you explain a little more how to use it?? or refer me some videos

  • @rkag5811
    @rkag5811 4 ปีที่แล้ว +10

    Well lectured..Have to listen twice to understand this session accordingto my perception..

  • @cooleo2350
    @cooleo2350 ปีที่แล้ว +7

    This is phenomenal, thank you so much! Truly a brilliant teacher. Been looking for a while, and this video summed up so much. You sir earned yourself a subscriber, and perhaps many more as I share your channel. Thank you for taking the time to do this.

  • @manishgautam134
    @manishgautam134 4 ปีที่แล้ว +4

    accuracy = 99.25% with code below,
    model = keras.Sequential([
    keras.layers.Flatten(input_shape=(28, 28)),
    keras.layers.Dense(100,activation='relu'),
    keras.layers.Dense(10,activation='sigmoid')
    ])
    model.compile(optimizer='adam',
    loss='sparse_categorical_crossentropy',
    metrics=['accuracy'])
    model.fit(x_train,y_train,epochs=10)

    • @adamalasaibalajireddy4688
      @adamalasaibalajireddy4688 2 ปีที่แล้ว

      Sir can you please send me source codes files if available

    • @pasangsherpa6594
      @pasangsherpa6594 2 ปีที่แล้ว

      accuracy= 99.92%
      with code below
      model = keras.Sequential([
      keras.layers.Flatten(input_shape=(28, 28)),
      keras.layers.Dense(100,activation='relu'),
      keras.layers.Dense(50,activation='sigmoid'),
      keras.layers.Dense(10,activation='sigmoid')
      ])
      model.compile(optimizer='adam',
      loss='sparse_categorical_crossentropy',
      metrics=['accuracy'])
      model.fit(X_train,y_train,epochs=70)

  • @drmanishmadhavatripathi6798
    @drmanishmadhavatripathi6798 4 ปีที่แล้ว +8

    I become fan of you as your style of explaining the things. You explained the complex topics in such a lucid manner that audience could not be distracted for a single while.

  • @adityashining
    @adityashining ปีที่แล้ว +1

    Dhaval, does the trained model expect that after deploying it to real life situation, I should provide the images of handwritten text (say by myself) in a specific size of file, format of file , color of handwritten text etc ? Or can it be different from mnist database ?

  • @himanshugarg7113
    @himanshugarg7113 4 ปีที่แล้ว +4

    Hello, I was implementing handwritten digit code in macOS. Every time I ran the model code, I was getting an error 'Kernel has died. It will restart automatically'. However, below snippet resolved my problem
    import os
    os.environ['KMP_DUPLICATE_LIB_OK']='True'
    Can someone please explain this issue?

  • @amitagrawal9308
    @amitagrawal9308 3 ปีที่แล้ว +4

    Hi,
    For prediction of single image, you need to reshape to (1,784) i.e. X_test_flattened[0].reshape(1, 784).

  • @raghuram6382
    @raghuram6382 2 ปีที่แล้ว +4

    Hello sir, thanks for beautiful explanation and I just got one doubt, why haven't you used standard scaler or Minmax kind instead of scaling it down by dividing 255?

    • @argha-qi5hf
      @argha-qi5hf 2 ปีที่แล้ว

      He used min max scaling only. Notice that x_min = 0 and x_max = 255. Just omit the 0s.
      scaled_x = (x - 0)/(255 - 0) = x/255

  • @mithlesh0singh
    @mithlesh0singh 4 ปีที่แล้ว +10

    love the have you figure out the issue of accuracy, That makes a huge difference.

  • @theodoregiannilias5140
    @theodoregiannilias5140 3 ปีที่แล้ว +3

    God damn man you're amazing, every doubt that I had during my education degree you solved it. Keep up the good work man :D

  • @amaningoma4831
    @amaningoma4831 ปีที่แล้ว +4

    Your course is more than explicit. Thank you so much for giving such efforts to share knowledge

  • @rajkalashtiwari
    @rajkalashtiwari 2 ปีที่แล้ว +1

    This is awesome I got accuracy of 99.52%

    • @RajaKumar-hg9wl
      @RajaKumar-hg9wl 2 ปีที่แล้ว

      Is it a evaluation score or training score?

  • @NandiniMaharaj-u5j
    @NandiniMaharaj-u5j 8 หลายเดือนก่อน +2

    What an amazing tutorial! Did a machine learning for the first time with so much clarity! Thank you so much sir

  • @ahsanfarooq210
    @ahsanfarooq210 3 ปีที่แล้ว +3

    i got the accuracy of 98.37 on training data and 97.32 on the test data and on the graph of truth vs predicted (tha we made using sea born library) the highest value other than diagonals was 19

  • @nikhilkashyap1771
    @nikhilkashyap1771 2 ปีที่แล้ว +2

    Best Deep Learning Course I found On TH-cam, I mean you the gave the content that I was looking for.

  • @vaheyepremyan6379
    @vaheyepremyan6379 3 ปีที่แล้ว +2

    I have a question please
    I don’t understand how output layer gives probabilities of lets say (handwritten 9) at 9th neuron, (handwritten 8) at 8th neuron and so on.

    • @noelbejoy1192
      @noelbejoy1192 3 ปีที่แล้ว

      That's how it was created, remember(10 output values). It tries to fit to this case.

  • @nirajasanghai9707
    @nirajasanghai9707 ปีที่แล้ว +2

    your videos are very helpful. It clears all doubts about machine learning and deep learning. can you please make a video on Deep learning using PyTorch?

  • @pratik19901
    @pratik19901 3 ปีที่แล้ว +5

    Hi dhaval,
    You have explained the concept in very simple manner. Could you please share all ppts of deep learning series? It will be a great help for all learners.

    • @zeeshansadiq6150
      @zeeshansadiq6150 2 ปีที่แล้ว

      it needs time to develop, so wait for the time

  • @ujjwalsoni1618
    @ujjwalsoni1618 4 ปีที่แล้ว +1

    how to predict for (X_test_flattened[0]) and not for (X_test_flattened) ? Please someone answer...

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      X_test_flattened[:1]

  • @dutta.alankar
    @dutta.alankar 4 ปีที่แล้ว +4

    Great introductory video! Thanks a lot.

  • @phaniauce
    @phaniauce 4 ปีที่แล้ว +1

    result of playing with various optimizers: 0.9912 : adam
    0.9886 : rmsprop
    0.9488: SGD
    0.7354: adadelta
    0.9208 : adagrad
    0.9757: adamax
    0.9921: nadam
    0.7387 :Ftrl
    I would begin the play with losses tomorrow. Looks like atleast CategoricalCrossentropy expects y in one hot representation.
    After using dummies, got accuracy of 0.9309 for 10 epochs.
    Poisson's class gave 0.9181.
    binary_crossentropy gave 0.9212

  • @rubaitrahman4449
    @rubaitrahman4449 2 ปีที่แล้ว +3

    this is the easiest and a must watch video to learn deep learning basics.
    I will be always grateful to you sir

  • @Gauswami
    @Gauswami 4 ปีที่แล้ว +1

    I got *0.995* training accuracy and *0.9811* test accuracy with following model. I think its overfitting but this is the best I could get.
    model = keras.Sequential([
    keras.layers.Flatten(input_shape=(28, 28)),
    keras.layers.Dense(200, activation='sigmoid'),
    keras.layers.Dense(50, activation='sigmoid'),
    keras.layers.Dense(10, activation='sigmoid')
    ])
    model.compile(optimizer='adam',
    loss='sparse_categorical_crossentropy',
    metrics=['accuracy'])
    model.fit(x_train, y_train, epochs=10)

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Wow.. that's a pretty good score Ashish. Good job 👍👏 looks like increasing hidden layer helps

  • @abhishekkhare6175
    @abhishekkhare6175 3 ปีที่แล้ว +6

    Thank's a lot for making this wonderful playlist for Deep Learning.

  • @TeslaUS-b8d
    @TeslaUS-b8d 2 ปีที่แล้ว +1

    you are SUPER , please continue ,also if you can explain deep reinforcement learning , i will be so grateful !!

  • @preeethan
    @preeethan 4 ปีที่แล้ว +2

    What happens at each 'epoch' ?
    Is it like K-Fold Cross validation.?

    • @codebasics
      @codebasics  4 ปีที่แล้ว +3

      Each epoch is a training neural net for all images, collecting their combined loss and backpropogating it. Next video in this series will be explaining exactly that.

  • @madihaiqbal9801
    @madihaiqbal9801 8 วันที่ผ่านมา

    model=keras.Sequential([
    keras.layers.Flatten(input_shape=(28,28),),
    keras.layers.Dense(100,activation='tanh'),
    keras.layers.Dense(10,activation='sigmoid')
    ])
    model.compile(optimizer='adam',
    loss='sparse_categorical_crossentropy',
    metrics=['accuracy'])
    model.fit(x_train,y_train,epochs=5)
    By using this activation function i found the accuracy 0.9840.

  • @akshatsingh6036
    @akshatsingh6036 4 ปีที่แล้ว

    ------------------------------------------------------------------
    loss: 0.0145 - accuracy: 0.9985
    ------------------------------------------------------------------
    model = keras.Sequential([
    keras.layers.Flatten(input_shape=(28, 28)),
    keras.layers.Dense(100, activation='relu', kernel_initializer = 'he_uniform'),
    keras.layers.Dense(50, activation='relu', kernel_initializer = 'glorot_uniform'),
    keras.layers.Dense(10, activation='sigmoid')
    ])
    model.compile(
    optimizer = 'adam',
    loss = 'sparse_categorical_crossentropy',
    metrics = ['accuracy']
    )
    model.fit(X_test, y_test, epochs=10)

  • @SingingWithAdi
    @SingingWithAdi ปีที่แล้ว +1

    I have been following you from the ML Playlist , amazing content !! Thank you so much sir !

  • @mdmonzurmorshed3557
    @mdmonzurmorshed3557 2 ปีที่แล้ว +2

    Its a great presentation !!! I appreciate your teaching method.

  • @TechnicallyExplained
    @TechnicallyExplained 2 หลายเดือนก่อน

    at 17:00, I came to know that sir also watches ' taarak mehta ka ulta chasma' :p

  • @mayanktripathi4u
    @mayanktripathi4u 4 ปีที่แล้ว +3

    Hi Sir, your videos are so insightful and well managed.
    Thanks for sharing this.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +2

      Glad you liked it Mayank

  • @SarahAlyy
    @SarahAlyy 5 หลายเดือนก่อน

    How come my training accuracy is much higher than yours when I have used the same dataset with the same neural network structure where everything is basically the same word-to-word.
    My training accuracy for a simple two-layered neural network is 88%?

  • @rakeshbairwa2655
    @rakeshbairwa2655 4 ปีที่แล้ว +2

    Sir, did you applied for H1B from India or from US itself via STEM( or OPT). And thank you for answering. 🤗

    • @codebasics
      @codebasics  4 ปีที่แล้ว +6

      I applied from India in year 2006. At that time it was easy to come to USA on h1 directly. Nowadays that route is closed. So if you are planning to come to USA you have only two options (1) masters and than opt and h1b (2) you work in MNC and come here for client work on inter office transfer

    • @rakeshbairwa2655
      @rakeshbairwa2655 4 ปีที่แล้ว

      @@codebasics thank you for sharing your experience. 😌😌

  • @rrworld100
    @rrworld100 4 ปีที่แล้ว

    model = keras.Sequential(
    [keras.layers.Flatten(input_shape=(28,28)),
    keras.layers.Dense(300, activation='relu'),
    keras.layers.Dense(10, activation='relu'),
    keras.layers.Dense(10, activation='sigmoid')]
    )
    model.compile(optimizer='adam',
    loss='sparse_categorical_crossentropy',
    metrics=['accuracy'])
    model.fit(X_train, y_train, epochs=5)
    model.evaluate(X_test, y_test)
    got 0.9788 accuracy.

  • @wrenchfusion
    @wrenchfusion 3 ปีที่แล้ว +4

    My suggestion to grasp this video concept is first to watch the whole video with patience then the second time watch again and apply the mentioned concepts line by line. Believe me, you are not going to forget what you have just learned.

    • @codebasics
      @codebasics  3 ปีที่แล้ว +2

      That's a good tip Shamir

  • @anirbanc88
    @anirbanc88 ปีที่แล้ว +3

    exhilarating to see the inner workings of deep learning! thank you sir

  • @pratikghimire
    @pratikghimire 4 ปีที่แล้ว +1

    How can I build canvas allowing user to write digit on it and predict using our built model ?

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      It is possible. You need to use any UI framework for this which allows canvas drawing. Try researching that either in react ja, Vue Js or in general html, css

  • @wcottee
    @wcottee 3 หลายเดือนก่อน

    When we train the model, for each epoch, it shows 1/1875, 2/1875.....,1875/1875. what is the significance of 1875? Perhaps I missed it in the video :(

  • @stepanlebedev8790
    @stepanlebedev8790 ปีที่แล้ว

    acuraccy 99.51% - epochs: 8, optimizer: Adam, loss: spacse-categorical_crossentropy, hidden layer neurons number: 300

  • @boseashish
    @boseashish 21 วันที่ผ่านมา

    There are several data science tutorials which are single-video of the entire series in one and really good to learn the entire data science (ML, DL etc) at once. I recommend you learn DS from those tutorials and then come back and start again with these videos. You will realize the remarkable depth covered in short videos which will strengthen your understanding of the subject in a great way. If you start with these as your first set of videos, you will still get all the learning but you will probably not pay attention to the details that these videos bring in. This is my personal opinion and your discretion is advised

  • @sumangupta871
    @sumangupta871 2 ปีที่แล้ว

    Hi When I am trying to print confusion matrix it is not showing the matrix. Instead it is showing below details. Can you please tell me how I can print the confusion matrix like yours.
    > cm
    >

  • @nastaran1010
    @nastaran1010 7 หลายเดือนก่อน

    I got accuracy = 0.9807 for test, and accuracy for training = 0.9962 by changing optimizer to SGD and neoron n hidden layer = 99, and epoche = 6

  • @777sukumar
    @777sukumar ปีที่แล้ว

    Hi...Thank you so much for your video. It's very understandable and clear. I tried this and able to achieve what is explained. I need one suggestion regarding same. Can we do same to recognize date and time. For example 2023/05/16 06:40:50..Can we create similar model to detect this. To achieve this we need to create dataset each digit and two symbols ("/" and ":") and train them or full numbers(date and time including) as one. Please suggest how to recognize full date and time.

  • @deviprasad2613
    @deviprasad2613 3 ปีที่แล้ว +1

    Sir , I got error when the model.fit(x_train_flattened, y_train, epochs=5) method , the error is value error,input arrays should have the same numbers as target arrays. Found 10000 input sample and 60000 target sample

    • @aryas2799
      @aryas2799 3 ปีที่แล้ว

      check your code on X_train_flattened

  • @SoumalyaDe-tk3ge
    @SoumalyaDe-tk3ge 3 หลายเดือนก่อน

    Dhaval sir if you can guide us the 7 class classification of facial emotion using CNN VGG16 architecture by making a video lecture ,it will be very very helpful

  • @sayedikramulhaqbanuree6923
    @sayedikramulhaqbanuree6923 6 หลายเดือนก่อน +1

    Amazing, I am completely new in the field but you explain in such a good manner. 10+ out of 10 stars.
    I have done exercise with a small dataset all the samples are about 1797:
    from sklearn.datasets import load_digits
    from sklearn.model_selection import train_test_split
    digits = load_digits()
    X_train, X_test, y_train, y_test = train_test_split(digits.data, digits.target, test_size=0.2, random_state=42)
    and then:
    model = keras.Sequential([
    keras.layers.Dense(100, activation='relu'),
    keras.layers.Dense(10, activation='sigmoid')
    ])
    model.compile(optimizer='adam',
    loss='sparse_categorical_crossentropy',
    metrics=['accuracy'])
    model.fit(X_train, y_train, epochs=20)
    i have just increased number of epochs which given me a very good result of accuracy
    once again thank you
    from #Afghanistan

  • @anmolkhurana490
    @anmolkhurana490 3 หลายเดือนก่อน

    I got best scores (0.98) from
    Optimizers- rmsprop, ndam, adam
    Metrics- sparse categorical accuracy, accuracy

  • @naruto-yy4xk
    @naruto-yy4xk ปีที่แล้ว +1

    the error at 24:40
    can be solved by reshaping the single input as X_train_scaled[0].reshape(1,784),
    because it is having problems in matrix multiplication so reshaping helped :)

  • @shoaibsaifi9806
    @shoaibsaifi9806 3 ปีที่แล้ว +2

    This is the only lecture where I got a really great idea about neural network. I have seen many lectures no one explain each thing like you did. They just make the neural network

  • @shubhamkumar-nw1ui
    @shubhamkumar-nw1ui 2 ปีที่แล้ว

    Sir has subscription of choochoo's story and golgappa girl 😂😂...BTW awesome tutorial sir..many many thanks

  • @theunstoppablecuber6570
    @theunstoppablecuber6570 ปีที่แล้ว

    Attribute Error: module 'keras.api._v2.keras' has no attribute 'compile'
    I'm getting this error.
    Anyone pls help

  • @Fitsum_Teshome
    @Fitsum_Teshome 2 ปีที่แล้ว

    Hi Sir, thank you for your useful videos. I am getting this error "NameError: name 'Keras' is not defined" when I try to classify the datasets into training and test datasets. How can I solve it, please?

  • @halibrahim
    @halibrahim 2 ปีที่แล้ว

    when I tried to visualize the cm following your code I got back this error, ValueError: Must pass 2-d input. shape=()
    Any suggestions?

  • @raj345to
    @raj345to 2 ปีที่แล้ว

    Hello sir,
    I am doing same steps but after creating NN i am getting loss as 5.8,5.6,5.4 etc in epochs. And while evaluating xtest flattened its showing [0.0,0.0]

  • @zombiefreak5780
    @zombiefreak5780 ปีที่แล้ว

    i am confused what the purpose of the training was for? becuase if you write the "y_test[0]", it already knows 7, could someone explain?
    Thanks in advance

  • @nkanyisosigwaza
    @nkanyisosigwaza 8 หลายเดือนก่อน +1

    You are an absolutely amazing teacher! Thank you for the great content

  • @gokhandonmez7935
    @gokhandonmez7935 2 ปีที่แล้ว

    Thank you Sir. İ would like to one question.How you train only 1875 samples. With the same codes ,I m train 60000 samples.

  • @pratikpatil2866
    @pratikpatil2866 4 หลายเดือนก่อน

    i have tried to copy your exact process but for my heat-map digits are only visible in first row and other rows are blank could you explain reason behind this unexpected behaviour?

  • @shivav7379
    @shivav7379 2 ปีที่แล้ว +1

    Hello Sir, this is amazing code walk through with very very good explanation.

  • @manujarora5062
    @manujarora5062 ปีที่แล้ว

    At 23:23 accuracy improved due to scaling. Is the accuracy improvement because our activation is sigmoid? Did Gradient descent algorithm found a local minima which was not low enough?

  • @asmmorshed
    @asmmorshed ปีที่แล้ว

    model.evaluate(X_test_flattened, y_test) when I run this command, I find out some error named ValueError

  • @hhamzazaibbhatti1765
    @hhamzazaibbhatti1765 2 ปีที่แล้ว +1

    ValueError: Unknown metric function: accuary. Please ensure this object is passed to the `custom_objects` argument.
    what is that? when i fit model @codebasics

  • @nitishkeshri2378
    @nitishkeshri2378 2 ปีที่แล้ว

    my kernel gets dead while running this code even I have 12gb of ram, how much Ram is required to run this....anyone pls

  • @prakashkrishnan7132
    @prakashkrishnan7132 8 หลายเดือนก่อน

    Have increased number of Neurons for my hidden layer than accuracy is very much improved as 0.9915

  • @user-uz6bf7op4f
    @user-uz6bf7op4f ปีที่แล้ว

    Hloo sir when i do it it says that 'module 'keras.api._v2.keras' has no attribute 'sequrntial' i dont know y , i also imported from keras import sequential

  • @GalibTube
    @GalibTube ปีที่แล้ว

    I have run the same model code without scaling on the kaggle accuracy was 88%.how did it happen codebasics?.

  • @jamshidkodirov3406
    @jamshidkodirov3406 3 ปีที่แล้ว

    Hi thanks for all; @codebasics
    In my computer %matplotib inline dos'n working
    what can i do ?

  • @tejasmurthy8912
    @tejasmurthy8912 7 หลายเดือนก่อน

    Sir, suppose we give a test image with 2 digits number then how to classify them as unknown class?
    Please help with the code

  • @misbahhasan6272
    @misbahhasan6272 ปีที่แล้ว

    Actually, I solved the kaggle question using this method but the accuracy was very low.

  • @avanishkumar8616
    @avanishkumar8616 8 หลายเดือนก่อน

    without scaling my model was giving accuracy aroung 83% and after scaling it got reduced to 9%😂

  • @akashs9414
    @akashs9414 3 ปีที่แล้ว +1

    Sir, Create a video on hyperparameter tuning in deep learning like layers, activation function,etc.

  • @paragthakur42
    @paragthakur42 2 ปีที่แล้ว

    Can someone help me to understand how output of neuron like .2, .4,.8,.9 compared with output which is no 4.

  • @mithilanavishka9884
    @mithilanavishka9884 7 หลายเดือนก่อน

    originally are those binary images or colored image, in the exmple you explained black and white images but when you show image in the note book images look like coloured

  • @mustafizurrahman812
    @mustafizurrahman812 2 ปีที่แล้ว

    Hello sir,
    I got 88% accuracy in model. But x_train and x_test do not match 😐
    What can I do?

  • @preetham4974
    @preetham4974 4 ปีที่แล้ว +2

    Yet another awsome tutorial sir.Waiting for more out of this playlist.And i have a doubt,If i have my own hand written digit on a paper then how can test with this ? should i crop the image and predict it ? thank you

    • @codebasics
      @codebasics  4 ปีที่แล้ว +4

      Yes you need the crop the image and then predict

  • @siddhuvilliers3876
    @siddhuvilliers3876 3 หลายเดือนก่อน

    hello sir i have got everything perfect except the confusion matrix ,where all the values are null except first row

  • @abizarkhalil
    @abizarkhalil 3 ปีที่แล้ว

    Sir, Please make a video on BiGAN from scratch along with python code

  • @sudipanpaul805
    @sudipanpaul805 2 ปีที่แล้ว

    The model doest work when I take outside image using cv2 and try to figure out even black and white handwriting

  • @ChanceMinus
    @ChanceMinus 9 หลายเดือนก่อน +1

    Brilliant! This was great. Thank you.

  • @parthshah6463
    @parthshah6463 3 ปีที่แล้ว +1

    You're god for the Beginner !!! The way you explain is way different than anyone else... SUPER AMAZING... HIGHLY RECOMMENDED

  • @rishikumarsoni
    @rishikumarsoni 2 ปีที่แล้ว

    which keyboard do you use ?
    btw thanks for the amazing explanations

  • @inhibited44
    @inhibited44 10 หลายเดือนก่อน

    I took coursera and they had this in their instruction, but they didn't explain it so well. Thanks