Toolkit for using data to learn and adapt