by
Arun Prakash A
x1 | x2 | y |
---|---|---|
1 | -1 | 3 |
2 | 2 | 2 |
x1 | x2 | y |
---|---|---|
1 | -1 | 3 |
2 | 2 | 2 |
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
Now change x2 to different values
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
There is an error in the prediction!
x1 | x2 | y |
---|---|---|
1 | 2 | 3 |
2 | 4 | 2 |
3 | 6 | 2 |
Subspace is R1
Now, the matrix is rectangular!
x1 | x2 | y |
---|---|---|
-2 | 4 | -1 |
2.5 | -1 | 1 |
0.5 | 3 | 4 |
Feature and labels are points in which dimension m or n?
x1 | x2 | y |
---|---|---|
-2 | 4 | -1 |
2.5 | -1 | 1 |
0.5 | 3 | 4 |
Feature and labels are points in which dimension m or n?
x1 | x2 | y |
---|---|---|
-2 | 4 | -1 |
2.5 | -1 | 1 |
0.5 | 3 | 4 |
Feature and labels are points in which dimension m or n?
Do the vectors X1,X2 span whole R3?
x1 | x2 | y |
---|---|---|
-2 | 4 | -1 |
2.5 | -1 | 1 |
0.5 | 3 | 4 |
Do the vectors X1,X2 span whole R3?
Is the vector Y in the space spanned by
Subspace is R2
x1 | x2 | y |
---|---|---|
-2 | 4 | -1 |
2.5 | -1 | 1 |
0.5 | 3 | 4 |
Let's project Y on the subspace spanned by the two data points?
x1 | x2 | y |
---|---|---|
-2 | 4 | -1 |
2.5 | -1 | 1 |
0.5 | 3 | 4 |
x1 | x2 | y |
---|---|---|
-2 | 4 | -1 |
2.5 | -1 | 1 |
0.5 | 3 | 4 |
x1 | x2 | y | |
---|---|---|---|
-2 | 4 | -1 | |
2.5 | -1 | 1 | |
0.5 | 3 | 4 | |
All of them are points in m dimensional space!
Xw=Y
What is h(x)? How it differs from f(x)?
(With a slight abuse of notations)
x | y |
---|---|
1.22 | 0.44 |
1.3 | 0.51 |
1.4 | 0.56 |
1.49 | 0.61 |
How many functions are there such that it connects all these four points?
What is h(x)? How it differs from f(x)?
x | y |
---|---|
1.22 | 0.44 |
1.3 | 0.51 |
1.4 | 0.56 |
1.49 | 0.61 |
How many functions are there such that it connects all these four points?
What is h(x)? How it differs from f(x)?
x | y |
---|---|
1.22 | 0.44 |
1.3 | 0.51 |
1.4 | 0.56 |
1.49 | 0.61 |
How many functions are there such that it connects all these four points?
What is h(x)? How it differs from f(x)?
x | y |
---|---|
1.22 | 0.44 |
1.3 | 0.51 |
1.4 | 0.56 |
1.49 | 0.61 |
How many functions are there such that it connects all these four points?
What is h(x)? How it differs from f(x)?
x | y |
---|---|
1.22 | 0.44 |
1.3 | 0.51 |
1.4 | 0.56 |
1.49 | 0.61 |
How many functions are there such that it connects all these four points?
What is h(x)? How it differs from f(x)?
x | y |
---|---|
1.22 | 0.44 |
1.3 | 0.51 |
1.4 | 0.56 |
1.49 | 0.61 |
How many functions are there such that it connects all these four points?
There could be infinite such functions.
H
f(x)
h
What is h(x)? How it differs from f(x)?
x | y |
---|---|
1.22 | 0.44 |
1.3 | 0.51 |
1.4 | 0.56 |
1.49 | 0.61 |
2.17 | 1.18 |
-0.09 | 0.12 |
How many functions are there such that it connects all these four points?
The number of data points helps choose a better function!
H
f(x)
h
Sum first 100 natural numbers
Iterative: 1 +2 +3+...+100
Closed form: 2n(n+1)=2100∗(100+1)
Source: Wikipedia
What is the difference between setting f(x)=0 and ∇f(x)=0?
Consider a function f(x)=x2−5x+4
1. f(x)=x2−5x+4=0 gives us x=1,x=4
2. ∇f(x)=2x−5=0 gives us x=2.5
Let's see geometrically by plotting the function in the interval 0≤x≤5.
We can't rely on plotting, because we don't know the range for x a prior!
What do you mean by gradient or slope of a function?
f′(x)=Δf(x+Δx)−f(x)
Let's set Δx=0.1
Follow exactly opposite to where the gradient points, to reach the minima.
Gradient is your guide!