Skip to main content

kNN-P Classifier (Under Development)

Licence

Overview

This repository contains an implementation of the kNN-P classifier, an enhanced version of the k-nearest neighbors algorithm utilizing membrane computing. kNN-P is designed for parallel and distributed computing, which can improve the performance of the original k-nearest neighbors algorithm for classification tasks.

Please note that this project is currently under development.

Features

  • Implementation of the kNN-P classifier.
  • Designed for parallel and distributed computing.
  • Improved performance for classification tasks.

Installation

You can install this package using pip:

pip install knnp

Usage

from knnp.p_systems import kNN_P

# Create an instance of kNN-P
knn_p = kNN_P(n=100, d=2, q=10, m=5, k=3, maxstep=100)

# Load your training data (features) and class labels
training_data = ...
class_labels = ...

# Train the classifier
knn_p.fit(training_data, class_labels)

# Load your test data
test_data = ...

# Make predictions
predictions = knn_p.predict(test_data)

# Evaluate the predictions and calculate classification metrics
...

Contributing

Contributions to this project are welcome. Please follow these guidelines for contributing:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes.
  4. Push your branch to your fork.
  5. Create a pull request with a clear description of your changes.

License

This project is open-source and available under the MIT License.

Contact

If you have questions or need further assistance, please feel free to reach out to Khushiyant.


Please note that this project is under development. Use it with caution, and contributions are encouraged.

Metadata

Release files for kNNp 0.0.1

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

Source distribution (sdist)

Source distribution for kNNp 0.0.1
File Size Uploaded Provenance Actions
kNNp-0.0.1.tar.gz 5.3 kB Without provenance Details for kNNp-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / kNNp-0.0.1.tar.gz

Download URL kNNp-0.0.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aba7e3bc3fcd5b46277efd8448ffd0da627be6959e3bb6cd66dcd6392736b913
BLAKE2b-256 checksum
How to use checksums
202f37c39e47ce4ba0210cc4558b360a8cc5f49023c3b366b626dcab476723fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / kNNp-0.0.1-py3-none-any.whl

Download URL kNNp-0.0.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e38f7327410ab9153ac0bd63994febbe2c92cafee3b9fbf23e6cd6115e46f331
BLAKE2b-256 checksum
How to use checksums
638cac1defea99b239aa7a13f4da8443b7010f41f220d839bfb14aa2fafe2760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for kNNp 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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