Question: For this problem you need to use the cancer data file fullTrainData.txt. Each line in this file presents information about one patient. The first value

For this problem you need to use the cancer data file fullTrainData.txt. Each line in this file presents information about one patient. The first value in each line is the patient id, the values two through ten represent values of nine tumor attributes (each is an integer number in 0-10 range) and the last value in each line is the diagnosis (2 means benign, 4 means malignant).

Write Python program that will read data from this file and create two lists. In one list store the sum of the values of the nine tumor attributes for benign tumors and in the second list store the sum of the values of the nine tumor attributes for malignant tumors (you need to have one sum for each patient).

Next, use pylab module to create a scattered plot of the values of the sums using different colors for benign and malignant data.

-------------------------------------------------------------------------------------------------------------------------------

REMEMBER ITS PYTHON FOR BEGINNNERS SO KEEP AS SIMPLE AS POSSIBLE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!