Skip to main content

Calculate the Concentration Free Outlier Factor score, based on Angiulli's work

Project description

PyPI

pyCFOF

Pour commencer

Installation

Lancer pip install -r requirements.txt ou python3 -m pip install -r requirements.txt.

Ou à partir du dépôt pip install Concentration-Free-Outlier-Factor.

Utilisation

>>> from pyCFOF import ConcentrationFreeOutlierFactor as CFOF
>>> X = [[-1.1], [0.2], [101.1], [0.3]]
>>> cfof = CFOF(n_neighbors=len(X), rho=[0.1])
>>> cfof.fit_predict(X)
array([[ 1],
       [ 1],
       [-1],
       [ 1]])
>>> cfof.outlier_factor_
array([[0.75],
       [0.5 ],
       [1.  ],
       [0.5 ]])

Remerciements

Développements des travaux de :

Utilisation de :

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page