danielpontello / cnn-captcha-solving

CAPTCHA solving using Convolutional Neural Networks

Home Page:http://www.inatel.br/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while testing code after training

saifhassan opened this issue · comments

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