Skip to content

Division by 0 causes RuntimeWarning #17

@serenalotreck

Description

@serenalotreck
/mnt/ufs18/home-118/lotrecks/Shiu_lab/ML-Pipeline/ML_functions.py:703: RuntimeWarning: invalid value encountered in long_scalars precis.append(TP / (TP + FP))

Appears during calculation of performance metrics. Likely occurrs only with datasets small enough that there are no positive predictions.

Expected behavior: This warning should be suppressed when it occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions