Scikit-learn has some very strict tests for GLMs in https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/linear_model/_glm/tests/test_glm.py. I modified the file to test glum.GeneralizedLinearRegressor instead, see https://gist.github.com/lorentzenchr/2e319bcfd4aadfbea64c6330e5b33521. Running pytest test_glm.py results in 76 failed, 212 passed, 104 warnings.
It might be interesting to include those tests in glum.
Scikit-learn has some very strict tests for GLMs in https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/linear_model/_glm/tests/test_glm.py. I modified the file to test
glum.GeneralizedLinearRegressorinstead, see https://gist.github.com/lorentzenchr/2e319bcfd4aadfbea64c6330e5b33521. Runningpytest test_glm.pyresults in 76 failed, 212 passed, 104 warnings.It might be interesting to include those tests in glum.