junshan-kit 0.1.2__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-0.1.2.dist-info/METADATA +20 -0
- junshan_kit-0.1.2.dist-info/RECORD +5 -0
- junshan_kit-0.1.2.dist-info/WHEEL +5 -0
- src/__init__.py +0 -0
- src/kaggle_hub.py +16 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: junshan_kit
|
3
|
+
Version: 0.1.2
|
4
|
+
Summary: xxx
|
5
|
+
Author-email: Junshan Yin <junshanyin@163.com>
|
6
|
+
Requires-Dist: kagglehub==0.3.13
|
7
|
+
Requires-Dist: numpy==2.2.6
|
8
|
+
Requires-Dist: scikit-learn==1.7.1
|
9
|
+
Description-Content-Type: text/markdown
|
10
|
+
|
11
|
+
example
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
@@ -0,0 +1,5 @@
|
|
1
|
+
src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
src/kaggle_hub.py,sha256=b-WVRvvkCKTteNxzcQkLm3WqVuzD-tuHPhkZ02320aE,556
|
3
|
+
junshan_kit-0.1.2.dist-info/METADATA,sha256=nmxw1uGOmY55iYBcEGigCBt6IMghFcuMH70sB7ntXxk,269
|
4
|
+
junshan_kit-0.1.2.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
5
|
+
junshan_kit-0.1.2.dist-info/RECORD,,
|
src/__init__.py
ADDED
File without changes
|
src/kaggle_hub.py
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import kagglehub
|
2
|
+
import os
|
3
|
+
import shutil
|
4
|
+
|
5
|
+
def read_data(data_name = 'evpd-test', copy_path = None):
|
6
|
+
path = kagglehub.dataset_download(f'junshan888/{data_name}')
|
7
|
+
# print("Downloaded to:", path)
|
8
|
+
if copy_path is not None:
|
9
|
+
# Create target directory if it doesn't exist
|
10
|
+
os.makedirs(copy_path, exist_ok=True)
|
11
|
+
# Copy dataset to target directory
|
12
|
+
shutil.copytree(path, copy_path, dirs_exist_ok=True)
|
13
|
+
|
14
|
+
print(f"✅ Dataset has been copied to: {copy_path}/{data_name}")
|
15
|
+
|
16
|
+
# example: read_data(copy_path='./exp_data')
|