X_plan = [250,50,50] # 要预测的X特征数据 X_train,X_plan = scaler(X_train_original,X_plan) # 对预测数据也要归一化缩放 X_plan = np.append([1], X_plan ) # 加一个哑特征X0 = 1 y_plan = np.dot(weight_history[-1],X_plan) # [-1] 即模型收敛时的权重