DecisionTreeRegressor -ml_algo.(kaggle_doubt) #10
-
https://www.kaggle.com/code/dansbecker/your-first-machine-learning-model?scriptVersionId=79125364&cellId=15 doubt2:- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@salvik43 Hey Salvik! For doubt 1: random_state is a parameter that ensures that the data is split and sent into the machine learning model in a specific way. The way it helps us is that if two different ML models were being trained using the same algorithm and data, then setting the same random_state would ensure same portions of the data are being pushed into the model and would ensure very similar results in both cases. This could help us shift our focus to other parameters passed when training or initializing the model and we could adjust those to fine tune our results. For doubt 2: predict function is called once the model has been completely trained with the training set. The goal of the predict function is to take in testing data and generate results. Now these generated results can be compared with original and true results within the data set and this allows us to see the difference in the results and use formulas like those of accuracy, recall, precision and f1 to correctly deduce how well the model performs. |
Beta Was this translation helpful? Give feedback.
@salvik43 Hey Salvik!
For doubt 1: random_state is a parameter that ensures that the data is split and sent into the machine learning model in a specific way. The way it helps us is that if two different ML models were being trained using the same algorithm and data, then setting the same random_state would ensure same portions of the data are being pushed into the model and would ensure very similar results in both cases. This could help us shift our focus to other parameters passed when training or initializing the model and we could adjust those to fine tune our results.
For doubt 2: predict function is called once the model has been completely trained with the training set. The goal o…