A simple guide on how to train your first neural network in under 10 minutes to kick-start your machine learning journey.

(+ no setup required and free extra resources)
๐Ÿงต๐Ÿ‘‡

For this exercise, you'll need :
- A computer/phone
- An internet connection
- Very basic Python knowledge
- Willingness to learn

What you do not need:
- Complex math
- An expensive computer
- A PhD

Math will come later on in your machine learning journey :)

(2 / 15)
Here's our problem,we are given data in which we are given the number of flats in a house and its corresponding price. Like a house with one flat is worth 10000, and 20000 for a house with 2 flats.

(3 / 15)
We can clearly tell that the price of the house increases by 10000 per extra flat however our computer does not know this and we won't it tell it about this, it'll have to figure things out on its own.

(4 / 15)
Here's the code๐Ÿ‘‡

(5 / 15)
In order to avoid the hassle of the setup for python, we'll use collab which has all the libraries we need pre installed, a free GPU for faster learning and everything runs in the cloud!

๐Ÿ”—//colab.research.google.com/drive/1FxSrY6hwdgszzNydyobTLsMyO0bfpiPs?usp=sharing

(6 / 15)
Let's try to understand what is going on here

1. We import TensorFlow and Keras which are frameworks for making neural nets

2. Our Neural Net: This is where all the magic happens, for this exercise we need only one neuron.

Wait! What is a neural net?๐Ÿ‘‡

(7 / 15)
Neural Networks are a digital imitation of the neurons you see in the human brain.

In these neural networks, data flows through them and each neuron (the circle) has a numerical value which will change.

(8 / 15)
The value of a neuron gets changes to something which is close to what we want each time the data passes through the neural network.

Think of the neurons as dials on a lock, you have to tune every dial to open the lock.

(9 / 15)
It is almost impossible for a human to tune thousands of dials like these, but a computer certainly can.

Once the dials are well tuned, you have a well trained neural network!
...

(10 / 15)
... In this case we'll be able to predict the prices of houses based on how many flats they have.

3. Now we pass the data (flats and prices) through our neural network 500 times. (these loops are called epochs)

(11 / 15)
4. Finally,we predict what the price of a house with 10 flats. (we should get something around 100,000)

And that's it! It was that easy.
In case you want to improve your python and machine learning skills after this exercise, these are great frfee courses to take ๐Ÿ‘‡

(12 / 15)
Machine learning foundations course
๐Ÿ”—//youtube.com/watch?v=_Z9TRANg4c0

> A simple yet extremely effective course on getting started with machine learning without all the crazy math.

(13 / 15)
The Basic & Intermediate Python course on freecodecamp
๐Ÿ”—Basics //youtube.com/watch?v=rfscVS0vtbw
๐Ÿ”—Intermediate //youtube.com/watch?v=HGOBQPFzWKo

(14 / 15)

More from Pratham Prasoon

More from Machine learning

This is a Twitter series on #FoundationsOfML.

โ“ Today, I want to start discussing the different types of Machine Learning flavors we can find.

This is a very high-level overview. In later threads, we'll dive deeper into each paradigm... ๐Ÿ‘‡๐Ÿงต

Last time we talked about how Machine Learning works.

Basically, it's about having some source of experience E for solving a given task T, that allows us to find a program P which is (hopefully) optimal w.r.t. some metric


According to the nature of that experience, we can define different formulations, or flavors, of the learning process.

A useful distinction is whether we have an explicit goal or desired output, which gives rise to the definitions of 1๏ธโƒฃ Supervised and 2๏ธโƒฃ Unsupervised Learning ๐Ÿ‘‡

1๏ธโƒฃ Supervised Learning

In this formulation, the experience E is a collection of input/output pairs, and the task T is defined as a function that produces the right output for any given input.

๐Ÿ‘‰ The underlying assumption is that there is some correlation (or, in general, a computable relation) between the structure of an input and its corresponding output and that it is possible to infer that function or mapping from a sufficiently large number of examples.
10 PYTHON ๐Ÿ libraries for machine learning.

Retweets are appreciated.
[ Thread ]


1. NumPy (Numerical Python)

- The most powerful feature of NumPy is the n-dimensional array.

- It contains basic linear algebra functions, Fourier transforms, and tools for integration with other low-level languages.

Ref:
https://t.co/XY13ILXwSN


2. SciPy (Scientific Python)

- SciPy is built on NumPy.

- It is one of the most useful libraries for a variety of high-level science and engineering modules like discrete Fourier transform, Linear Algebra, Optimization, and Sparse matrices.

Ref: https://t.co/ALTFqM2VUo


3. Matplotlib

- Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.

- You can also use Latex commands to add math to your plot.

- Matplotlib makes hard things possible.

Ref: https://t.co/zodOo2WzGx


4. Pandas

- Pandas is for structured data operations and manipulations.

- It is extensively used for data munging and preparation.

- Pandas were added relatively recently to Python and have been instrumental in boosting Pythonโ€™s usage.

Ref: https://t.co/IFzikVHht4

You May Also Like

๐ŸŒฟ๐‘ป๐’‰๐’† ๐’”๐’•๐’๐’“๐’š ๐’๐’‡ ๐’‚ ๐‘บ๐’•๐’‚๐’“ : ๐‘ซ๐’‰๐’“๐’–๐’—๐’‚ & ๐‘ฝ๐’Š๐’”๐’‰๐’๐’–

Once upon a time there was a Raja named Uttฤnapฤda born of Svayambhuva Manu,1st man on earth.He had 2 beautiful wives - Suniti & Suruchi & two sons were born of them Dhruva & Uttama respectively.
#talesofkrishna https://t.co/E85MTPkF9W


Now Suniti was the daughter of a tribal chief while Suruchi was the daughter of a rich king. Hence Suruchi was always favored the most by Raja while Suniti was ignored. But while Suniti was gentle & kind hearted by nature Suruchi was venomous inside.
#KrishnaLeela


The story is of a time when ideally the eldest son of the king becomes the heir to the throne. Hence the sinhasan of the Raja belonged to Dhruva.This is why Suruchi who was the 2nd wife nourished poison in her heart for Dhruva as she knew her son will never get the throne.


One day when Dhruva was just 5 years old he went on to sit on his father's lap. Suruchi, the jealous queen, got enraged and shoved him away from Raja as she never wanted Raja to shower Dhruva with his fatherly affection.


Dhruva protested questioning his step mother "why can't i sit on my own father's lap?" A furious Suruchi berated him saying "only God can allow him that privilege. Go ask him"