I am a newbie in machine learning. After days of studying the ideas of machine learning, I have made some conclusions, which are below (I only consider supervised learning).
Step 1: Data splitting Before we go to data processing, the dataset should be split into training and testing. The training dataset will go through the checking (validation) process while the testing dataset is kept unchanged to assess model performance.
Step 2: Cross-validation k-fold (a lot of methods but example)
Regarding applying traditional modelling (linear regression) to machine learning:
When we do cross-validation (k-fold) the aim is to choose the model with the best input variables (basing on AIC, BIC... ). This is because the linear regression model has no turning parameters for optimising (only variables). It is true that LASSO or PCA are not considered in this case because they have to do variable selection (feature selection) themselves. After that, the model with the best input variables will be used to check model performance (calculating mean absolute error (MAE), mean square error (MSE)...)
Regarding machine learning algorithms:
The aim of cross-validation (k-fold) is to choose the most proper turning parameters (ex: n_estimators, max_depth in random forest) After that, the model with the best turning parameters will be used to check model performance (calculating MAE, MSE...)
!!!Important: only the training dataset is used for cross-validation
Step 3: Assessing model performance
The MAE, MSE will be calculated basing on models with best input variables (linear regression) or turning parameters (machine learning algorithms). The testing dataset is used in this step.
This is all about steps for doing machine learning (ideas) due to my understanding. Thus, would it be right that variable selection for traditional modelling (linear regression) is similar to choosing the best parameters during the cross-validation process?
Besides, if I have made some mistakes in the content above, would you please show it to me?