only re-train network if changed training set