model.data function

Extract the model training data