Sklearn ValueError: X has 2 features per sample; expecting 11
X = dataset.iloc[:, :11].values


It is asking for 2 features per sample. But you are passing the 11. Do it like this

X = dataset.iloc[:, :2].values