Dataset modification using an approximating function to capture important patterns in the data while leaving out noise