Move plant data resampling to occur during loading of data
Fix windowing function in learn.py
Move some preprocessing ahead of parameter optimization for speed