# 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
Metadata
Release files for gokinjo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gokinjo-0.1.0.tar.gz | 4.8 kB | Without provenance | Details for gokinjo-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gokinjo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gokinjo-0.1.0-py3-none-any.whl |
Total release size: 15.0 kB
Release files / gokinjo-0.1.0.tar.gz
| Download URL | gokinjo-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11e0fe7212caa4705eeb987706e6397a5ab69ed4a1bcbb646542cadd87a86521
|
|
BLAKE2b-256 checksum How to use checksums |
9e3a7a6d6874cef8922e324e3c903bb5ca502d0eb0620f7446649d6c4edbe8bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / gokinjo-0.1.0-py3-none-any.whl
| Download URL | gokinjo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e8ff70832415552b7de22b78b84736ffebdbaa908f88d7c020a99d87419cab7
|
|
BLAKE2b-256 checksum How to use checksums |
0d670061bb60605d2d8235e15c37f2c60adb7a25a0fd8183d08a48572e04becc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for gokinjo 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.