機器學習筆記 ---- Anomaly Detection & Recommendation Systems
(1) Anomaly Detection
1. Task of Anomaly Detection
Given training set, test whether some new examples are anomalous.
2. Anomaly Detection Algorithm
First choose the parameters which might be indicative of anomalous examples.
Assume every parameter
then is anomalous
3. Evaluation of Anomaly Detection Algorithm
Fit the model on training set and test the model on CV set/test set.
Precision/Recall/F1 Score
Use CV set to choose
4. Comparison between Anomaly Detection and Supervised Learning
5. Other Features
(2) Recommendation Systems
1. Content Based Recommendations
For each user, learn a parameter
, use
to predict user’s favorites.
represents the content of
-th movie.
This can be solved by linear regression
2. Collaborative Filtering Algorithm
Given
, Optimize
.
Similarly, this is a linear regression problem.
3. Vectorization
The predicted result is
How to find two related movies? —Minimize
4. Mean Normalization
What if
?
, predict