3. Given the following Python code snippet for multi-class text classification, what will be the output of
print(predicted_class)?
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
texts = ["I love cats", "Dogs are great", "I hate rain"]
labels = ["positive", "positive", "negative"]
vectorizer = CountVectorizer()
X = vectorizer.fit_transform(texts)
model = MultinomialNB()
model.fit(X, labels)
new_text = ["I love dogs"]
X_new = vectorizer.transform(new_text)
predicted_class = model.predict(X_new)[0]