mapbox / gabbar

Guarding OpenStreetMap from harmful edits using machine learning
MIT License
19 stars 7 forks source link

sklearn.neighbors.LocalOutlierFactor #92

Open bkowshik opened 7 years ago

bkowshik commented 7 years ago

Per chat with @jcsg, I briefly tried the LocalOutlierFactor model. Posting early, will spend some more time for a detailed analysis of both the model and the results.

Per https://stackoverflow.com/a/36869611/3453958

The NearestNeighbors class is unsupervised and can not be used for classification but only for nearest neighbor searches.

Neighbors for an inlier (good highway)

screen shot 2017-07-14 at 9 14 11 pm

Neighbors for an outlier (harmful highway)

screen shot 2017-07-14 at 9 18 41 pm