Fixed an AttributeError in test_naivebayes.py caused by trying to access the non-existent sigma attribute of the GaussianNB object from sklearn.
In more recent versions of sklearn, the var attribute should be used to obtain the variances for each class, instead of sigma. This change replaces all references of sklearnNB.sigma with sklearnNB.var to ensure the code is compatible with the current sklearn API.
This modification ensures the correct execution of the tests and aligns with the latest version of sklearn.
Fixed an AttributeError in test_naivebayes.py caused by trying to access the non-existent sigma attribute of the GaussianNB object from sklearn.
In more recent versions of sklearn, the var attribute should be used to obtain the variances for each class, instead of sigma. This change replaces all references of sklearnNB.sigma with sklearnNB.var to ensure the code is compatible with the current sklearn API.
This modification ensures the correct execution of the tests and aligns with the latest version of sklearn.