Python. We have a potential dataframe A and target variable Y

Python. We have a potential dataframe A and target variable Y. Perform the following tasks in PYTHON:

A. Shuffle the data in the potential dataframe A. For fun, try running without doing this and see how bad your models are! When target data is sorted it can cause all kind of issues.

from sklearn.utils import shuffle df = shuffle(df)

B. Prepare for cross validation. There are two steps you must do prior to building and evaluating the models. What are they? Make sure to do them! Hint: Prepare your potential dataframe A and target variable Y.

C. Create a list of performance metrics to use for the CV function.

scoring_list = [‘neg_mean_absolute_error’,’neg_mean_absolute_percentage_error’,’neg_mean_squared_error’,’r2′]

Complete Answer:

Get Instant Help in Homework Asap
Get Instant Help in Homework Asap
Calculate your paper price
Pages (550 words)
Approximate price: -
Open chat
1
Hello 👋
Thank you for choosing our assignment help service!
How can I help you?