September 29, 2023

  1.  I ran a model on a dataset to predict diabetes based on inactivity and obesity.
  2.  The model became overfit as I worked on it.
  3.  I used the scikit-learn to test the model after overfitting was identified in the model by performing k-fold cross validation on the data.
  4. Producing a number of partitions of sample observations from the training dataset is the objective of cross validation.
  5. Number of partitions are determined by the number of observations.
  6.  I used a different fold as the validation set each time I trained and evaluated the model after folding the data into K(5) folds.
  7. Performance metrics from each fold are summed to determine the model’s generalization performance.
  8.  Following cross validation, it does prevent overfitting to some extent.

Leave a Reply

Your email address will not be published. Required fields are marked *