junshan-kit 2.4.6__py2.py3-none-any.whl → 2.4.8__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.
Potentially problematic release.
This version of junshan-kit might be problematic. Click here for more details.
junshan_kit/DataSets.py
CHANGED
|
@@ -45,7 +45,7 @@ def _download_data(data_name, data_type):
|
|
|
45
45
|
def _export_csv(df, data_name, data_type):
|
|
46
46
|
path = f'./exp_data/{data_type}/{data_name}/'
|
|
47
47
|
os.makedirs(path, exist_ok=True)
|
|
48
|
-
df.to_csv(path + f'{data_name}_num.csv')
|
|
48
|
+
df.to_csv(path + f'{data_name}_num.csv', index=False)
|
|
49
49
|
print(path + f'{data_name}.csv')
|
|
50
50
|
|
|
51
51
|
|
|
@@ -58,7 +58,7 @@ def _run(csv_path, data_name, data_type, drop_cols, label_col, label_map, print_
|
|
|
58
58
|
# junshan_kit.kit.unzip_file(f'./exp_data/{data_name}/{data_name}.zip', f'./exp_data/{data_name}')
|
|
59
59
|
|
|
60
60
|
cleaner = junshan_kit.DataProcessor.CSV_TO_Pandas()
|
|
61
|
-
df = cleaner.preprocess_dataset(csv_path, drop_cols, label_col, label_map, data_name, user_one_hot_cols, print_info=print_info, time_info = time_info)
|
|
61
|
+
df = cleaner.preprocess_dataset(csv_path, drop_cols, label_col, label_map, data_name, user_one_hot_cols, print_info=print_info, time_info = time_info, Standard=Standard)
|
|
62
62
|
|
|
63
63
|
if export_csv:
|
|
64
64
|
_export_csv(df, data_name, data_type)
|
junshan_kit/kit.py
CHANGED
|
@@ -237,12 +237,5 @@ class JianguoyunDownloaderFirefox:
|
|
|
237
237
|
self.close()
|
|
238
238
|
print('*' * 60)
|
|
239
239
|
|
|
240
|
-
def set_seed(seed=42):
|
|
241
|
-
torch.manual_seed(seed)
|
|
242
|
-
torch.cuda.manual_seed_all(seed)
|
|
243
|
-
np.random.seed(seed)
|
|
244
|
-
random.seed(seed)
|
|
245
|
-
torch.backends.cudnn.deterministic = True
|
|
246
|
-
torch.backends.cudnn.benchmark = False
|
|
247
240
|
|
|
248
241
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
junshan_kit/ComOptimizers.py,sha256=MUgFnm1DbbvNKv5-7nHJCLOfq4VjoNk1KLRR-ji5rOA,4637
|
|
2
2
|
junshan_kit/DataProcessor.py,sha256=hX9W7wmte941jQkt834BcOUKnkkODX7oPW9HrlJCfkc,9064
|
|
3
|
-
junshan_kit/DataSets.py,sha256=
|
|
3
|
+
junshan_kit/DataSets.py,sha256=xz_-8kVkeW826DuLfKBfJcB0sPLk9pyBacXXeqq6NVw,8775
|
|
4
4
|
junshan_kit/ExperimentHub.py,sha256=MKduxa7U16zMoavgS-lVOCL2ypcMLpAaD8k7JitNqRU,11493
|
|
5
5
|
junshan_kit/Models.py,sha256=GRTunJON1vLQz2IxgsoOKvjP-3zSJJLuB3CkJTAiImo,6884
|
|
6
6
|
junshan_kit/Print_Info.py,sha256=vogYcXvoGcRGZV-7svi_mtiCZH6c8d-RhbZLFrLbKr8,3012
|
|
@@ -10,7 +10,7 @@ junshan_kit/TrainingParas.py,sha256=hBiBxHkmollRA4jT93npIcdWdsLLD0laV5kCZqnyg5k,
|
|
|
10
10
|
junshan_kit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
junshan_kit/check_args.py,sha256=7m4xSPAwqqQ0SPeKc-MCewDIDB7kFgsNYS2AuTTzGtk,3599
|
|
12
12
|
junshan_kit/datahub.py,sha256=4c3P2TORMZ4va6NrSiojDCpnY_CGDlJV-5PG3u1_Isk,9081
|
|
13
|
-
junshan_kit/kit.py,sha256=
|
|
14
|
-
junshan_kit-2.4.
|
|
15
|
-
junshan_kit-2.4.
|
|
16
|
-
junshan_kit-2.4.
|
|
13
|
+
junshan_kit/kit.py,sha256=I3VwGPnb-mKC4OX8pi-Ac_s8abi4xqPsP54VOcUVpME,9568
|
|
14
|
+
junshan_kit-2.4.8.dist-info/METADATA,sha256=wo8KCeRm958ccW-oocWTUipOYAi91x9kAVec6yB1720,266
|
|
15
|
+
junshan_kit-2.4.8.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
16
|
+
junshan_kit-2.4.8.dist-info/RECORD,,
|
|
File without changes
|