A kNN classifier optimized by P systems
Project description
kNN-P Classifier (Under Development)
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:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes.
- Push your branch to your fork.
- 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.
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
File details
Details for the file kNNp-0.0.1.tar.gz
.
File metadata
- Download URL: kNNp-0.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba7e3bc3fcd5b46277efd8448ffd0da627be6959e3bb6cd66dcd6392736b913 |
|
MD5 | e1c517296bb604d8ca77851756f5ecd5 |
|
BLAKE2b-256 | 202f37c39e47ce4ba0210cc4558b360a8cc5f49023c3b366b626dcab476723fd |
File details
Details for the file kNNp-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: kNNp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38f7327410ab9153ac0bd63994febbe2c92cafee3b9fbf23e6cd6115e46f331 |
|
MD5 | d07591ea6f8ab08de67c206265cea315 |
|
BLAKE2b-256 | 638cac1defea99b239aa7a13f4da8443b7010f41f220d839bfb14aa2fafe2760 |