distclassipy 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- distclassipy/classifier.py +141 -58
- distclassipy/distances.py +389 -226
- {distclassipy-0.1.0.dist-info → distclassipy-0.1.2.dist-info}/METADATA +64 -13
- distclassipy-0.1.2.dist-info/RECORD +9 -0
- {distclassipy-0.1.0.dist-info → distclassipy-0.1.2.dist-info}/WHEEL +1 -1
- distclassipy-0.1.0.dist-info/RECORD +0 -9
- {distclassipy-0.1.0.dist-info → distclassipy-0.1.2.dist-info}/LICENSE +0 -0
- {distclassipy-0.1.0.dist-info → distclassipy-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: distclassipy
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: A python package for a distance-based classifier which can use several different distance metrics.
|
|
5
5
|
Author-email: Siddharth Chaini <sidchaini@gmail.com>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -678,9 +678,9 @@ License: GNU GENERAL PUBLIC LICENSE
|
|
|
678
678
|
Public License instead of this License. But first, please read
|
|
679
679
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
680
680
|
|
|
681
|
-
Project-URL:
|
|
682
|
-
Project-URL:
|
|
683
|
-
Classifier: Development Status ::
|
|
681
|
+
Project-URL: Repository, https://github.com/sidchaini/DistClassiPy
|
|
682
|
+
Project-URL: Documenation, https://sidchaini.github.io/DistClassiPy/
|
|
683
|
+
Classifier: Development Status :: 4 - Beta
|
|
684
684
|
Classifier: Intended Audience :: Developers
|
|
685
685
|
Classifier: Intended Audience :: Education
|
|
686
686
|
Classifier: Intended Audience :: Science/Research
|
|
@@ -698,7 +698,23 @@ Requires-Dist: numpy >=1.26.3
|
|
|
698
698
|
Requires-Dist: pandas >=2.2.0
|
|
699
699
|
Requires-Dist: scikit-learn >=1.4.0
|
|
700
700
|
|
|
701
|
-
|
|
701
|
+
<h1 align="center">
|
|
702
|
+
<picture align="center">
|
|
703
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/sidchaini/DistClassiPy/main/docs/_static/logo-dark.svg" width="300">
|
|
704
|
+
<img alt="DistClassiPy Logo" src="https://raw.githubusercontent.com/sidchaini/DistClassiPy/main/docs/_static/logo.svg" width="300">
|
|
705
|
+
</picture>
|
|
706
|
+
</h1>
|
|
707
|
+
<br>
|
|
708
|
+
|
|
709
|
+
[](https://pypi.org/project/distclassipy/)
|
|
710
|
+
[](https://pypi.org/project/distclassipy/)
|
|
711
|
+
[](https://codecov.io/gh/sidchaini/distclassipy)
|
|
712
|
+
[](https://github.com/sidchaini/distclassipy/blob/main/LICENSE)
|
|
713
|
+
[](https://github.com/psf/black)
|
|
714
|
+
|
|
715
|
+
<!-- [](
|
|
716
|
+
https://doi.org/10.1038/s41586-020-2649-2) -->
|
|
717
|
+
|
|
702
718
|
A python package for a distance-based classifier which can use several different distance metrics.
|
|
703
719
|
|
|
704
720
|
## Installation
|
|
@@ -711,11 +727,19 @@ pip install distclassipy
|
|
|
711
727
|
Here's a quick example to get you started with DistClassiPy:
|
|
712
728
|
```python
|
|
713
729
|
import distclassipy as dcpy
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
730
|
+
from sklearn.datasets import make_classification
|
|
731
|
+
|
|
732
|
+
X, y = make_classification(
|
|
733
|
+
n_samples=1000,
|
|
734
|
+
n_features=4,
|
|
735
|
+
n_informative=2,
|
|
736
|
+
n_redundant=0,
|
|
737
|
+
random_state=0,
|
|
738
|
+
shuffle=False,
|
|
739
|
+
)
|
|
740
|
+
clf = dcpy.DistanceMetricClassifier(metric="canberra")
|
|
741
|
+
clf.fit(X, y)
|
|
742
|
+
print(clf.predict([[0, 0, 0, 0]]))
|
|
719
743
|
```
|
|
720
744
|
|
|
721
745
|
## Features
|
|
@@ -735,8 +759,35 @@ DistClassiPy is released under the [GNU General Public License v3.0](https://www
|
|
|
735
759
|
|
|
736
760
|
## Citation
|
|
737
761
|
|
|
738
|
-
If you use DistClassiPy in your research or project, please consider citing the
|
|
762
|
+
If you use DistClassiPy in your research or project, please consider citing the paper:
|
|
763
|
+
> Light Curve Classification with DistClassiPy: a new distance-based classifier (submitted to A&C)
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
<!--
|
|
767
|
+
### Bibtex
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
```bibtex
|
|
771
|
+
@ARTICLE{Chaini2024,
|
|
772
|
+
author = {{Chaini}, S. and {Mahabal}, A. and {Kembhavi}, A. and {Bianco}, F.~B.},
|
|
773
|
+
title = "{Light Curve Classification with DistClassiPy: a new distance-based classifier}",
|
|
774
|
+
journal = {Submitted to A&C},
|
|
775
|
+
% keywords = {},
|
|
776
|
+
year = 2024,
|
|
777
|
+
% month = ,
|
|
778
|
+
% volume = {},
|
|
779
|
+
% eid = {},
|
|
780
|
+
% pages = {},
|
|
781
|
+
% doi = {},
|
|
782
|
+
% adsurl = {},
|
|
783
|
+
% adsnote = {}
|
|
784
|
+
}
|
|
785
|
+
```
|
|
786
|
+
-->
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
<!-- You can also find citation information in the [CITATION.cff](https://github.com/sidchaini/DistClassiPy/CITATION.cff) file. -->
|
|
739
790
|
|
|
740
791
|
|
|
741
|
-
##
|
|
742
|
-
|
|
792
|
+
## Authors
|
|
793
|
+
Siddharth Chaini, Ashish Mahabal, Ajit Kembhavi and Federica B. Bianco.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
distclassipy/__init__.py,sha256=ktlw7OVuC2C6xPV3ZkTpaIo_fuRsXsXDtmrk2ZVgleg,525
|
|
2
|
+
distclassipy/classifier.py,sha256=rvXMgMOL30Vqpbzazl08eYBk0dk5uPVmX3l-u6385zo,17633
|
|
3
|
+
distclassipy/distances.py,sha256=21fsoX6MfeGr7XeV7oqyVZVSr_4aCUYkgr2qriGb3AI,49403
|
|
4
|
+
distclassipy/version.py,sha256=piUqd7Jqjr5Y8FPF5YjkMnmrraDX-H2yHnUGP0QibDo,482
|
|
5
|
+
distclassipy-0.1.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
6
|
+
distclassipy-0.1.2.dist-info/METADATA,sha256=foOlSgUE8ZZTxBJR6hCZ9l7rZjNdrUkRJTeUiOkVu0s,45016
|
|
7
|
+
distclassipy-0.1.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
8
|
+
distclassipy-0.1.2.dist-info/top_level.txt,sha256=jiwqhSkq7CMCjV_Zar2dSDBO63o5C_Dp2tpGiVV6COE,13
|
|
9
|
+
distclassipy-0.1.2.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
distclassipy/__init__.py,sha256=ktlw7OVuC2C6xPV3ZkTpaIo_fuRsXsXDtmrk2ZVgleg,525
|
|
2
|
-
distclassipy/classifier.py,sha256=d9fh-gaoSvdfPBrpzgAi0mOpqXIV6iTWmf0VW4Stjwc,13777
|
|
3
|
-
distclassipy/distances.py,sha256=SBH92YwH2hI-d777xnbQL6HVOGYje2M4lp19MX4HVEA,46878
|
|
4
|
-
distclassipy/version.py,sha256=piUqd7Jqjr5Y8FPF5YjkMnmrraDX-H2yHnUGP0QibDo,482
|
|
5
|
-
distclassipy-0.1.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
6
|
-
distclassipy-0.1.0.dist-info/METADATA,sha256=is4H77mrtw13iCj7Nt1jBVDk-I3HCxrV6UwwoSocItA,43159
|
|
7
|
-
distclassipy-0.1.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
8
|
-
distclassipy-0.1.0.dist-info/top_level.txt,sha256=jiwqhSkq7CMCjV_Zar2dSDBO63o5C_Dp2tpGiVV6COE,13
|
|
9
|
-
distclassipy-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|