Complete the code to import the correct model for multi-class classification.
from sklearn.linear_model import [1]
LogisticRegression supports multi-class classification with the 'multinomial' option.
Complete the code to create a logistic regression model for multi-class classification.
model = LogisticRegression(multi_class=[1], solver='lbfgs')
The 'multinomial' option enables true multi-class classification.
Fix the error in the code to correctly fit the multi-class model.
model.fit(X_train, [1])The model must be trained with the training labels y_train, not test data or features.
Fill both blanks to create a dictionary comprehension that maps each class to its predicted probability.
prob_dict = {cls: [1][i] for i, cls in enumerate([2])}We use 'probs' to get probabilities and 'classes' to get class labels.
Fill all three blanks to compute accuracy score for multi-class classification.
from sklearn.metrics import [1] accuracy = [2]([3], y_pred)
We import accuracy_score and use it with true labels y_true and predicted labels y_pred.