making predictions from detrended data I am building a machine learning based model (random forest in scikit-learn) to predict maize yields in the U.S. based on data on historical maize yields and temperature and precipitation information. Since there is a trend in maize yields, I detrend the yield data first, then fit the model and then predict for current year. However, I assume that the predictions from the model are detrended as well. How do I go about making predictions that are not detrended? Any pointers and literature reference would be helpful
I'm just guessing but I can think of two options: 


Train the model from the original data, including features which represent the current trend so that the model can integrate it. It makes the job of the model more complex so it might not work very well.
Since you can untrend the data I assume that you can calculate the trend function. So you could train an independent model for this trend function and apply it on the predictions obtained with the untrended model. In this case performance depend how accurately the trend is predicted.