junshan-kit 2.1.2__py2.py3-none-any.whl → 2.1.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/datahub.py
CHANGED
@@ -22,7 +22,7 @@ class kaggle_data:
|
|
22
22
|
# example: list_user_datasets()
|
23
23
|
|
24
24
|
#---------------------------------------------------------------
|
25
|
-
def
|
25
|
+
def download_data(self, data_name = 'letter-libsvm', copy_path = None):
|
26
26
|
path = kagglehub.dataset_download(f'junshan888/{data_name}')
|
27
27
|
# print("Downloaded to:", path)
|
28
28
|
if copy_path is not None:
|
@@ -31,7 +31,7 @@ class kaggle_data:
|
|
31
31
|
# Copy dataset to target directory
|
32
32
|
shutil.copytree(path, copy_path, dirs_exist_ok=True)
|
33
33
|
|
34
|
-
print(f"✅ Dataset has been copied to: {copy_path}
|
34
|
+
print(f"✅ Dataset has been copied to: {copy_path}")
|
35
35
|
|
36
36
|
# example: read_data(copy_path='./exp_data')
|
37
37
|
|
@@ -42,7 +42,7 @@ if __name__ == "__main__":
|
|
42
42
|
# Example usage
|
43
43
|
print('Available datasets:')
|
44
44
|
data.list_user_datasets()
|
45
|
-
data.
|
45
|
+
data.download_data(data_name='letter-libsvm', copy_path='./exp_data/Letter')
|
46
46
|
|
47
47
|
"""
|
48
48
|
import junshan_kit.datahub
|
@@ -0,0 +1,5 @@
|
|
1
|
+
junshan_kit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
junshan_kit/datahub.py,sha256=G1WmHEQvUnlpyZrC1vDCLBI-ZVeCA-lHoQ8qiL4I7p0,1655
|
3
|
+
junshan_kit-2.1.3.dist-info/METADATA,sha256=HZwmPFyfHIJSdOfNWhBj0Ddg684BrpoV6_DCKkGxshk,570
|
4
|
+
junshan_kit-2.1.3.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
5
|
+
junshan_kit-2.1.3.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
junshan_kit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
junshan_kit/datahub.py,sha256=XOIxAox_yue4hbXbrWLSRKQxhMK0tBeHphFmFDp90eU,1659
|
3
|
-
junshan_kit-2.1.2.dist-info/METADATA,sha256=wqV_Ci-hw5ZArZl0o6KdYBlZ-L4CBo5-jr2LlMYQBIw,570
|
4
|
-
junshan_kit-2.1.2.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
5
|
-
junshan_kit-2.1.2.dist-info/RECORD,,
|
File without changes
|