Solved – How to use LOF for outlier detection as I have training and test dataset

data mininghypothesis testingoutliers

I want to use the Local Outlier Factor (LOF) algorithm for outlier detection but it simply finds outliers on unlabed data as whole and you do not need to have a training and test set. However in my case I expect to get some knowledge from the training set and test this knowledge on test data (it seems like an ordinary classification problem 🙂 ). Is there any way to use the LOF or any other anomaly detection algorithm via training and test set? At least, how can I get some statistics for my test set specifically? What is the methodology of using these with separated data?

Best Answer

If you have training data, you might want to look at one-class classification methods, such as one-class SVM.