ENH: learn from data