A reactive machine learning system