filtering and training
1-4 th derivatives
add training and prediction. refactor to features.