URI-URL-CLASSIFICATION-USING-RECURRENT-NEURAL-NETWORK-SVM-AND-RANDOMFOREST
URI-URL-CLASSIFICATION-USING-RECURRENT-NEURAL-NETWORK-SVM-AND-RANDOMFOREST copied to clipboard
MODEL ERROR
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.