[Python] 'invalid value encountered in double_scalars' warning, possibly numpy

Discussão em 'Python' iniciado por Stack, Maio 18, 2025.

  1. Stack

    Stack Membro Participativo

    As I run my code I get these warnings, always in groups of four, sporadically. I have tried to locate the source by placing debug messages before and after certain statements to pin-point its origin.

    Warning: invalid value encountered in double_scalars
    Warning: invalid value encountered in double_scalars
    Warning: invalid value encountered in double_scalars
    Warning: invalid value encountered in double_scalars


    Is this is a Numpy warning, and what is a double scalar?

    From Numpy I use

    min(), argmin(), mean() and random.randn()


    I also use Matplotlib

    Continue reading...

Compartilhe esta Página