k-NN feature extraction utility
Project description
# gokinjo
A feature extraction library based on k-nearest neighbor algorithm in Python - k-NN based feature has experience of being used in 1st place solution of Kaggle competition
Switchable backend of k-NN algorithm - [scikit-learn](https://github.com/scikit-learn/scikit-learn) (default) - [annoy](https://github.com/spotify/annoy)
FYI: ‘gokinjo’ is meant neighborhood in japanese.
### Prerequisite
Python 3.6 or later
setuptools >= 30.0.3.0
### How to install
#### From PyPI
`bash $ pip install gokinjo `
##### With annoy backend
`bash $ pip install "gokinjo[annoy]" `
#### From source code
`bash $ pip install git+https://github.com/momijiame/gokinjo.git `
### Usage example
Please see [examples](https://github.com/momijiame/gokinjo/tree/master/examples) in GitHub repository.
### How to setup of development environment
`bash $ pip install -e ".[develop]" $ pytest `
### References
The competition which k-NN feature was used on 1st place solution - https://www.kaggle.com/c/otto-group-product-classification-challenge/discussion/14335
R implementation - https://github.com/davpinto/fastknn/blob/master/R/extract.R
Another Python implementation - https://github.com/upura/knnFeat
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gokinjo-0.1.0.tar.gz.
File metadata
- Download URL: gokinjo-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11e0fe7212caa4705eeb987706e6397a5ab69ed4a1bcbb646542cadd87a86521
|
|
| MD5 |
2a76bca0c3cc5b97b8c66bbd8347868f
|
|
| BLAKE2b-256 |
9e3a7a6d6874cef8922e324e3c903bb5ca502d0eb0620f7446649d6c4edbe8bd
|
File details
Details for the file gokinjo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gokinjo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e8ff70832415552b7de22b78b84736ffebdbaa908f88d7c020a99d87419cab7
|
|
| MD5 |
12dce4ec861569eb2db564aa466a409f
|
|
| BLAKE2b-256 |
0d670061bb60605d2d8235e15c37f2c60adb7a25a0fd8183d08a48572e04becc
|