college level k-fold cross-vaildation question

Job ID: 36734585

Budget: $15 – $25 USD

Requirment: Methods - cross-validation
Explain what form of cross-validation you will use. Give a clear explanation, including any procedures you will use for randomizing the order of observations, splitting testing and training sets. It is NOT sufficient to simply reference a Python library; you must explain how the library actually performs the cross-validation.

Write a K-cross Validation for me. I will put the dataset and jupternotebook on this link. My hypothesis is to find the relationship between 'purchase frequency' and 'spending' Using the numpy (python to write it down) . I was trying to run a k-fold corss-vaildation between two variables (purchase frequency and spending), but after following chatgpt's code, my result MSE is about 600,000 but the acutally MSE should be between 0 to 1. I really need someone to fix my code. If the standard k-cross method doesn't work, please give me another type of corss-vaildation method that fits well in my hypothesis.
Related categories: Python Machine Learning (ML) Data Analysis