1/6
finding outlier
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Anomaly Detection:
to detect the outlier`
we can detect this using the isolation tree 🎄 🎄
Local Outlier vs Global Outlier
This is near some Cluster
Not Near to cluster
Isolation of tree with 1 outlier
Isolation of tree with 2 outlier
if contamination float value > _____ consider as outlier
0.5
we can also find outler using _______ Algo
DBSCAN
plt.scatter(X[:,0],X[:,1],c=dbcan.labels_)
# dark violet is the outlier
How do we use local outlier factor
plt.scatter(X[y_pred == -1, 0], X[y_pred == -1, 1], color='r', s=6., label='Detected anomalies')
# s=6.: Sets the size of the points to 6.