Set_transform vs with_transform

In huggingface dataset, i found two ways of transformation. with_transform and set_transform
What is the difference between two and which one to use in image classification

Hi! The only difference is that set_transform modifies a dataset in-place and with_transform returns a new dataset with the specified transform. Which of these two approaches you want to use is up to you.