Create your first ML model
Consider the following sets of numbers. Can you see the relationship between them?
As you look at them, you might notice that the value of X is increasing by 1 as you read left to right and the corresponding value of Y is increasing by 3. You probably think that Y equals 3X plus or minus something. Then, you'd probably look at the 0 on X and see that Y is 1, and you'd come up with the relationship Y=3X+1.
That's almost exactly how you would use code to train a model to spot the patterns in the data!
Now, look at the code to do it.
How would you train a neural network to do the equivalent task? Using data! By feeding it with a set of X‘s and a set of Y‘s, it should be able to figure out the relationship between them.
Run it in Colaboratory
Past in your code and click run.
For 10, the prediction is 30.995588
which is close to the expected Y= 3X+1 = 3*10 + 1 = 31
Run it Locally
You may need to update pip3, etc...
> python3 <file>
|Intro to Machine Learning (ML Zero to Hero - Part 1)||https://www.youtube.com/watch?v=KNAWp2S3w94&t=308s|
|Basic Computer Vision with ML (ML Zero to Hero - Part 2)||https://www.youtube.com/watch?v=bemDFpNooA8|
|Hello World for Machine Learning||https://developers.google.com/codelabs/tensorflow-1-helloworld#2|