Challenge

Project 1

Using 'faults.csv' data Logistic regression algorithm is performed with simple random sampling and stratified sampling

Differences in the result are:

values obtained form simple random sampling:-

RMSE on train dataset :  0.562709623843268
RMSE on test dataset :  0.5571921767073515
confusion matrics= [[260  86]
                    [ 95 142]]

values obtained form stratified sampling:-

RMSE on train dataset : 0.5501372167833517
RMSE on test dataset : 0.5571921767073515
confusion matrics= [[257  93]
                    [ 88 145]]

coding:
file attached below
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.