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