STY: Changed regression interface to use dict.