I need to recreate some of the results of R in a python library, specifically LL-Null. I know that it describes
The null deviance shows how well the response is predicted by the model with nothing but an intercept.
Does this mean that I use an already-fit model and 0 out all the non-intercept weights? If not, how would this go? I need to implement it custom for an internal library I am building