createPreprocessSettings function

Create the settings for preprocessing the trainData.