A python package for a distance-based classifier which can use several different distance metrics.
Project description
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
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
Hashes for distclassipy-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b867d35aaea4ef1a83fa81d3824036fd130cb511591411ebb0c461d5177d3a8 |
|
MD5 | 0559e8ca6ab6483fd04e6d903d3ca0f2 |
|
BLAKE2b-256 | 76b19c59e0d6d2512fdc86322a6cf1ddc9733db3019b1f07ff64db3b127716f8 |