Generate a mapping function between two datasets, using some method, such as linear regression (lm), or some classifier such as a random forest (randomForest).
Wraps the function as well as data into a single object.
A function to be used in the mapping. A function object.
Returns a function object that does the mapping between two datasets i.e. from dataset 1 to dataset 2.