acctouhou / Prediction_of_battery

Apache License 2.0
41 stars 5 forks source link

TypeError: process2predict() takes 1 positional argument but 3 were given #4

Closed myalos closed 1 year ago

myalos commented 1 year ago

Thanks for sharing the code! The predict.py cannot run successfully. It reports TypeError: process2predict() takes 1 positional argument but 3 were given

myalos commented 1 year ago

I find the answer which is changing the code from def process2predict(cell_feature): to def process2predict(cell_feature, s_norm, rul_norm): The output of this code is:

training_RUL_mae:21.695
training_S_mae:21.179
testing_RUL_mae:48.420
testing_S_rmae:34.240