So I'm using statsmodel package to do a poisson regression on my data set, I made sure that my training y are indeed counts and integers. However, when I print the predicted values(testmodely below) they are floats.
I'm super confused, I expect them to be whole numbers, since the input data and what has been fitted to the model was whole numbers, and poisson outputs count data. Do you have any idea where I'm making a mistake? Thanks a ton beforehand.
import statsmodels.api as sm
poi_model = sm.GLM(trainingy,trainingx, family=sm.families.Poisson())
poi_results = poi_model.fit()
paramet = poi_results.params
testmodely = poi_model.predict(paramet, testx, linear=False)