I want to predict count data using a simple fully connected network. I could in principle frame it as a classification problem where each class corresponds to the event count, but I would like to do it properly using a Poisson loss function. Two quick questions:

I can’t seem to find the implementation of this loss function, am I missing anything?
I also cannot seem to find any examples of using pytorch to predict count data, any pointers?

Thank you.