Keep updating
This passage summarize the knowledge in web
https://www.coursera.org/learn/machine-learning/
Supervised learning
In supervised learning, we are given a data set and already know what our correct output should look like, having the idea that there is a relationship between the input and the output.
Supervised learning problems are categorized into “regression” and “classification” problems.
regression problem
map input variables to some continuous function
classification problem
map input variables into discrete categories
Unsupervised learning
Unsupervised learning allows us to approach problems with little or no idea what our results should look like. We can derive structure from data where we don’t necessarily know the effect of the variables.
notation
x(i) denotes the i th input
y(i) denotes the i th output
A pair (x(i),y(i)) denotes a training example
m denotes the number of training examples
X denote the space of input values
Y denotes the space of output values
h(x) denote a function(predictor) that maps x to y
our goal is find the proper
Gradient Descent Algorithm
where
and where
we should simultaneously update theta0 and theta1 at each iteration.
Typically h(x) can be in the form of
Batch Gradient Descend
The method looks at every example in the entire training set on every step.