junshan-kit 1.2.3__py2.py3-none-any.whl → 2.1.1__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 read_data(self, data_name = '
|
25
|
+
def read_data(self, data_name = 'w8a-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:
|
@@ -33,4 +33,14 @@ class kaggle_data:
|
|
33
33
|
|
34
34
|
print(f"✅ Dataset has been copied to: {copy_path}/{data_name}")
|
35
35
|
|
36
|
-
# example: read_data(copy_path='./exp_data')
|
36
|
+
# example: read_data(copy_path='./exp_data')
|
37
|
+
|
38
|
+
|
39
|
+
if __name__ == "__main__":
|
40
|
+
# Your code here
|
41
|
+
data = kaggle_data()
|
42
|
+
# Example usage
|
43
|
+
print('Available datasets:')
|
44
|
+
data.list_user_datasets()
|
45
|
+
data.read_data(data_name='w8a-libsvm', copy_path='./exp_data/w')
|
46
|
+
|
junshan_kit/kaggle_hub.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: junshan_kit
|
3
|
-
Version: 1.
|
3
|
+
Version: 2.1.1
|
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
|
@@ -9,7 +9,9 @@ Requires-Dist: numpy==2.2.6
|
|
9
9
|
Requires-Dist: scikit-learn==1.7.1
|
10
10
|
Description-Content-Type: text/markdown
|
11
11
|
|
12
|
-
|
12
|
+
- For class kaggle_data in datahub
|
13
|
+
- We need to set API of kaggle.
|
14
|
+
|
13
15
|
|
14
16
|
|
15
17
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
junshan_kit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
junshan_kit/datahub.py,sha256=jWQSlJOtpaosgoDExx3-UODJBj1-GX1f1TQPEHrCwTU,1448
|
3
|
+
junshan_kit/kaggle_hub.py,sha256=RYUuUtSY6NgNd0iV8kH5Uxn-eLaJSgUFmi6r33NHPmc,1093
|
4
|
+
junshan_kit-2.1.1.dist-info/METADATA,sha256=L6QIVQ8TCHZOyKk5gpxtjBFIV5nl8w13ZIrkxUBPBlQ,388
|
5
|
+
junshan_kit-2.1.1.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
6
|
+
junshan_kit-2.1.1.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
junshan_kit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
junshan_kit/datahub.py,sha256=bpaTK_gKcnrDWEFmWVGToYlBFGl0OJQ6pxFb0XEGm08,1218
|
3
|
-
junshan_kit/kaggle_hub.py,sha256=2YRHu8Zf6gphMUosi5njoGgIjNntk8hoCKQPmcNUfho,1092
|
4
|
-
junshan_kit-1.2.3.dist-info/METADATA,sha256=7KMYLgzzvMy-A8_Qtg344tYLriqdMF2aGELKmCjFMdo,344
|
5
|
-
junshan_kit-1.2.3.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
6
|
-
junshan_kit-1.2.3.dist-info/RECORD,,
|
File without changes
|