Unformatted text preview:

Artificial Intelligence Tutorial AI Tutorial for Beginners Artificial Intelligence Artificial intelligence is a branch of computer science that focuses on creating intelligent machines that behave and react like humans We will be using the TensorFlow programming language for this project and we will focus on a use case of predicting if a person has diabetes Machine learning provides artificial intelligence with the ability to learn by discovering patterns and generating insights from the data it is exposed to When we achieve artificial intelligence deep learning will play an important role in enabling machines to mimic the workings of human brains There are a lot of models out there called feature extraction which separates photos into different categories such as landscapes portraits and others Bingo figures out which features are most frequent in each category and based on those features it assigns a label to the photo Let s see what happens when I enter my room the sensors in my room detect my presence and switch on the lights this is an example of nonmemory machines We re going to dive just a little deeper because we ve talked about airline ticket prices kind of very specific you get one specific number but let s look at some more things that are probably more inhome more common right now Speaking of home artificial intelligence home appliances that are coming out pretty amazing time to be alive and in this industry here you have one more application of artificial intelligence and you can probably think of dozens of others that are right now on the cutting edge of development so let s jump into my favorite part which is a use case predict if a person has diabetes and in the medical domain we would want to restate this as what is the risk We re actually going to go with the tensorflow and you do have to import all the different modules in your python now if you re in a different python ide that s fine it ll work in just about any of your python ides We re going to load our data up we re going to explore it and then we will label it then we ll get down to the end where we are going to take a look at how good the model is does it work so let s start with the top part here and let me go ahead Simply learning can help you get that file also and that s true of any questions you have on this You can add comments down there and somebody at simplylearn actually keeps an eye on that We ll try to answer those questions for you I put in the full path you do not have to if you have your data files saved in the same folder you re running your program in and this is just a csv file We re looking at number of pregnancies uh glu basically anything that can be read as a float number We re going to look at just specific columns and we re going to address that differently because when you re doing statistics we usually take ages and we group them into buckets and we ll talk about that A very high level I don t know what they actually go to a neural network we ll look at this six and it ll go zero to six and as you get into zero six here s an eight even a higher number it will weight those heavier We use a function we put x in and whatever is outside of the x over here it then takes that and returns that value so the new value is going to be whatever x is minus x min We ve scaled them all and changed them to a zero to one value We now need to let the program know the tensorflow model that we re going to create We want to create a model and then we want to test that model predicting whether somebody new has diabetes or not That s what we re testing for What we just did with this set of code is if we go back up here to the top part we have group b c b b c We re doing the matplot library and we want it to be inline because we re in a jupyter notebook Remember I told you before that if you re running this in a different ide you might get a different result At 22 most of the participants in this study were of this age bracket they re right here in this first column here and as they get further and further down they have less and less in a couple of these categories When you re at 80 you can actually see down here that there s almost none in some categories and this is important to know because the older the group is the more people have passed away TensorFlow allows for batching of operations when large amounts of data are being processed which can result in incorrect predictions when only a small amount of data is read at a time In order to avoid this each row of data is processed one at a time This is done by mixing the rows together and then training the model The predictions are then evaluated on a small amount of data and the results are used to improve the model We created a model that can predict if a person has diabetes based on previous records of people who were diagnosed with diabetes The model was implemented on Python using TensorFlow Our model s accuracy was 71 which we achieved by using TensorFlow Additionally we covered what artificial intelligence is and how it compares to human abilities We noted that we did not use it in the use case of somebody walking into a room and activating their TV using artificial intelligence We dug deep and coded in Python to develop our model If you have any questions or would like some verifications or more information please feel free to add a note in the YouTube comment section We would be happy to answer your questions To learn more please visit www simplylearn com Additionally you can get certified and get ahead by clicking the link provided in the YouTube video s comments section


View Full Document

MIT 6 825 - Artificial Intelligence Tutorial

Download Artificial Intelligence Tutorial
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Artificial Intelligence Tutorial and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Artificial Intelligence Tutorial 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?