Ultimate access to all questions.
Consider a scenario where you have a dataset with 10 features and you want to train a machine learning model using Spark ML. Describe the steps involved in training and evaluating the model, and explain the role of Spark ML estimator and Spark ML transformer in this process. Provide a code snippet demonstrating the training and evaluation of a model using Spark ML.