ddi-fw 0.0.234__py3-none-any.whl → 0.0.235__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.
@@ -3,6 +3,7 @@ import numpy as np
3
3
  import pandas as pd
4
4
  from scipy.spatial.distance import pdist, squareform
5
5
  from sklearn.preprocessing import MultiLabelBinarizer
6
+ import cupy as cp
6
7
 
7
8
  # todo pd.unique kullan
8
9
  def find_distinct_elements(frame):
@@ -50,6 +51,7 @@ class SimilarityMatrixGenerator:
50
51
 
51
52
  def create_jaccard_similarity_matrices(self, matrix: np.ndarray)->np.ndarray:
52
53
  if self.use_gpu:
54
+ print("Using GPU for Jaccard similarity matrix computation.")
53
55
  return self.__create_jaccard_similarity_matrices_gpu(matrix)
54
56
  else:
55
57
  return self.__create_jaccard_similarity_matrices(matrix)
@@ -84,7 +86,6 @@ class SimilarityMatrixGenerator:
84
86
 
85
87
  return similarity
86
88
 
87
- import cupy as cp
88
89
 
89
90
  def __create_jaccard_similarity_matrices_gpu(self,matrix: np.ndarray) -> np.ndarray:
90
91
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ddi_fw
3
- Version: 0.0.234
3
+ Version: 0.0.235
4
4
  Summary: Do not use :)
5
5
  Author-email: Kıvanç Bayraktar <bayraktarkivanc@gmail.com>
6
6
  Maintainer-email: Kıvanç Bayraktar <bayraktarkivanc@gmail.com>
@@ -99,9 +99,9 @@ ddi_fw/utils/py7zr_helper.py,sha256=gOqaFIyJvTjUM-btO2x9AQ69jZOS8PoKN0wetYIckJw,
99
99
  ddi_fw/utils/utils.py,sha256=PY-zDawREKoXQfzX7lVkxBLVFQPkfvr9385kHCjaNXo,4391
100
100
  ddi_fw/utils/zip_helper.py,sha256=YRZA4tKZVBJwGQM0_WK6L-y5MoqkKoC-nXuuHK6CU9I,5567
101
101
  ddi_fw/vectorization/__init__.py,sha256=LcJOpLVoLvHPDw9phGFlUQGeNcST_zKV-Oi1Pm5h_nE,110
102
- ddi_fw/vectorization/feature_vector_generation.py,sha256=-M8Y82mKZB6kwhJHvPgmQZSwUCheTLbb5zYuEtHZC1Y,7623
102
+ ddi_fw/vectorization/feature_vector_generation.py,sha256=QQQGhCti653BdU343Ag1bH_g1fzi2hlic7dgNy7otjE,7694
103
103
  ddi_fw/vectorization/idf_helper.py,sha256=_Gd1dtDSLaw8o-o0JugzSKMt9FpeXewTh4wGEaUd4VQ,2571
104
- ddi_fw-0.0.234.dist-info/METADATA,sha256=DxrU3PdEv-7FKmZ3bJ4OAI465EsN-sKaxDnTQSTO19A,2632
105
- ddi_fw-0.0.234.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
106
- ddi_fw-0.0.234.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
107
- ddi_fw-0.0.234.dist-info/RECORD,,
104
+ ddi_fw-0.0.235.dist-info/METADATA,sha256=mww6smf4YRNE7iI-f_y9YcXJam05OJsfGX3XVMnmr5I,2632
105
+ ddi_fw-0.0.235.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
106
+ ddi_fw-0.0.235.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
107
+ ddi_fw-0.0.235.dist-info/RECORD,,