GLM in statsmodel returning error
问题 Now that I have figured out how to use OLS ( Pandas/Statsmodel OLS predicting future values ), I am trying to fit a nicer curve to my data...GLM should work similarly I assumed. import statsmodels.api as sma df1['intercept'] = 1 y = df1[['intercept', 'date_delta']] X = df1['monthly_data'] smaresults_normal = sma.GLM(X,y, family=sma.families.Binomial()).fit() returns ValueError: The first guess on the deviance function returned a nan. This could be a boundary problem and should be reported.