Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

epare a Python program to do the following tasks. Please no ce that the program must be runnable in Google s Colab. ( Only submit

epare a Python program to do the following tasks. Please noce that the program must be runnable in Googles Colab. (Only submit a single file as the assignment with the format of .ipynb)
1) Read data from the file pima-indians-diabetes.data.csv given in the A2L.
2) Print the features of the first 5 samples.
3) Calculate and print the correlaon between the features (columns).
4) Rescale all 9 features into the range of (0,1) and print the scaled value of the features of the first 5
samples.
5) Calculate and print the correlaon of the features for the rescaled data.
6) Have the correlaons changed? (Please answer this queson in a Text box inside your program.)
7) Group data by class.
8) Calculate the correlaon of the features (columns) over samples in class=0.
9) Are the correlaons equal to that of the whole data (item (3) above)?(Please answer this queson in
a Text box inside your program.)(Hint: You may see NaN for some of the results. Do not worry. This is
because the value of one of the features for all of the samples are equal; 0 in this case).
10) Calculate the correlaon of the features (columns) over samples in class=1.
11) Are the correlaons between features in class 1 and class 0 the same? (Please answer this queson
in a Text box inside your program.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2. Describe how technology can impact intercultural interaction.

Answered: 1 week ago

Question

7. Define cultural space.

Answered: 1 week ago