Make Your First AI in 15 Minutes with Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2021
  • Make your first AI using Tensorflow/Keras and scikit-learn. This AI model is trained on real data from breast cancer diagnosis. Within a couple of minutes, the AI can classify tumors on its own!
    Get the code:
    colab.research.google.com/dri...
    Get the dataset:
    gist.github.com/adameubanks/3...
    If you want to learn more about neural networks and machine learning, consider watching my two tutorials:
    Machine learning with scikit-learn: • Learn Machine Learning...
    Neural networks with Keras: • Learn Keras: Build 4 D...
    Get 60 Free Days of Unlimited Access to Scribd!
    www.scribd.com/g/6lchwh
    Follow Me:
    Twitter: / khanradcoder
    Instagram: / thekhanradcoder
    GitHub: github.com/KhanradCoder
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    This was an amazing example of clear and concise education. You are nailing these tutorials better than some 60 year old professors. And with push-ups.🤯

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

      Literally the first module given by coursera, sure it's nice to have something to put on 2x speed but it's not what I was looking to learn

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

      Quantum computing could threaten humanity as we know it…
      th-cam.com/video/ip3FwAYWjkw/w-d-xo.html

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

      In this Video you learn NOTHING about AI and you dont even do anything in general why im giving it a thumb down.

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

      @@ElmoSeesYou so you're saying that Tensorflow he's using with neural network prediction isn't AI at all?

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

      @@nan6849 I don't know what happens in the module, but I believe it actually is AI. But what I'm saying is, that you just don't get to know anything abiut AI. What even is a neural network? No clue because this video is explaining nothing

  • @captaintroll7294
    @captaintroll7294 หลายเดือนก่อน +56

    Yo i think OpenAI copied your tutorial

    • @GLP2007
      @GLP2007 23 วันที่ผ่านมา +1

      no

    • @theadameubanks
      @theadameubanks  22 วันที่ผ่านมา +7

      fr?

    • @CoolDude-mq8dh
      @CoolDude-mq8dh 20 วันที่ผ่านมา +8

      @@theadameubanksno dawg its a joke

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

    If you get an error at the end that is something like "ValueError: Input 0 of layer "sequential_1" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30)" then replace the 1st line the segment "model.add" instead of "model.add(tf.keras.layers.Dense(256, input_shape=x_train.shape, activation='sigmoid'))" use "model.add(tf.keras.layers.Dense(256, input_shape=x_train.shape[1:], activation='sigmoid'))". Most importantly recompile all segments both from start to finish after making this change.

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

      omg recompiling i did not do that thank you!

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

      Thanks man, it worked!!

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

      @@thehulk6866 your welcome 😀

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

      Thanks for sharing! Can you explain why the error was happening in the first place? Is it because the x_train shape is still including the first column and hence this solution is just slicing the data set from to start from 1 instead of 0?

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

      Hey gem! THANKS FOR SHARING 💎❤️

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

    Perfect video! BTW for those experiencing an error at the end with the input_shape giving ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30),
    Just use this instead of the first line:
    model.add(tf.keras.layers.Dense(256, input_shape=x_train.shape[1:], activation = 'sigmoid'))
    Remember to run all code blocks from top to bottom again, to make sure it works perfectly fine! Do not try to just run this separate code block otherwise it will never work.

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

      Thank you! I was stuck at the same spot.

    • @user-mw1uk9sn9w
      @user-mw1uk9sn9w 2 ปีที่แล้ว +8

      What are differences between them?

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

      @@user-mw1uk9sn9w no difference, its just a colab bug nowadays that most machines cant handle for some reason. the second line basically removes all bugs and when u run it all in a row it makes sure that the last line is executed properly

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

      TYSM this is the comment I was searching for

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

      You rock. I've been scouring the internet for this and it was right there x)

  • @redbeardhomes
    @redbeardhomes ปีที่แล้ว +97

    Great video. As someone who as taken a full AI course in College I can say that they should really use your example as lecture 1. Show the students what they can do, and then teach them each of the components that they simply used from the tf library.

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

      As a college professor for years, a good approach (depending on the starting points of the class) would be to give the students this video and a few other bits of material before class, get them building themselves, and then help with errors and confusion during class time.

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

      ​@@InconvenientxWhat would you say those other bits of material are?

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

      College Protest Preparing

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

    Thanks! I liked the part where you opened the internet tab to show the parts of the neutrale net in reference to the code. When I see code I usually get flustered but that illustration helped make sense of the code. Please keep making more videos! 😀

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

      If you got it to work could you tell me how? I couldnt get past the "model.fit(x_train, y_train, epochs=100)" Line. If you did it, please let me know how!

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

      @@nik7069 read @Saad Humayun comment, it saved me

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

      @@danielg4838 ab iska comment kaha khojne jaun 🙄

    • @mohd.asaads.279
      @mohd.asaads.279 ปีที่แล้ว

      ​​@@danielg4838 where is it
      It's not visible
      Could u pls tell me about it

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

    Thank you for this awesome video Kahnrad. This is wonderfully explained.
    UPDATE: model.fit() will throw an error unless line 24:
    model.add(tf…Dense(256, input_shape=x_train.shape, …)
    is changed to: x_train.shape[1:]
    Then recompile top down, should be solid

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

      Ty! I was stuck on exactly this

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

      Thank you!!

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

      Thanks!

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

      It would have been a frustrating way to spend time if I didn't see this...

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

      the accuracy is 0.0000e+00 tho. Idk how to fix that

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

    For people getting the ERROR at the end use this line instead
    model.add(tf.keras.layers.Dense(256, input_shape=x_train.shape[1:], activation='sigmoid'))
    on the first line when adding models

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

      i m still getting that error. can you help??

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

      @@pratikbehera4770 did u know how to fix it? I’m also still getting it

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

      @@fufusytb nah...tried some of the more comments still getting the same error

    • @Jack-wi1st
      @Jack-wi1st 2 ปีที่แล้ว

      @@fufusytb i put this code on the last line and it worked, but the data doesn’t configure with the gpu for the testing of the AI machine we just created

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

      For me it worked with:
      model.add(tf.keras.layers.Dense(256, input_shape=(x_train.shape[1],), activation='sigmoid'))

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

    Great video, very clear. Any ideas about the warning at the end of the program about incompatable shapes between the model and the input? Obviously it works, but is this something that needs fixed in a more advanced application?

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

    Great, great video. Using the Tensorflow & Keras with the scikit-learn was super cool, especially in knowing it will help doctors make important cancer diagnoses, makes it awesome. Great job!!

  • @KennTollens
    @KennTollens 10 หลายเดือนก่อน +1

    Breath of fresh air. Crystal clear and to the point. Thank you so much!

  • @_askew
    @_askew 7 หลายเดือนก่อน +1

    Thanks for such a comprehensive and informative guide! I’m trying to make an AI that manages data from plants in my garden, and this has been such a great help.

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

    Very clear now I been looking for stuff about this for three hours and you made it nice and clear amazing video :)

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

    GOOD Job Man! Love how humble you are!! Good Job!!!!!

  • @shabba194
    @shabba194 ปีที่แล้ว +16

    Good stuff young man. Very easy to follow and straight to the point. Appreciate you

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

    This was great! I am a clinical psychology and am I'm helping with retention in the treatment program for at risk youth. Babe I've been looking for a way to do to do machine learning to predict which kids are at highest risk in order to throw more resources behind them. I think I've found it! Thank you! If this works the way that I hope it will then you will be impart responsible for adding to do the safety and securityOf hundreds of youth.

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

      good luck !

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

      Well? How'd it go? You've got to tell us 😅😂☺️

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

      I would love to hear an update on this.

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

      pretty crazy nail the kids just going into high school with AI predicted system.
      I'm curious about this and maybe diagnosing cars and certain model issues. Or even install a system that helps tell what's causing issues.

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

    absolute legend, im in uni and you explained it better than my lecturers aha

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

    I am getting the below error
    Epoch 1/1000
    ---------------------------------------------------------------------------
    ValueError Traceback (most recent call last)
    in
    ----> 1 model.fit(x_train, y_train, epochs=1000)

  • @IshaanAgarwal-xv6zc
    @IshaanAgarwal-xv6zc ปีที่แล้ว +60

    This AI is great, and the video is perfect. For those experiencing errors in the last two blocks, here is what to do: Change the fifth block's code to this:
    import tensorflow as tf
    model = tf.keras.models.Sequential(tf.keras.layers.Dense(1))
    Run the fifth block a few times, then try again- it should work

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

      Thanks for this, this is the only code that worked with mine so you're a lifesaver

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

      Thank you, that is very helpful indeed!

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

      You are awesome!! it worked!!

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

      thanks a lot man this helps a lot! may i know why do we need to code as you mentioned and how does this fix the error? im still new to machine learning and trying to get to the bottom of this.

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

      Thanks, this made it work. Probably something has changed in the syntax in last 2 years.

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

    Not sure how or why I came across this video, but muhfkr you know what you're doing on a comp!!! Good job!!!

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

    thank you man, this seems so easy to understand. thanks again. great job.

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

    Can you please upload more for AI tutorials? Great video btw

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

      Yes same here

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

      Same

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

      Yes , more A.I. tutorials please 🥺

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

    My dude, this was very helpful for my research! Thank you!

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

    Hi @Khanrad ; can you make a video on how to mini-graph those outputs inside the IDE? So we can repeatedly visualize our output? Scrolling through the data is OK when the set it small. Ideally Colab-Jupyter would have a button to the right of the output to mini-graph upon completion. Further to that I'm aware output should be stored for CI/CD analysis later. It's a convivence request.
    I use Low Code in Azure-ML, I can highlight output and it will show a mini-graph. or I can export it to PowerBI. Output in my environment is saved in the dataverse and ETL with Synapse.

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

      I use the graph thingies with this code:
      import pandas as pd
      import matplotlib.pyplot as plt
      import seaborn as sns
      from sklearn.model_selection import train_test_split
      import tensorflow as tf
      def visualize_output(output):
      if isinstance(output, pd.DataFrame):
      for column in output.columns:
      _plot_mini_graph(output[column], column)
      elif isinstance(output, pd.Series):
      _plot_mini_graph(output, output.name)
      else:
      print("Invalid input type. Please provide a DataFrame or Series.")
      def _plot_mini_graph(data, column_name):
      plt.figure(figsize=(8, 4))
      if data.nunique()

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

    good job. the best teaching is when you make it simple.

  • @thegoldenchopper3355
    @thegoldenchopper3355 2 หลายเดือนก่อน +1

    You are AWESOME! You are a prodigy at coding. Please continue what you do!

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

    Very clear , easy and straight to the point. very good explanation

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

    this dude made this tutorial and did push ups lmao but still THANK YOU FOR TEACHING

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

      Jesus Christ is God and is the only way. Hell is real whether you believe it or not. I used watch wicked anime, mastberate/porn, vape, beer, violent video games and now I don’t do that anymore; I didn’t even think changing how I am now. Hell is real whether you believe it or not. There isn’t multiple ways; catholic, muslim, etc will lead you to hell and I was a catholic before!

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

      @@SquidBeatsYou're a bot. Whoever made you is an extremely sad human being. Attempting fear tactics to mold others to your religion goes against your religion. I'm sorry, but nobody cares. Liking your own comment is pointless. Quit attempting to force people to conform to your ideas just because you think enjoyable aspects of life are bad.

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

      @@SquidBeats so what religion should i be to avoid hell ? protestant ? jedi ?

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

      @@SquidBeats Some grandma died.and back from the dead.She described that hell/heaven is not real.Just a void and nothing.
      I'm in ROS(robotic) religion btw.

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

      @@deadyanothaikiropool1chait713 That's the Bible. Thank you for describing the death experience

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

    Fantastic videos! Very easy to follow and actionable. Will absolutely share with everybody interested in this field. One quick note, when, doing anything in the medical field you have to understand the truth labels of the data.

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

    Hey! great video! I do keep getting an error even on your colab notebook in the line
    "model.fit(x_train, y_train, epochs=1000)"
    I get:
    "ValueError Traceback (most recent call last)"
    " ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30)"
    Any thoughts on what might be happening?

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

    Here is the fix for the problem you are all having with the 'model.add' line . . add this to the block above it
    import tensorflow as tf
    model = tf.keras.models.Sequential(tf.keras.layers.Dense(1))

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

      thank you sm

    • @pratikchirkute
      @pratikchirkute 11 หลายเดือนก่อน +1

      thank you buddy

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

      Thank you

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

      You are awesome, Finally, it's working .. Yay ! Thank You so much !

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

    Bro, I just finished watching this 2022 July... And I really appreciate your efforts so much.

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

    This dude needs more subs he has the best content ever.

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

    Very interesting, now I know something I don't know before. Keep posting and thanks.

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

    Thank you just learned programming or understood more and more the basics in c# and was looking to use ai in my job in a production company. Your video was a huge help considering I did python last I think 7 or 8 months or even longer but loved the simplicity of that kind of subject. I know it can go complexer but the basics are super easy to learn because of you! So thank you and keep up your work man! :)

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

    how do you feed the AI data? Do you just evaluate a random x_test matrix with it and it auto classify y values?

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

    what we need to modify if we want to the AI analyse a different csv file ?

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

    Thank you so much, this was very educational.

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

    thx man i have just started my project which is related to deep learning and this helped a lot

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

    I got this: ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 398, 30), found shape=(None, 30)
    why? how to fix it?

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

    if someone have error :
    ValueError: Input 0 of layer "sequential_1" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30)
    Then clear whole block 6 and paste :
    model.add(tf.keras.Input(shape=(x_train.shape[1],)))
    model.add(tf.keras.layers.Dense(128, activation='sigmoid'))
    model.add(tf.keras.layers.Dense(256, activation='sigmoid'))
    model.add(tf.keras.layers.Dense(1, activation='sigmoid'))

  • @ricardoraulino-guitar
    @ricardoraulino-guitar 2 ปีที่แล้ว +3

    Fantastic class, Bro!
    Thank you Very much!

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

      You got it to work?

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

    In your first line of model.add (where you add the X values), why do you actually take 256 ? Shouldn't this be just the number/amount of x colums in your dataset ?

  • @DeshaeClips
    @DeshaeClips 2 หลายเดือนก่อน +1

    This is such a amazing tutorial im dumb with learning Coding i just started but i was able to understand this completely im definitely sticking around

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

      Thanks for your comment! What types of tutorials would you like me to do next?

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

    Hey, I'm learning machine learning for fun and was wondering how I would be able to input new x data for the AI to generate y data for

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

    Hi, which resolution do you recommend to watch your video?
    On my tablet with regular HD-resolution I can't read the text given.
    Many regards, Alex

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

    Thank you for your contributions to society and the internet with your free information, Brother.

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

    it maybe a stupid question but how do I then input values for the AI to look at?

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

    Great tutorial and the example data set is a perfect example of why AI is so cool!

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

    loved it and your explanation was top notch!!

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

    ur a legend u deserve all the love

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

      Well the simp in your name isn't wrong lol

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

      @@echotube3111 i simp for this guy

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

    thanks for the video... btw how can i make my own data sets? i mean how can i extract tumor features from images?

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

    A couple of questions… why not clean the data first? (Fixing null values, duplicates, etc.) unless it was already cleaned… but also 1000 epochs might overfit the model no? The way I was taught in college was to first clean the data and always, always test for overfit. Just curious if there’s reasoning behind skipping these steps

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

    I mean, I really don't understand much about advanced coding and algorithms like this, but it was interesting following along. Just wish I could understand more of whats going on...

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

      Follow a yt channel called Siraj Raval. Search for his videos about activation function, loss function, etc. It taught me a lot about
      AI / Machine Learning

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

    Well done !! Thanks so much. Would you be able to advise on how to perform the AI Generation on our own computer? Running code on Google's computers is not cool AT ALL. Make you dependent, strictly no privacy, resources are limited, requires to be online . . . A great tool, but super limited

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

    question: how to run this then? like will it say 0 or 1 as diagnosis?

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

    Thanks for this. Super simple and easy to access.

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

    Really like how you teach. Thanks

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

    It made me feel like a programmer for a moment, even though I've never programmed in my life

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

    very good job man I loved the video a lot. can you or any one tell me what is the operating system you used in the video?

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

    thank you so much for this:))

  • @AnandKumar-dm8nl
    @AnandKumar-dm8nl 2 หลายเดือนก่อน

    Broh you're legit. Keep going we are expecting more tech content with you.

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

    When I run;
    model.fit(x_train, y_train, epochs=1000)
    it gave an error with last line;
    ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30)

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

      I'm getting this same error. Anyone know how to fix it?

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

    I got a question to the AI generated model. I could imagine that it takes all columns and values to create something like a formula with variables. Is there a way to look at this?

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

    Very useful video. Thanks for uploading!

  • @BhargavaK108
    @BhargavaK108 3 วันที่ผ่านมา +3

    SOLUTION TO VALUE ERROR:
    Just follow the vid and then in the section between model = tf.keras.models.Sequential() and model.compile, replace the code with:
    model.add(tf.keras.layers.Dense(256, input_shape=x_train.shape[1:], activation='sigmoid'))
    model.add(tf.keras.layers.Dense(1, activation='sigmoid'))
    in place of the previous model.add section code and then just train from the beginning.
    solution courtesy of outplayed_1283

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

    This video is very good and you made the whole concept very easy to grasp beside that you have a strong good voice that keep me concentrating with you through the whole video, thank you.

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

      Glad you liked it!

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

    hello, i was wondering how i might find the standard deviation of the accuracy?

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

    How could you use the model you created to look at new data, and automatically label suspected tumors?

  • @falcon.0100
    @falcon.0100 2 ปีที่แล้ว

    Hello thank you for those amazing easy videos… but i tried to copy ur method on my project but it gives errors at (model = tf..keras.models.sequential() ) what should i do

  • @SaifSaif-ki6ql
    @SaifSaif-ki6ql 10 หลายเดือนก่อน +2

    Guys I get value error when I run the "model.fit(x_train,y_train, epochs= 1000) any help plzzzz

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

    This was really helpful me! I understand they are supervised dataset and how do you train when you get some books or pdf?like notebookLLM?

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

    special props ;for the puships! great dude!

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

    Nice video bro! the push-ups part🤣

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

    Watch this video if you want to run your model on a set of data: th-cam.com/video/A4K6D_gx2Iw/w-d-xo.html

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

    What site did you use for your dataset?

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

    Wow, this is amazing. This is my first ever attempt at building something. Quick question though, if I increase my neurons to 512, and my epochs to 2000, why would my accuracy go down?

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

    hello where can i see if the test part is 1 or 0?

  • @MdKamrulHasan-ux4zz
    @MdKamrulHasan-ux4zz 2 ปีที่แล้ว +1

    your teaching style is awesome

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

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life
      th-cam.com/play/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-.html

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

    Great video... everything worked until i got to the model.fit(X_train, y_train,epochs=10) line.
    Got a ValueError Traceback (most recent call last)
    in ()
    ----> 1 model.fit(X_train, y_train,epochs=10)
    I checked X_train and it was 455x30 and y-train was 455x1. So dimension wise everything was good. I used X_train instead of your x_train but I was consistent so that was not an issue. I am wondering if the model.fit function has an issue. Any ideas?
    UPDATE:I changed the model.add(tf.keras.layers.Dense(256, input_shape=X_train.shape[1:], activation='sigmoid')) line and recompiled all code so it worked... THANKS

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

      You saved me, I was getting pretty bitter and couldn't figure it out. Its running now but I admit as of the writing of this comment I don't 100% get the fix. Going to rebreak it and debug more. But thanks much for this. You saved my pc from a punch

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

      Thx!

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

      I tried your update and still having the same issue. Any thoughts?
      "Epoch 1/10
      ---------------------------------------------------------------------------
      ValueError Traceback (most recent call last)
      in ()
      ----> 1 model.fit(X_train, y_train, epochs=10)"

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

      @@eCabreravideo did u fix it? im stuck

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

    man , this is really fun thank you for the good video !

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

    Google search on the error that I reported below found me this fix for the first model.add command
    model.add(tf.keras.layers.Dense(256, input_shape=(x_train.shape[1],), activation='sigmoid'))

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

    If you don’t mind me asking, where would you learn about this sort of thing? I’m a maths student with basic programming skills but nothing like figuring out things like this

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

    Wow I don't know much about Machine Learning I'm only thinking about learning it for now and I understood most of what you just taught! Awesome video make more like these!

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

      Hey, just a tip for you as you go about learning. I see videos like these as a cool introduction to the subject that's more just like "ooh cool, look what that does". The mistake I often see people make is they just watch lots of videos like these, thinking they're learning. You're not really learning anything, you just know the pure basics of how a NN works. If you really want to get into machine learning, it's a lot of math and theory - so be prepared for that. If you have any questions feel free to ask :p

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

      @@colinbalfour1834 i am currently learning ml, i do come up with some doubt whenever i work with some datasets , may i know your discord or any other social media you have

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

      @@muhammedjaabir2609 lo yt keeps deleting my comments, whats your discord

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

      ​@@colinbalfour1834 just wanting a subsubject name, if you could go back in time right now and relearn some of these data science concepts, how would you start??
      and for a more specific one, i learn by creating my own mental model of 'axioms' or rules in structure as opposed to studying rigorously, so in my benefit do you happen to know of any group of topics or problems that show the majority of general rules id see in the subject? maybe moreso for beginners

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

      @@colinbalfour1834 hey, what do you think is the best way to learn the mathematics behind neural networks? I’ve tried to learn some math regarding linear algebra and stuff but i’m a bit lost on how to apply it directly to machine learning.

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

    The line
    model.fit(x_train, y_train, epochs=1000)
    is giving me a ValueError even after I replaced the first model line with
    model.add(tf.keras.layers.Dense(256, input_shape=x_train.shape[1:], activation='sigmoid'))
    and I have no idea what to do please help

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

    Excellent video! Thank you.

  • @0MVR_0
    @0MVR_0 2 ปีที่แล้ว

    The avenues for making those recognized patterns useful are diminished by illiteracy concerning the source signals and the lack of care taken in organizing the structure of the machine.
    Similar to drawing constellations whereby connections are made between neighboring stars, yet those same celestial bodies are projected onto a two dimensional retina.
    One might call what the Greeks did image recognition.

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

    I just wanna to ask how to fix the invalid syntax error once it occurred in progress?

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

    he really did the push ups LOL
    Nice video, very helpfull :)

  • @kaigoltz3073
    @kaigoltz3073 10 หลายเดือนก่อน +1

    now that the model has been trained how can we actually use it?

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

    What is the best language to Make ai

  • @arshadrashid7178
    @arshadrashid7178 4 วันที่ผ่านมา

    Great video But for me the syntax in the transcript doesn't work. x = dataset.drop(columns=["diagnosis(1=m, 0=b)"]) Always produces error KeyError: "['diagnosis(1=m, 0=b)'] not found in axis" and if I put axis=1 , it fails with another error , like axis not found etc.

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

    You are very smart how you explain is clear thank you

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

    how would i make this adapt to anything like i can give it a math problem or ask it about dinosaurs somthing like that

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

    hey, thank you for the explanation, I just have a problem, I get an error in the last code block, and I tried to change the things that I saw in the comments, bit it still not work :,l, idk if someone can help me please

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

    Bro said, "Imma set this up, knock out some pushups AND make some money showing you a commercial." That's hella inspirational.

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

    Ty, you helped me to understand Neuron

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

    Hy all, can we use this AI for other field like mechanics,chimic...?

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

    QUESTION: How to rectify the mode.fit(x_train,y_train, epochs=1000) statement??
    it says a cardinality issue with
    x_size=455
    y_size=114
    all arrays should contain the same number of samples

    • @JavierSanchezSerna-tm5vy
      @JavierSanchezSerna-tm5vy 2 ปีที่แล้ว

      Did you find an answer to your question? I'm stuck with an error there too

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

    the best lesson in this video is doing the pushups in between waits, maybe the best lesson ever lol