Skip to content

Error while testing code after training #1

@saifhassan

Description

@saifhassan

I trained completely and then test it but following error occurs:

Calculating Matrix of Confusion ... C:\ProgramData\Anaconda3\lib\site-packages\sklearn\metrics\classification.py:261: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison if np.all([l not in y_true for l in labels]): Traceback (most recent call last): File "test-network.py", line 93, in <module> conf_matrix = confusion_matrix(y_true, y_pred, labels=list(allowed_chars)) File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\metrics\classification.py", line 262, in confusion_matrix raise ValueError("At least one label specified must be in y_true") ValueError: At least one label specified must be in y_true

Please anyone help, Thanks in Advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions