Skip to main content

py4pnn

Pseudo Nearest Neighbors Python Library

Getting Started

This project is simply implementation of Pseudo Nearest Neighbors algorithm in python programming language.

Prerequisites

This Project Has No Prerequisites

Installing

The easiest way to install py4pnn is using pip

pip install py4pnn

Usage

There is only 1 public method of pnn class. It is predict method, it takes 5 argument namely x_train, t_train, x_test, k, and distance calculation method. We provide 6 distance namely euclidean, squared_euclidean, manhattan, canberra, chebyshev, and bray_curtis.

from py4pnn.p_nearest_neighbors import pnn
classifier = pnn()
x_train = [[0.23,0.54],[0.45,1.23],[1.54,0.23],[0.93,0.535]]
t_train = [0,1,0,1]
x_test = [[0.34,0.65],[0.90,0.50]]
y = classifier.predict(x_train,t_train,x_test,1,'euclidean')

Metadata

Release files for py4pnn 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py4pnn 0.0.3
File Size Uploaded Provenance
py4pnn-0.0.3.tar.gz 2.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py4pnn 0.0.3
File Interpreter ABI Platform
py4pnn-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / py4pnn-0.0.3.tar.gz

Download URL py4pnn-0.0.3.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3ce3d4ed2b51086d655f1c8de71b221f7c47bb28e8ba5142bace9686b7568936
BLAKE2b-256 checksum
How to use checksums
c5d75ae741ea1e678ac80831a6dfb3e43623c1be609d7496b72118db232f8a2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Release files / py4pnn-0.0.3-py3-none-any.whl

Download URL py4pnn-0.0.3-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
197aef398b33f707cd3f7835b9cf0dba67c85fcf484ab6aadc1c2a0d7a6aa064
BLAKE2b-256 checksum
How to use checksums
b20fb5c5886dfdd3e562d6709dc15e650a62e5a38f2249fa11afef20dc90c407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Security for py4pnn 0.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page