When training a machine learning model, I begin by splitting my dataset into three segments: a training set, a validation set, and a test set. Generally, the training set comprises around 60-70% of the data, the validation set about 10-20%, and the test set approximately 20-30%. This approach helps prevent the model from being overfitted or underfitted. I also use cross-validation techniques, such as k-fold cross-validation, to further validate the model. This allows for a more reliable evaluation of the model's performance. Once I identify the best model through validation, I assess its performance using the test set. The results from the test set provide an indication of how the model is expected to perform on new, unseen real-world data. Moreover, the metrics I utilize to evaluate the model's performance vary depending on the specific problem. For example, in a classification scenario, I might consider accuracy, precision, recall, or F1 score, while in regression tasks, I might look at mean squared error, root mean squared error, or R squared. Additionally, after deployment into production, I establish monitoring systems to continually assess the model's performance. A significant decline in performance may indicate the need to retrain the model with updated data.