Different types of Functions
- 
Regression: The function outputs a scalar 
- 
Classification: Given options(classes),the function outputs the correct one 
- 
Structured Learning 
1. Function with Unknown Parameters
 
Model 在机器学习中就是带有未知的Parameter的function;
w: weight b: bias
2. Define Loss from Training Data
Loss is a function of parameter:
Loss: 为每次误差
L is mean absolute error(MAE) 绝对误差
L is mean square error(MSE) 平方误差
 
寻找一个最合适的b和w,使得L最低
3. Optimization
 
Gradient Descent : 梯度下降
 
All Piecewise Linear Curves = constant + sum of a set of
 
sigmod : S型的function
