microsoft / BatteryML

MIT License
480 stars 101 forks source link

Difference between figures in baseline.ipynb and BatteryML paper #25

Closed Tian042000 closed 8 months ago

Tian042000 commented 8 months ago

Hi dear developers,

Thank you so much for providing this extensive toolbox. I have a question about the result plot that comparing the predicted RUL and the ground truth.

In baseline.ipynb the plot value ranges from negative to positive and the colorbar label is cycle life, which is a bit strange. While in your paper, the value of cycle life seems reasonable. How you transformed the data? Did I miss anything? Is there any paper available explaining all of this? Thank you so much.

Best wishes, Tian

Tian042000 commented 8 months ago

normal

paper
fingertap commented 8 months ago

The label has been transformed by z-score, as you may find in batteryml/data/transformation/z_score.py

Tian042000 commented 8 months ago

Thanks for your prompt reply!

Do you mean that the plot in your paper the label has no zscore transformation?

I'm tried to modify the setting for feature and label transformations in the model to see what is the difference, so there are 8 combinations. Every row has feature transformed by zscore or not. And as for label the first row is label by log and zscore in sequence. The second and third rows are label by zscore or log, respectively. The last row is no label transformation.

I have two questions here. One is why there is no difference when feature is zscore transformed or not? Second is when label is not transformed at all (the last row), the prediction value is still different from yours. Could you please help to explain what is the reason? Thanks a lot.

0fa4db26-b7be-4fe3-9e0a-b0722a40499b
fingertap commented 8 months ago

We used z-score transformation in all our experiments. As you may find in batteryml/data/transformation/base.py, each data transformation has a inverse_transform method. So in our paper, after prediction, we mapped the predictions back to the original space. Hope this addresses your question.

fingertap commented 8 months ago

Closing this for now. If you find any questions on reproducing the results, feel free to reopen this issue.