x and y must have same first dimension, but have shapes (9,) and (4,)
x and y must have same first dimension, but have shapes (9,) and (4,) Question: y_pred = fig.predict(x.reshape(1, -1)).reshape(-1) colors_dark = ["#1F1FIF", "#313131", "#636363", "#AEAEAE", "#DADADA"] colors_red = ["#331313", "#582626", "#9E1717", "#D35151", "#E9B4B4"] colors_green=[ "# 01411C", "#4B6F44", "#4F7942", "#74C365", "#D0F0C0"] filterwarnings("ignore") epochs =[ i for i in range(9)] fig, ax = plt.subplots(1, 2,figsize=(14,7)) train_acc1 = …