문제

As in the title, I would expect it to be a nan as well. Is this number special?

도움이 되었습니까?

해결책

This is clearly a bug in numpy.ramdom.binomial.

Is this number special?

I would guess this is the result of some calculation involving the raw representation of nan (which is represented as a specific "reserved" float value). (More on that)

The implementor probably forgot to check input for nan and included the raw representation of nan in the (C-level) calculation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top