i need clarity with prediction of X test, X train, y test, y train
We are predicting the dependent variable i.e diabetic.
You can compare your results with Y test to get accuracy of your model.
in a linear regression model let's say we have 3 independent variable (age, height, gender) and one dependent variable (diabetic) and then we split the model as, X train- i.e. (say 70%) data of independent variables for training, X test-> i.e. 30% data of independent variables for testing
y train-> i.e. (say 70%) data of dependent variable for training, y test-> i.e. 30% data of dependent variables for testing
so when we do predict X-test, or predict X-test, are we predicting values of independent variables or are we predicting the dependent variable (diabetic?)