Coursera, Machine Learning, Anomoly Detection & Recommender system

时间:2021-04-23 14:45:06
 
Algorithm:
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
 
When to select Anonaly detection or Supervised learning? 总的来说guideline是如果positive example (anomaly examples)特别少就用Anamaly detection. 如果数据positive example 越来越多,可以选择从Anomanly detection 切换到 Supervised learning.
 
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
怎么选择feature ?
 
可以先画出feature的分布图,如果不符合高斯分布,就对feature做一些转化,使得更像高斯分布
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
如果一维feature实在不像高斯分布,可以考虑给feature再多加一个维度
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
 
Multivariate Gaussian(Normal) examples
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
The original Gaussian model is a specific multivariate Gaussian model, please see following picture
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
 
 
Original vs Multivariate Gaussian
    虽然Multivariate 更全面,但是一般来说Original用的更多一些,因为计算cheeper, 一般在m很大n不大的时候考虑Mutivariate版本
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
 
 

Recommender system

 
  1. content based recommender system (content based 意思是比如我们已经知道每个电影的类型,像爱情片,动作片,。。。)

  人工分析每个电影的内容,得出feature 值,就是下面的romance, action 对应的值. 然后用linear regression 求出 theta.

  Coursera, Machine Learning, Anomoly Detection & Recommender system

Coursera, Machine Learning, Anomoly Detection & Recommender system

  

  上面讲的是针对一个user的theta 参数,下面这个图是learn 所以的参数Coursera, Machine Learning, Anomoly Detection & Recommender system

Coursera, Machine Learning, Anomoly Detection & Recommender system
 
  1. colabarative filtering algorithm (for feature learning, for specifically, theta->x->theta->x...)
   Coursera, Machine Learning, Anomoly Detection & Recommender system
algorithm:
concept of the algorithm of colabarative filtering
Coursera, Machine Learning, Anomoly Detection & Recommender system
cost function:
calculate theta and x simutanously in one cost function
Coursera, Machine Learning, Anomoly Detection & Recommender system
 
 
derivative:
Coursera, Machine Learning, Anomoly Detection & Recommender system
 Coursera, Machine Learning, Anomoly Detection & Recommender system
  1. low rack matrix factorization ( 不是一种新算法,是collaborating filter algo 的矩阵实现)
    Coursera, Machine Learning, Anomoly Detection & Recommender system
   Coursera, Machine Learning, Anomoly Detection & Recommender system
    Coursera, Machine Learning, Anomoly Detection & Recommender system
Ref: