自动填写路径
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user