junshan-kit 2.3.2__py2.py3-none-any.whl → 2.3.3__py2.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.
junshan_kit/DataSets.py CHANGED
@@ -169,6 +169,13 @@ def TamilNadu_weather_2020_2025(data_name = "TN Weather 2020-2025", print_info =
169
169
  csv_path = f'./exp_data/{data_name}/TNweather_1.8M.csv'
170
170
  label_col = 'rain_tomorrow'
171
171
  label_map = {0: -1, 1: 1}
172
+
173
+ if not os.path.exists(csv_path):
174
+ print('\n' + '*'*60)
175
+ print(f"Please download the data.")
176
+ print(csv_path)
177
+ _download_data(data_name)
178
+ junshan_kit.kit.unzip_file(f'./exp_data/{data_name}/{data_name}.zip', f'./exp_data/{data_name}')
172
179
 
173
180
  # Step 0: Load the dataset
174
181
  df = pd.read_csv(csv_path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: junshan_kit
3
- Version: 2.3.2
3
+ Version: 2.3.3
4
4
  Summary: This is an optimization tool.
5
5
  Author-email: Junshan Yin <junshanyin@163.com>
6
6
  Requires-Dist: kaggle==1.7.4.5
@@ -0,0 +1,7 @@
1
+ junshan_kit/DataProcessor.py,sha256=YIZMy2gnqnT8n9MMT-q7WtRB1bbA4ITwPxNBEasAnLQ,4966
2
+ junshan_kit/DataSets.py,sha256=FdGpKOCrWuUAXcNZDmdCRlJjYtjqASU4GYyywcgw6L8,8847
3
+ junshan_kit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ junshan_kit/kit.py,sha256=tB1TpW9hW1EweK1RQwHOdUo7uG1QU4vSeyR0fdaSydo,9569
5
+ junshan_kit-2.3.3.dist-info/METADATA,sha256=nqZuARTGHLLCx9xNsq0enFhMdHrjvr_aZmidm6Vs9bs,329
6
+ junshan_kit-2.3.3.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
7
+ junshan_kit-2.3.3.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- junshan_kit/DataProcessor.py,sha256=YIZMy2gnqnT8n9MMT-q7WtRB1bbA4ITwPxNBEasAnLQ,4966
2
- junshan_kit/DataSets.py,sha256=qN4lTVaUsKlu4b8tkZ3aMgHg9lyZTQJlYsgc0uLwUys,8570
3
- junshan_kit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- junshan_kit/kit.py,sha256=tB1TpW9hW1EweK1RQwHOdUo7uG1QU4vSeyR0fdaSydo,9569
5
- junshan_kit-2.3.2.dist-info/METADATA,sha256=OcuB7peGzVOuC0KIcohSPiCBdAs9BZ1mpZjX4ySSKpk,329
6
- junshan_kit-2.3.2.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
7
- junshan_kit-2.3.2.dist-info/RECORD,,