distclassipy 0.0.8__tar.gz → 0.0.9__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: distclassipy
3
- Version: 0.0.8
3
+ Version: 0.0.9
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
@@ -693,10 +693,6 @@ Classifier: Operating System :: OS Independent
693
693
  Requires-Python: >=3.10
694
694
  Description-Content-Type: text/markdown
695
695
  License-File: LICENSE
696
- Requires-Dist: joblib>=1.3.2
697
- Requires-Dist: numpy>=1.26.3
698
- Requires-Dist: pandas>=2.2.0
699
- Requires-Dist: scikit-learn>=1.4.0
700
696
 
701
697
  # DistClassiPy
702
698
  A python package for a distance-based classifier which can use several different distance metrics.
@@ -725,7 +721,7 @@ predictions = clf.predict(new_data)
725
721
 
726
722
  ## Documentation
727
723
 
728
- For more detailed information about the package and its functionalities, please refer to the [official documentation](https://github.com/sidchaini/DistClassiPy).
724
+ For more detailed information about the package and its functionalities, please refer to the [official documentation](https://sidchaini.github.io/DistClassiPy/).
729
725
 
730
726
  ## Contributing
731
727
  Contributions are welcome! If you have suggestions for improvements or bug fixes, please feel free to open an [issue](https://github.com/sidchaini/DistClassiPy/issues) or submit a [pull request](https://github.com/sidchaini/DistClassiPy/pulls).
@@ -735,7 +731,7 @@ DistClassiPy is released under the [GNU General Public License v3.0](https://www
735
731
 
736
732
  ## Citation
737
733
 
738
- If you use DistClassiPy in your research or project, please consider citing the package. You can find citation information in the [CITATION.md](https://github.com/sidchaini/DistClassiPy/CITATION.md) file.
734
+ If you use DistClassiPy in your research or project, please consider citing the package. You can find citation information in the [CITATION.cff](https://github.com/sidchaini/DistClassiPy/CITATION.cff) file.
739
735
 
740
736
 
741
737
  ## Contact
@@ -25,7 +25,7 @@ predictions = clf.predict(new_data)
25
25
 
26
26
  ## Documentation
27
27
 
28
- For more detailed information about the package and its functionalities, please refer to the [official documentation](https://github.com/sidchaini/DistClassiPy).
28
+ For more detailed information about the package and its functionalities, please refer to the [official documentation](https://sidchaini.github.io/DistClassiPy/).
29
29
 
30
30
  ## Contributing
31
31
  Contributions are welcome! If you have suggestions for improvements or bug fixes, please feel free to open an [issue](https://github.com/sidchaini/DistClassiPy/issues) or submit a [pull request](https://github.com/sidchaini/DistClassiPy/pulls).
@@ -35,7 +35,7 @@ DistClassiPy is released under the [GNU General Public License v3.0](https://www
35
35
 
36
36
  ## Citation
37
37
 
38
- If you use DistClassiPy in your research or project, please consider citing the package. You can find citation information in the [CITATION.md](https://github.com/sidchaini/DistClassiPy/CITATION.md) file.
38
+ If you use DistClassiPy in your research or project, please consider citing the package. You can find citation information in the [CITATION.cff](https://github.com/sidchaini/DistClassiPy/CITATION.cff) file.
39
39
 
40
40
 
41
41
  ## Contact
@@ -51,7 +51,6 @@ class DistanceMetricClassifier(BaseEstimator, ClassifierMixin):
51
51
  self.calculate_kde = calculate_kde
52
52
  self.calculate_1d_dist = calculate_1d_dist
53
53
  self.n_jobs = n_jobs
54
- self.distance_calculator = Distance()
55
54
 
56
55
  def fit(self, X: np.array, y: np.array, feat_labels: list[str] = None):
57
56
  """Fit the classifier to the data.
@@ -163,8 +162,8 @@ class DistanceMetricClassifier(BaseEstimator, ClassifierMixin):
163
162
  if not callable(self.metric) or isinstance(self.metric, str):
164
163
  if hasattr(distance, self.metric):
165
164
  self.metric_fn_ = getattr(distance, self.metric)
166
- elif hasattr(self.distance_calculator, self.metric):
167
- self.metric_fn_ = getattr(self.distance_calculator, self.metric)
165
+ elif hasattr(Distance(), self.metric):
166
+ self.metric_fn_ = getattr(Distance(), self.metric)
168
167
  else:
169
168
  raise ValueError(
170
169
  f"{self.metric} metric not found. Either pass a string of the name of a metric in scipy.spatial.distance or distances.Distance, or, pass a metric function directly."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: distclassipy
3
- Version: 0.0.8
3
+ Version: 0.0.9
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
@@ -693,10 +693,6 @@ Classifier: Operating System :: OS Independent
693
693
  Requires-Python: >=3.10
694
694
  Description-Content-Type: text/markdown
695
695
  License-File: LICENSE
696
- Requires-Dist: joblib>=1.3.2
697
- Requires-Dist: numpy>=1.26.3
698
- Requires-Dist: pandas>=2.2.0
699
- Requires-Dist: scikit-learn>=1.4.0
700
696
 
701
697
  # DistClassiPy
702
698
  A python package for a distance-based classifier which can use several different distance metrics.
@@ -725,7 +721,7 @@ predictions = clf.predict(new_data)
725
721
 
726
722
  ## Documentation
727
723
 
728
- For more detailed information about the package and its functionalities, please refer to the [official documentation](https://github.com/sidchaini/DistClassiPy).
724
+ For more detailed information about the package and its functionalities, please refer to the [official documentation](https://sidchaini.github.io/DistClassiPy/).
729
725
 
730
726
  ## Contributing
731
727
  Contributions are welcome! If you have suggestions for improvements or bug fixes, please feel free to open an [issue](https://github.com/sidchaini/DistClassiPy/issues) or submit a [pull request](https://github.com/sidchaini/DistClassiPy/pulls).
@@ -735,7 +731,7 @@ DistClassiPy is released under the [GNU General Public License v3.0](https://www
735
731
 
736
732
  ## Citation
737
733
 
738
- If you use DistClassiPy in your research or project, please consider citing the package. You can find citation information in the [CITATION.md](https://github.com/sidchaini/DistClassiPy/CITATION.md) file.
734
+ If you use DistClassiPy in your research or project, please consider citing the package. You can find citation information in the [CITATION.cff](https://github.com/sidchaini/DistClassiPy/CITATION.cff) file.
739
735
 
740
736
 
741
737
  ## Contact
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "distclassipy"
7
- version = "0.0.8"
7
+ version = "0.0.9"
8
8
  description = "A python package for a distance-based classifier which can use several different distance metrics."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes