Skip to content

luk-f/pyCFOF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :