modifited cal-train and cal-test to cal kernel directly