Implement a Multinomial Naive Bayes classifier from scratch. This classifier is commonly used for discrete count features (e.g., word counts in text classification). The classifier should learn class priors and per-feature conditional probabilities from training data with Laplace (additive) smoothing, then predict class labels for new test samples.
Your function should:
alpha.The function takes training count features X_train (non-negative integers/floats), training labels y_train, test features X_test, and a smoothing parameter alpha, and returns a numpy array of predicted class labels.
Note: Use log probabilities to avoid numerical underflow. The classes returned should be sorted unique values from y_train.