0% found this document useful (0 votes)
50 views3 pages

ML Assignment 2

The document outlines a machine learning assignment by Sreetam Ganguly focused on breast cancer dataset analysis. It details the implementation of logistic regression with various solvers and penalties, as well as Naive Bayes with 5-fold cross validation. The assignment includes comparisons of accuracy and coefficients for different methods and configurations.

Uploaded by

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

ML Assignment 2

The document outlines a machine learning assignment by Sreetam Ganguly focused on breast cancer dataset analysis. It details the implementation of logistic regression with various solvers and penalties, as well as Naive Bayes with 5-fold cross validation. The assignment includes comparisons of accuracy and coefficients for different methods and configurations.

Uploaded by

Sreetam Ganguly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Machine Learning Assignment

Sreetam Ganguly
[Link] Seventh Semester
September 14, 2021
The breast cancer dataset is downloaded.

The training and test sets have the following sizes.

The Pearson Correlation heatmap is given below.


Logistic regression using scikit learn dataset after splitting it into [Link] parts. Then ‘newton-cg’,
‘lbfgs’, ‘liblinear’ solvers are implemented and the accuracy and coefficients are compared.

Then ‘l1’, ‘l2’, ‘none’ penalty are implemented and the accuracy and coefficients are compared.

Then the l1 penalty is varied over the range (0.1, 0.25, 0.75, 0.9) the accuracy and coefficients are
compared.
Then Naive Bayes is implemented and the algorithm is compared using 5-fold cross validation.

You might also like