plt.contourf(X1, X2, classifier.predict(np.array([X1.ravel(), X2.ravel()]).T).reshape(X1.shape),
alpha = 0.75, cmap = ListedColormap(('red', 'green')))
Когда я выполнил это, я получил ошибку:
ValueError: Number of features of the model must match the input. Model n_features is 11 and input n_features is 2
Могу ли я получить ответ для решения этой проблемы?
Заранее спасибо.