Re: [scikit-learn] question for using GridSearchCV on LocalOutlierFactor

2017-10-22 Thread Hristo Georgiev
Hi, As it has been indicated by other members, methods such as ``LocalOutlierFactor`` do not expose a ``predict`` method by design. However, if you nevertheless would still like to keep experimenting in the direction of attempting to make predictions on "unseen" data, you could simply create a s

Re: [scikit-learn] question for using GridSearchCV on LocalOutlierFactor

2017-10-09 Thread Andreas Mueller
What are you trying to achieve with this code? If you label everything as 1, the highest accuracy will be obtained if everything is labeled as 1. So even if the interface was implemented, the result would not be helpful. On 10/06/2017 12:53 AM, Lifan Xu wrote: Hi,     I was trying to train a

Re: [scikit-learn] question for using GridSearchCV on LocalOutlierFactor

2017-10-08 Thread Albert Thomas
Hi, As Joel said LOF is not designed to be applied on unseen data. Therefore there is no public predict. Albert On Sun 8 Oct 2017 at 06:17, Joel Nothman wrote: > actually I'm probably wrong there, but you may not be able to use accuracy > ___ > sciki

Re: [scikit-learn] question for using GridSearchCV on LocalOutlierFactor

2017-10-07 Thread Joel Nothman
actually I'm probably wrong there, but you may not be able to use accuracy ___ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn

Re: [scikit-learn] question for using GridSearchCV on LocalOutlierFactor

2017-10-07 Thread Joel Nothman
I don't think LOF is designed to apply to unseen data. ___ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn

[scikit-learn] question for using GridSearchCV on LocalOutlierFactor

2017-10-05 Thread Lifan Xu
Hi, I was trying to train a model for anomaly detection. I only have the normal data which are all labeled as 1. Here is my code: clf = sklearn.model_selection.GridSearchCV(sklearn.neighbors.LocalOutlierFactor(), parameters, scoring="acc