Skip to content

Two-Sample Test with Nearest Neighbors Density Ratio Estimation

License

Notifications You must be signed in to change notification settings

de-simone/NN2ST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

NN2ST

Two-Sample Test with Nearest Neighbors Density Ratio Estimation

NN2ST is a Python code to perform Two-Sample (a.k.a. Homogeneity) test of two data samples using the method of density ratio estimation with Nearest Neighbors.

Get Started

The source code is fully contained in the file NN2ST.py.

To run the code, simply type 'python NN2ST.py' from command line.

The default data are synthethic random samples generated from 2-dimensional gaussians.

The code can be easily adapted to input data of any dimension from external files.

Citation

If you use this package, or parts of it, please cite the original paper http://arxiv.org/abs/1807.06038

About

Two-Sample Test with Nearest Neighbors Density Ratio Estimation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages