train model with help from prior knowledge