0% found this document useful (0 votes)
10 views6 pages

SP Code

The document contains Python code for analyzing the breast cancer dataset using logistic regression. It includes data loading, preprocessing, model training, and accuracy evaluation on both training and test datasets. The final output predicts whether a given input data point indicates malignant or benign breast cancer.

Uploaded by

v.deepthi21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

SP Code

The document contains Python code for analyzing the breast cancer dataset using logistic regression. It includes data loading, preprocessing, model training, and accuracy evaluation on both training and test datasets. The final output predicts whether a given input data point indicates malignant or benign breast cancer.

Uploaded by

v.deepthi21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
315125, 4.01 AM ingore munpy 25 99 fngort pandas as 24 inport sidears. datasets ‘from [Link] selection Inport tratn_test_spitt from skcearn.Linear_podel inport Logsseichegression from sklearn metrics sapore [Link] breast cancer datatel = sklearn-datasets. toad breast_cancer() print(breast_cancer dataset) Fe (data’s array(((a.70pe+e1, 1esseten, 1.228002, suaase-el), Untiledt7 pynb - Coad [les7ev01, 2.776001, a.2280482, .., 2.06@e-01, 2.7506-81, e.302e-22), ['sesev01, 2.22ser01, 1.s08e+02, ..., 2.430e-01, 3.6:2e-01, 7382-02}, (ilécoetan, 2.s0sere1, 1.o83ere2, ..., s.a1Be-o1, 2.208e-01, [2reseesan, 2.033001, 1.402682, Sodee-et, [7"709e%00,"[Link], 4.7920401, Ta3se-82))) 1 arraytl, 1 8s Br By 8, Gr By 8, 8 8 By 8,15 8, 2, 2, Ts Ay 8, 8, 1 Ra ae Lene, ee te te tt 8% 1, 8, 8, 8 1, 2,8, 1 1, Rude na tage, ea, LuGUUuEL ae, RuuL AE Lage a 282 oy 22, 8 1 @, Runaway aa aven Rane ay 85 ts ty Faglus error’, ‘texture error", “perineter error’, “Yorst symetry", ‘worst fractal disnsSon"], dtype-"

You might also like