Make Your First AI in 15 Minutes with Python

preview_player
Показать описание
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:

Get the dataset:

If you want to learn more about neural networks and machine learning, consider watching my two tutorials:

Get 60 Free Days of Unlimited Access to Scribd!

Follow Me:
Рекомендации по теме
Комментарии
Автор

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.🤯

matthewgriffith
Автор

Yo i think OpenAI copied your tutorial

captaintroll
Автор

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.

sennetor
Автор

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.

snoopi
Автор

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.

redbeardhomes
Автор

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! 😀

benjaminw
Автор

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

ryanmichael
Автор

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?

richardtrump
Автор

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

djjj
Автор

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.

wkennedypsyd
Автор

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 =


Run the fifth block a few times, then try again- it should work

IshaanAgarwal-xvzc
Автор

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!!

kevinwestrom
Автор

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.

_askew
Автор

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

tejasplayzYT
Автор

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

KennTollens
Автор

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

nebiyoupaulos
Автор

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

kamdenmay
Автор

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

shabba
Автор

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

mleal
Автор

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

connerd