kNNp


NamekNNp JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryA kNN classifier optimized by P systems
upload_time2023-10-30 19:03:12
maintainer
docs_urlNone
authorKhushiyant
requires_python
license
keywords knn theoretical computer science machine learning p systems
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            



# kNN-P Classifier (Under Development)

[![Licence](https://img.shields.io/github/license/Ileriayo/markdown-badges?style=for-the-badge)](./LICENSE)


## 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:

```bash
pip install knnp
```

## Usage

```python
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](https://opensource.org/licenses/MIT).

## Contact

If you have questions or need further assistance, please feel free to reach out to [Khushiyant](mailto:khushiyant2002@gmail.com).

---

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

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "kNNp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "knn,theoretical computer science,machine learning,p systems",
    "author": "Khushiyant",
    "author_email": "<khushiyant2002@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/20/2f/37c39e47ce4ba0210cc4558b360a8cc5f49023c3b366b626dcab476723fd/kNNp-0.0.1.tar.gz",
    "platform": null,
    "description": "\n\n\n\n# kNN-P Classifier (Under Development)\n\n[![Licence](https://img.shields.io/github/license/Ileriayo/markdown-badges?style=for-the-badge)](./LICENSE)\n\n\n## Overview\n\nThis 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.\n\n**Please note that this project is currently under development.**\n\n## Features\n\n- Implementation of the kNN-P classifier.\n- Designed for parallel and distributed computing.\n- Improved performance for classification tasks.\n\n## Installation\n\nYou can install this package using pip:\n\n```bash\npip install knnp\n```\n\n## Usage\n\n```python\nfrom knnp.p_systems import kNN_P\n\n# Create an instance of kNN-P\nknn_p = kNN_P(n=100, d=2, q=10, m=5, k=3, maxstep=100)\n\n# Load your training data (features) and class labels\ntraining_data = ...\nclass_labels = ...\n\n# Train the classifier\nknn_p.fit(training_data, class_labels)\n\n# Load your test data\ntest_data = ...\n\n# Make predictions\npredictions = knn_p.predict(test_data)\n\n# Evaluate the predictions and calculate classification metrics\n...\n```\n\n## Contributing\n\nContributions to this project are welcome. Please follow these guidelines for contributing:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix.\n3. Commit your changes.\n4. Push your branch to your fork.\n5. Create a pull request with a clear description of your changes.\n\n## License\n\nThis project is open-source and available under the [MIT License](https://opensource.org/licenses/MIT).\n\n## Contact\n\nIf you have questions or need further assistance, please feel free to reach out to [Khushiyant](mailto:khushiyant2002@gmail.com).\n\n---\n\n**Please note that this project is under development. Use it with caution, and contributions are encouraged.**\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A kNN classifier optimized by P systems",
    "version": "0.0.1",
    "project_urls": null,
    "split_keywords": [
        "knn",
        "theoretical computer science",
        "machine learning",
        "p systems"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "638cac1defea99b239aa7a13f4da8443b7010f41f220d839bfb14aa2fafe2760",
                "md5": "d07591ea6f8ab08de67c206265cea315",
                "sha256": "e38f7327410ab9153ac0bd63994febbe2c92cafee3b9fbf23e6cd6115e46f331"
            },
            "downloads": -1,
            "filename": "kNNp-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d07591ea6f8ab08de67c206265cea315",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5387,
            "upload_time": "2023-10-30T19:03:09",
            "upload_time_iso_8601": "2023-10-30T19:03:09.924777Z",
            "url": "https://files.pythonhosted.org/packages/63/8c/ac1defea99b239aa7a13f4da8443b7010f41f220d839bfb14aa2fafe2760/kNNp-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "202f37c39e47ce4ba0210cc4558b360a8cc5f49023c3b366b626dcab476723fd",
                "md5": "e1c517296bb604d8ca77851756f5ecd5",
                "sha256": "aba7e3bc3fcd5b46277efd8448ffd0da627be6959e3bb6cd66dcd6392736b913"
            },
            "downloads": -1,
            "filename": "kNNp-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e1c517296bb604d8ca77851756f5ecd5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5263,
            "upload_time": "2023-10-30T19:03:12",
            "upload_time_iso_8601": "2023-10-30T19:03:12.656483Z",
            "url": "https://files.pythonhosted.org/packages/20/2f/37c39e47ce4ba0210cc4558b360a8cc5f49023c3b366b626dcab476723fd/kNNp-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-30 19:03:12",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "knnp"
}
        
Elapsed time: 3.88317s