Make Your First AI in 15 Minutes with Python

  Рет қаралды 1,251,186

Khanrad

Khanrad

3 жыл бұрын

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

Пікірлер: 791
@matthewgriffith2078
@matthewgriffith2078 2 жыл бұрын
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 жыл бұрын
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… kzbin.info/www/bejne/n6GWd6p3jrydodk
@ElmoSeesYou
@ElmoSeesYou Жыл бұрын
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 Жыл бұрын
@@ElmoSeesYou so you're saying that Tensorflow he's using with neural network prediction isn't AI at all?
@ElmoSeesYou
@ElmoSeesYou Жыл бұрын
@@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 25 күн бұрын
Yo i think OpenAI copied your tutorial
@GLP2007
@GLP2007 17 күн бұрын
no
@Khanradcoder
@Khanradcoder 16 күн бұрын
fr?
@CoolDude-mq8dh
@CoolDude-mq8dh 14 күн бұрын
@@Khanradcoderno dawg its a joke
@sennetor
@sennetor 2 жыл бұрын
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 жыл бұрын
omg recompiling i did not do that thank you!
@thehulk6866
@thehulk6866 2 жыл бұрын
Thanks man, it worked!!
@sennetor
@sennetor 2 жыл бұрын
@@thehulk6866 your welcome 😀
@DelbertTy
@DelbertTy Жыл бұрын
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 жыл бұрын
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 жыл бұрын
Thank you! I was stuck at the same spot.
@user-mw1uk9sn9w
@user-mw1uk9sn9w 2 жыл бұрын
What are differences between them?
@snoopi6243
@snoopi6243 2 жыл бұрын
@@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 жыл бұрын
TYSM this is the comment I was searching for
@FoehnG
@FoehnG 2 жыл бұрын
You rock. I've been scouring the internet for this and it was right there x)
@redbeardhomes
@redbeardhomes Жыл бұрын
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 ай бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@nik7069 read @Saad Humayun comment, it saved me
@mohitsingh8857
@mohitsingh8857 Жыл бұрын
@@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 Жыл бұрын
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 Жыл бұрын
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 жыл бұрын
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 жыл бұрын
i m still getting that error. can you help??
@fufusytb
@fufusytb 2 жыл бұрын
@@pratikbehera4770 did u know how to fix it? I’m also still getting it
@pratikbehera4770
@pratikbehera4770 2 жыл бұрын
@@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 жыл бұрын
For me it worked with: model.add(tf.keras.layers.Dense(256, input_shape=(x_train.shape[1],), activation='sigmoid'))
@richardtrump2544
@richardtrump2544 2 жыл бұрын
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 жыл бұрын
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!!
@_askew
@_askew 7 ай бұрын
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.
@KennTollens
@KennTollens 10 ай бұрын
Breath of fresh air. Crystal clear and to the point. Thank you so much!
@tejasplayzYT6648
@tejasplayzYT6648 2 жыл бұрын
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 жыл бұрын
GOOD Job Man! Love how humble you are!! Good Job!!!!!
@shabba194
@shabba194 Жыл бұрын
Good stuff young man. Very easy to follow and straight to the point. Appreciate you
@aishwaryasubramaniyan7083
@aishwaryasubramaniyan7083 Жыл бұрын
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)
@connerd4772
@connerd4772 Жыл бұрын
absolute legend, im in uni and you explained it better than my lecturers aha
@wkennedypsyd1
@wkennedypsyd1 2 жыл бұрын
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 жыл бұрын
good luck !
@julietkariuki332
@julietkariuki332 Жыл бұрын
Well? How'd it go? You've got to tell us 😅😂☺️
@nategoodwin3329
@nategoodwin3329 Жыл бұрын
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.
@IshaanAgarwal-xv6zc
@IshaanAgarwal-xv6zc Жыл бұрын
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 Жыл бұрын
Thanks for this, this is the only code that worked with mine so you're a lifesaver
@MaximQuantum
@MaximQuantum Жыл бұрын
Thank you, that is very helpful indeed!
@FTAVSLM
@FTAVSLM Жыл бұрын
You are awesome!! it worked!!
@hilmanhilmi5789
@hilmanhilmi5789 Жыл бұрын
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 Жыл бұрын
Thanks, this made it work. Probably something has changed in the syntax in last 2 years.
@mleal8000
@mleal8000 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 жыл бұрын
thank you man, this seems so easy to understand. thanks again. great job.
@kamdenmay3340
@kamdenmay3340 3 жыл бұрын
Can you please upload more for AI tutorials? Great video btw
@sreepurammike
@sreepurammike 3 жыл бұрын
Yes same here
@docflexis9052
@docflexis9052 2 жыл бұрын
Same
@Ari_diwan
@Ari_diwan 2 жыл бұрын
Yes , more A.I. tutorials please 🥺
@KelGangi
@KelGangi Жыл бұрын
My dude, this was very helpful for my research! Thank you!
@MrAlivallo
@MrAlivallo Жыл бұрын
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 жыл бұрын
good job. the best teaching is when you make it simple.
@thegoldenchopper3355
@thegoldenchopper3355 2 ай бұрын
You are AWESOME! You are a prodigy at coding. Please continue what you do!
@EAGLETECHHACKING
@EAGLETECHHACKING Жыл бұрын
Very clear , easy and straight to the point. very good explanation
@Snorlaxxxxxxxxx
@Snorlaxxxxxxxxx 2 жыл бұрын
this dude made this tutorial and did push ups lmao but still THANK YOU FOR TEACHING
@SquidBeats
@SquidBeats 2 жыл бұрын
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 жыл бұрын
@@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 ай бұрын
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.
@iangraham6730
@iangraham6730 Жыл бұрын
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 Жыл бұрын
thank you sm
@pratikchirkute
@pratikchirkute 11 ай бұрын
thank you buddy
@Hermanuslife
@Hermanuslife 5 ай бұрын
Thank you
@lindafukuyu5767
@lindafukuyu5767 2 ай бұрын
You are awesome, Finally, it's working .. Yay ! Thank You so much !
@caluar100
@caluar100 Жыл бұрын
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?
@mrbreezybright
@mrbreezybright Жыл бұрын
Bro, I just finished watching this 2022 July... And I really appreciate your efforts so much.
@syedsiti9440
@syedsiti9440 2 жыл бұрын
Very interesting, now I know something I don't know before. Keep posting and thanks.
@NoobTiki
@NoobTiki 2 жыл бұрын
This dude needs more subs he has the best content ever.
@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! :)
@Khanradcoder
@Khanradcoder Ай бұрын
Thank you!
@Fine_Mouche
@Fine_Mouche 2 жыл бұрын
what we need to modify if we want to the AI analyse a different csv file ?
@shamjamali3972
@shamjamali3972 Жыл бұрын
how do you feed the AI data? Do you just evaluate a random x_test matrix with it and it auto classify y values?
@haribhushith7258
@haribhushith7258 2 жыл бұрын
Thank you so much, this was very educational.
@dobryponczek9234
@dobryponczek9234 Жыл бұрын
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'))
@untoastedbread0
@untoastedbread0 11 ай бұрын
thanks
@s4j4dms15
@s4j4dms15 2 жыл бұрын
thx man i have just started my project which is related to deep learning and this helped a lot
@stanisawkieniewicz499
@stanisawkieniewicz499 2 жыл бұрын
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?
@ricardoraulino-guitar
@ricardoraulino-guitar 2 жыл бұрын
Fantastic class, Bro! Thank you Very much!
@nik7069
@nik7069 2 жыл бұрын
You got it to work?
@bartlibert622
@bartlibert622 2 жыл бұрын
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 ?
@spoofersgaming
@spoofersgaming 2 жыл бұрын
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
@dedeye4349
@dedeye4349 Жыл бұрын
it maybe a stupid question but how do I then input values for the AI to look at?
@NevsTechBits
@NevsTechBits Ай бұрын
Thank you for your contributions to society and the internet with your free information, Brother.
@Lykaotix
@Lykaotix Жыл бұрын
Great tutorial and the example data set is a perfect example of why AI is so cool!
@Codro09
@Codro09 Жыл бұрын
loved it and your explanation was top notch!!
@mcsimp3695
@mcsimp3695 3 жыл бұрын
ur a legend u deserve all the love
@echotube3111
@echotube3111 2 жыл бұрын
Well the simp in your name isn't wrong lol
@mcsimp3695
@mcsimp3695 2 жыл бұрын
@@echotube3111 i simp for this guy
@midosasuke5035
@midosasuke5035 Жыл бұрын
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 жыл бұрын
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
@jinshamai2918
@jinshamai2918 Жыл бұрын
question: how to run this then? like will it say 0 or 1 as diagnosis?
@rusticagenerica
@rusticagenerica Жыл бұрын
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
@richardhorvatichfittrader
@richardhorvatichfittrader 2 жыл бұрын
Thanks for this. Super simple and easy to access.
@nathia1597
@nathia1597 12 күн бұрын
It made me feel like a programmer for a moment, even though I've never programmed in my life
@praveenguna2636
@praveenguna2636 2 жыл бұрын
Really like how you teach. Thanks
@machineteacher3573
@machineteacher3573 2 жыл бұрын
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 жыл бұрын
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 Жыл бұрын
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!
@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?
@Erbili.01
@Erbili.01 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
@alyaaka82
@alyaaka82 6 ай бұрын
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.
@Khanradcoder
@Khanradcoder 6 ай бұрын
Glad you liked it!
@SaifSaif-ki6ql
@SaifSaif-ki6ql 9 ай бұрын
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🤣
@kwhitevuu99
@kwhitevuu99 2 жыл бұрын
What site did you use for your dataset?
@jemrules835
@jemrules835 2 жыл бұрын
Watch this video if you want to run your model on a set of data: kzbin.info/www/bejne/d2WuZ3eVnN1lf9k
@leongodwin69
@leongodwin69 Жыл бұрын
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 Жыл бұрын
hello where can i see if the test part is 1 or 0?
@MdKamrulHasan-ux4zz
@MdKamrulHasan-ux4zz 2 жыл бұрын
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 kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@roberttrajkovski9288
@roberttrajkovski9288 2 жыл бұрын
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 Жыл бұрын
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 жыл бұрын
man , this is really fun thank you for the good video !
@HarwantPannu
@HarwantPannu Жыл бұрын
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 жыл бұрын
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 жыл бұрын
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.
@DeshaeClips
@DeshaeClips 2 ай бұрын
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
@Khanradcoder
@Khanradcoder 2 ай бұрын
Thanks for your comment! What types of tutorials would you like me to do next?
@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.
@DON9701
@DON9701 2 жыл бұрын
he really did the push ups LOL Nice video, very helpfull :)
@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?
@insane4201
@insane4201 3 жыл бұрын
What is the best language to Make ai
@urgeejo87
@urgeejo87 Жыл бұрын
You are very smart how you explain is clear thank you
@kaigoltz3073
@kaigoltz3073 10 ай бұрын
now that the model has been trained how can we actually use it?
@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
@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.
@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
@k3in_pl4n
@k3in_pl4n Жыл бұрын
Ty, you helped me to understand Neuron
@dik9091
@dik9091 Жыл бұрын
the best lesson in this video is doing the pushups in between waits, maybe the best lesson ever lol
@moroccanguy1957
@moroccanguy1957 2 жыл бұрын
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
@Steven-xi7hu
@Steven-xi7hu Жыл бұрын
Hey can someone help me with this. keep getting this error when i run it ValueError: Input 0 of layer "sequential_1" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30)
@MrXiroz
@MrXiroz 2 жыл бұрын
Hi Khanrad, great video. When I try to run your code as wel as my own version i get the following error at the last step: 'ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30)' What do you think could be the issue?
@decordova.
@decordova. 2 жыл бұрын
same can't figure it out.
@sirgb7
@sirgb7 2 жыл бұрын
I got the same thing
@Liquence
@Liquence 2 жыл бұрын
Me too
@haimijordaan1353
@haimijordaan1353 2 жыл бұрын
me too
@haimijordaan1353
@haimijordaan1353 2 жыл бұрын
This seems to work. input_shape = [None, x_train.shape[0], x_train.shape[1]]
But what is a neural network? | Chapter 1, Deep learning
18:40
3Blue1Brown
Рет қаралды 16 МЛН
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,1 МЛН
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 66 МЛН
Эффект Карбонаро и бесконечное пиво
01:00
История одного вокалиста
Рет қаралды 6 МЛН
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 66 МЛН
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 34 МЛН
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
How I'd Learn AI in 2024 (if I could start over)
17:55
Dave Ebbelaar
Рет қаралды 791 М.
Coding Interviews Be Like
5:31
Nicholas T.
Рет қаралды 6 МЛН
How AIs, like ChatGPT, Learn
8:55
CGP Grey
Рет қаралды 10 МЛН
Software engineer interns on their first day be like...
2:21
Frying Pan
Рет қаралды 13 МЛН
AI Learns to Walk (deep reinforcement learning)
8:40
AI Warehouse
Рет қаралды 8 МЛН
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 584 М.
10 Reasons to Ignore AI Safety
16:29
Robert Miles AI Safety
Рет қаралды 336 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,5 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11
iPhone 15 Unboxing Paper diy
0:57
Cute Fay
Рет қаралды 2,3 МЛН
С ноутбуком придется попрощаться
0:18
Up Your Brains
Рет қаралды 372 М.
Где раздвижные смартфоны ?
0:49
Не шарю!
Рет қаралды 636 М.