jeroenjanssens / scikit-sos

A Python implementation of the Stochastic Outlier Selection algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement a sklearn style fit and predict to use SOS as one-class classifier

opengeostat opened this issue · comments

@jeroenjanssens,

This is an elegant and intuitive algorithm for outlier detection. It would be nice to extend it to a one-class classifier by implementing a fit and predict functions in sklearn style. To do that it will be required:

  • moving the content of SOS.predict to SOS.fit. SOS.fit may generate a model with matrices D, A, B, O
  • implementing a new SOS.predict with a new data point x'. For example, by mapping\ranking x'on the matrix D, or any other way that you probably already have in mind!