Skip to main content

A python package for a distance-based classifier which can use several different distance metrics.

Project description

DistClassiPy Logo


PyPI Installs Codecov License - GPL-3 Code style: black

A python package for a distance-based classifier which can use several different distance metrics.

Installation

To install DistClassiPy, run the following command:

pip install distclassipy

Usage

Here's a quick example to get you started with DistClassiPy:

import distclassipy as dcpy
from sklearn.datasets import make_classification

X, y = make_classification(
    n_samples=1000,
    n_features=4,
    n_informative=2,
    n_redundant=0,
    random_state=0,
    shuffle=False,
)
clf = dcpy.DistanceMetricClassifier(metric="canberra")
clf.fit(X, y)
print(clf.predict([[0, 0, 0, 0]]))

Features

  • Multiple distance metrics support
  • Easy integration with existing data processing pipelines
  • Efficient and scalable for large datasets

Documentation

For more detailed information about the package and its functionalities, please refer to the official documentation.

Contributing

Contributions are welcome! If you have suggestions for improvements or bug fixes, please feel free to open an issue or submit a pull request.

License

DistClassiPy is released under the GNU General Public License v3.0. See the LICENSE file for more details.

Citation

If you use DistClassiPy in your research or project, please consider citing the paper:

Light Curve Classification with DistClassiPy: a new distance-based classifier (submitted to A&C)

Authors

Siddharth Chaini, Ashish Mahabal, Ajit Kembhavi and Federica B. Bianco.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

distclassipy-0.1.2.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

distclassipy-0.1.2-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file distclassipy-0.1.2.tar.gz.

File metadata

  • Download URL: distclassipy-0.1.2.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for distclassipy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fc6c6393ab262750db949e73ea498eed08e834ff86f6d26738ffc4f4d2c84ef7
MD5 52e25a143130c77b3abdf3b62630f049
BLAKE2b-256 91359e972b2597e2cc3e77e323f02a01fae8b2748bddd3b653194fb8e150a226

See more details on using hashes here.

File details

Details for the file distclassipy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: distclassipy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for distclassipy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b867d35aaea4ef1a83fa81d3824036fd130cb511591411ebb0c461d5177d3a8
MD5 0559e8ca6ab6483fd04e6d903d3ca0f2
BLAKE2b-256 76b19c59e0d6d2512fdc86322a6cf1ddc9733db3019b1f07ff64db3b127716f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page