Fehler im Python-Skript "Erwartetes 2D-Array, stattdessen 1D-Array:"?

Ich folge diesem Tutorial , um diese ML-Vorhersage zu treffen: import numpy as np import matplotlib.pyplot as plt from matplotlib import style style.use("ggplot") from sklearn import svm x = [1, 5, 1.5, 8, 1, 9] y = [2, 8, 1.8, 8, 0.6, 11] plt.scatter(x,y) plt.show() X = np.array([[1,2], [5,8],...