自动填写路径

This commit is contained in:
2026-04-16 13:04:52 +08:00
parent 9b7bcfadd1
commit 69ce95cda4
11 changed files with 492 additions and 11371 deletions

View File

@ -150,7 +150,7 @@ def Preprocessing(method, input_spectrum, save_path=None):
# SS预处理模型保存到工作目录的7_Supervised_Model_Training/scaler_params.pkl
# 如果调用者没有提供save_path,则使用默认路径
if not save_path:
save_path = r'E:\code\WQ\models\scaler_params.pkl'
save_path = r'.\scaler_params.pkl'
output_spectrum = SS(input_spectrum.values, save_path)
elif method == 'CT':
output_spectrum = CT(input_spectrum.values)