distclassipy 0.2.2a1__py3-none-any.whl → 0.2.2a2__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/__init__.py CHANGED
@@ -28,7 +28,7 @@ from .classifier import (
28
28
  )
29
29
  from .distances import _ALL_METRICS
30
30
 
31
- __version__ = "0.2.2a1"
31
+ __version__ = "0.2.2a2"
32
32
 
33
33
  __all__ = [
34
34
  "DistanceMetricClassifier",
@@ -46,7 +46,7 @@ from sklearn.base import BaseEstimator, ClassifierMixin
46
46
  from sklearn.metrics import accuracy_score
47
47
  from sklearn.model_selection import train_test_split
48
48
  from sklearn.utils.multiclass import unique_labels
49
- from sklearn.utils.validation import check_is_fitted, check_array
49
+ from sklearn.utils.validation import check_is_fitted, check_array, validate_data
50
50
 
51
51
  from . import distances
52
52
  from .distances import _ALL_METRICS
@@ -189,7 +189,7 @@ class DistanceMetricClassifier(ClassifierMixin, BaseEstimator):
189
189
  self : object
190
190
  Fitted estimator.
191
191
  """
192
- X, y = self._validate_data(X, y)
192
+ X, y = validate_data(self, X, y)
193
193
  self.classes_ = unique_labels(y)
194
194
 
195
195
  if feat_labels is None:
@@ -278,7 +278,7 @@ class DistanceMetricClassifier(ClassifierMixin, BaseEstimator):
278
278
  slower Python version.
279
279
  """
280
280
  check_is_fitted(self)
281
- X = self._validate_data(X, reset=False)
281
+ X = validate_data(self, X, reset=False)
282
282
 
283
283
  metric_to_use = metric if metric is not None else self.metric
284
284
  if metric_to_use is None:
@@ -352,7 +352,7 @@ class DistanceMetricClassifier(ClassifierMixin, BaseEstimator):
352
352
 
353
353
  """
354
354
  check_is_fitted(self)
355
- X = self._validate_data(X, reset=False)
355
+ X = validate_data(self, X, reset=False)
356
356
 
357
357
  metric_to_use = metric if metric is not None else self.metric
358
358
  if metric_to_use is None:
@@ -544,7 +544,7 @@ class EnsembleDistanceClassifier(ClassifierMixin, BaseEstimator):
544
544
  The predicted class labels.
545
545
  """
546
546
  check_is_fitted(self)
547
- X = self._validate_data(X, reset=False)
547
+ X = validate_data(self, X, reset=False)
548
548
 
549
549
  # notes for pred during best:
550
550
  # option 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: distclassipy
3
- Version: 0.2.2a1
3
+ Version: 0.2.2a2
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
@@ -0,0 +1,8 @@
1
+ distclassipy/__init__.py,sha256=O7Fn0ciBz2CmkJdaN-RryrWrGfMfJcsMU328m6qsB_g,1222
2
+ distclassipy/classifier.py,sha256=vU1Q4mI5yN2O0rPgKX6p3dttwll2G7WS4a_1KV1n8MI,26485
3
+ distclassipy/distances.py,sha256=_vRVwt9rRH5m1CU9mCZ-eXEmicQeJMgC5ZWVohoe_Mg,48048
4
+ distclassipy-0.2.2a2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
5
+ distclassipy-0.2.2a2.dist-info/METADATA,sha256=ypK7a4UUt8IJ59zkGyK9q-0IER-3rsbiY0yDcoyducM,47218
6
+ distclassipy-0.2.2a2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
7
+ distclassipy-0.2.2a2.dist-info/top_level.txt,sha256=jiwqhSkq7CMCjV_Zar2dSDBO63o5C_Dp2tpGiVV6COE,13
8
+ distclassipy-0.2.2a2.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- distclassipy/__init__.py,sha256=2qkRVi03Hd5aK5pkH7S7KDuxaZVq-92kDmrazqcA4X4,1222
2
- distclassipy/classifier.py,sha256=J3XRgQyn6d_-EzFMSCKMCM8cDz-B5pRXNLtUsA9k5vc,26470
3
- distclassipy/distances.py,sha256=_vRVwt9rRH5m1CU9mCZ-eXEmicQeJMgC5ZWVohoe_Mg,48048
4
- distclassipy-0.2.2a1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
5
- distclassipy-0.2.2a1.dist-info/METADATA,sha256=BD1m0hgTA3zD5jOATP9iLW55VoBvg9f1GPYUCYQyqdQ,47218
6
- distclassipy-0.2.2a1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
7
- distclassipy-0.2.2a1.dist-info/top_level.txt,sha256=jiwqhSkq7CMCjV_Zar2dSDBO63o5C_Dp2tpGiVV6COE,13
8
- distclassipy-0.2.2a1.dist-info/RECORD,,