From Rules To Learning From Data