Resolved: Using x_train_transf in the clf
Why did you use x_train_transf instead of x_train in the cls.fit(x_train_transf, y_train) ?
Thank you for reaching out and thank you for engaging with the Machine Learning with Naïve Bayes course!
x_train stores the YouTube comments in the form of strings which the ML algorithm cannot understand. For that reason, we need to transform the data in the form of numbers. This transformed data is stored in the
x_train_transf variable and therefore that is the one we should use in the fitting process.
Hope this helps!