Intro to ML - Prerequisites
Machine learning - Prerequisites
You might be a beginner looking to make the next ChatGPT and pay off your student loan. This is not the tutorial for you.
Like I said in the Index page I am just learning AI just like you.
I stumbled upon the tsoding’s tutorial - Machine Learning in C (Episode 1).
If you understand C language or if you are a beginner, the tutorial is awesome.
This is my take on converting the tutorial into python.
Basics
Ik it sucks but you have to cover the basics before you dive deeper. If u feel confident just go to this section and get started.
Functions
Let’s start with functions
x = np.linspace(-10, 10, 100) # 100 points from -10 to 10
y = x ** 2
And we have graph of a square function.
Now consider y = f(x)
def f(x):
return x**2
x = np.linspace(-10, 10, 100)
y = f(x)
so we can say that the graph of f(x) is given above
Here is a beutiful video on function by sal from khanacademy - What is a function?
Derivatives
Derivative of a function gives us the idea of how much the output chnages when we change by a very small value.
which is essentially,
(rise over run) or or now ->
Now derivative is a mathematical formula which gives slope of graph at a point,
Slope of a graph
This is useful when we have to calculate the fastest way to get to the bottom of that parabola
And that will be all prerequisites,
The rest you can learn on the way ..