So I have this pipeline class that consists of all the functions for preprocessing, feature analysis and finally training. My application is using cache for data loading and model training. Each time I perform one operation such as feature removal or analysis, data load function is retrieved from cache. However, when I train the model and try to do evaluation, model training function is not cached or cache is missed. I have tried replacing the model training function with simple function that takes a string and returns it, cache is still missing.
However, when I just load data and run model training, then it works. So, when I perform all the preprocessing steps and train the model and do evaluation. In that case only it is not working.