URI-URL-CLASSIFICATION-USING-RECURRENT-NEURAL-NETWORK-SVM-AND-RANDOMFOREST icon indicating copy to clipboard operation
URI-URL-CLASSIFICATION-USING-RECURRENT-NEURAL-NETWORK-SVM-AND-RANDOMFOREST copied to clipboard

MODEL ERROR

Open camellia2 opened this issue 3 years ago • 0 comments

Hello, I am trying to run your code with my own dataset and have a problem with MODELERROR. i fix the code : target_names = ['pornography', 'gamble', 'reactionary', 'malicious website', 'illegal drug'] print(confusion_matrix(labels_test, prediction, labels = [1, 2, 3, 4, 5]))

the error is:ModelError: could not decode [1 2 3 4 5] y values to ['pornography' 'gamble' 'reactionary' 'malicious website' 'illegal drug'] labels

The data format has been modified with reference to you. If I want to use my own dataset, which parts should I modify, as a beginner, I hope you can help me, it would be greatly appreciated.

camellia2 avatar May 08 '22 08:05 camellia2