ddi-fw 0.0.60__py3-none-any.whl → 0.0.62__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.
@@ -78,8 +78,8 @@ class TFMultiModal:
78
78
  single_modal.set_data(
79
79
  self.train_idx_arr, self.val_idx_arr, item[1], item[2], item[3], item[4])
80
80
  logs, metrics, prediction = single_modal.predict()
81
- self.result.add_log(item[0], logs)
82
- self.result.add_metric(item[0], metrics)
81
+ # self.result.add_log(item[0], logs)
82
+ # self.result.add_metric(item[0], metrics)
83
83
  single_results[item[0]] = prediction
84
84
  # sum = sum + prediction
85
85
 
@@ -105,8 +105,8 @@ class TFMultiModal:
105
105
  f'combination_artifact_uri:{combination_run.info.artifact_uri}')
106
106
  utils.compress_and_save_data(
107
107
  metrics.__dict__, combination_run.info.artifact_uri, f'{self.date}_metrics.gzip')
108
- self.result.add_log(combination_descriptor,logs)
109
- self.result.add_metric(combination_descriptor,metrics)
108
+ # self.result.add_log(combination_descriptor,logs)
109
+ # self.result.add_metric(combination_descriptor,metrics)
110
110
 
111
111
 
112
112
  class TFSingleModal:
@@ -93,7 +93,7 @@ class Py7ZipHelper:
93
93
  with py7zr.SevenZipFile(archive_name, 'r') as archive:
94
94
  archive.extractall(path=extract_path)
95
95
 
96
- def extract_multiparts(self, input_path, output_path, output_file):
96
+ def extract_multiparts(self, input_path, output_path, output_file, remove_file = True):
97
97
  parts = [input_path+'/' + p for p in os.listdir(input_path)]
98
98
  sorted_parts = sorted(parts, key = lambda x: int(x.split(".")[-1][4:]))
99
99
  create_folder_if_not_exists(output_path)
@@ -102,4 +102,5 @@ class Py7ZipHelper:
102
102
  with open(part, 'rb') as infile:
103
103
  outfile.write(infile.read())
104
104
  self.extract_archive(f"{output_path}/{output_file}", output_path)
105
- os.remove(f"{output_path}/{output_file}")
105
+ if remove_file:
106
+ os.remove(f"{output_path}/{output_file}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ddi_fw
3
- Version: 0.0.60
3
+ Version: 0.0.62
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>
@@ -62,7 +62,7 @@ ddi_fw/experiments/evaluation_helper.py,sha256=pY69cezV3WzrXw1bduIwRJfah1w3wXJ2Y
62
62
  ddi_fw/experiments/pipeline.py,sha256=wttkvdzGP9d3jC9nx2iZul4hbogXkRho6eDns0yfLiE,5380
63
63
  ddi_fw/experiments/pipeline_builder_pattern.py,sha256=q1PNEQFoO5U3UidEoGB8rgLA7KXr4FsJTXEug5c5UJg,5466
64
64
  ddi_fw/experiments/pipeline_ner.py,sha256=unxEJCYrG6wEZjLmqvGdLRTMOBwELbGKkdygSpAR3b8,5043
65
- ddi_fw/experiments/tensorflow_helper.py,sha256=Y-gD9qyqFFPl6HAvM_tIa5Y6em2YmafPCL1KMrK6eb8,11768
65
+ ddi_fw/experiments/tensorflow_helper.py,sha256=xUnbntWyc2Wm4TvmVFAnpwLHg-o13oM26GUHom6d5m0,11776
66
66
  ddi_fw/experiments/test.py,sha256=z1TfBpK75zGKpp2ZU8f6APjZlgBFthaCBN61YB9ma4o,2049
67
67
  ddi_fw/ner/__init__.py,sha256=JwhGXrepomxPSsGsg2b_xPRC72AjvxOIn2CW5Mvscn0,26
68
68
  ddi_fw/ner/mmlrestclient.py,sha256=NZta7m2Qm6I_qtVguMZhqtAUjVBmmXn0-TMnsNp0jpg,6859
@@ -80,10 +80,10 @@ ddi_fw/test/torch_cuda_test.py,sha256=R-4VGVErl_Ufk54DoZbgL_YXWoCYFyanIVWd6P39IE
80
80
  ddi_fw/test/type_guarding_test.py,sha256=KxjyBxohDu7lwpejalCj-REjtJ-k1S1wQbOB6TGY0O8,766
81
81
  ddi_fw/utils/__init__.py,sha256=x1ypYJRKJlbF9x4psHYGXj-YbDD8T_c28gXZkr03cdE,273
82
82
  ddi_fw/utils/enums.py,sha256=19eJ3fX5eRK_xPvkYcukmug144jXPH4X9zQqtsFBj5A,671
83
- ddi_fw/utils/py7zr_helper.py,sha256=dgfHqXDBWys1hmd1JlHhYyZGxrzYWi6siYiUq3bnLuI,4698
83
+ ddi_fw/utils/py7zr_helper.py,sha256=gOqaFIyJvTjUM-btO2x9AQ69jZOS8PoKN0wetYIckJw,4747
84
84
  ddi_fw/utils/utils.py,sha256=szwnxMTDRrZoeNRyDuf3aCbtzriwtaRk4mHSH3asLdA,4301
85
85
  ddi_fw/utils/zip_helper.py,sha256=YRZA4tKZVBJwGQM0_WK6L-y5MoqkKoC-nXuuHK6CU9I,5567
86
- ddi_fw-0.0.60.dist-info/METADATA,sha256=uGuVweelzk331H3Q446ha42zq7l4IQJmTXbFmOfutaA,1565
87
- ddi_fw-0.0.60.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
88
- ddi_fw-0.0.60.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
89
- ddi_fw-0.0.60.dist-info/RECORD,,
86
+ ddi_fw-0.0.62.dist-info/METADATA,sha256=Osa0PYBMQcu8Pshz-QZ-uJ8lEcOU12zl0DmeXtCxREE,1565
87
+ ddi_fw-0.0.62.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
88
+ ddi_fw-0.0.62.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
89
+ ddi_fw-0.0.62.dist-info/RECORD,,