我正在尝试使用TensorFlow在Python中实现多元线性回归,但遇到了一些逻辑和实现问题。我的代码抛出以下错误:AttemptingtouseuninitializedvalueVariableCausedbyopu'Variable/read'理想情况下,weights输出应该是[2,3]defhypothesis_function(input_2d_matrix_trainingexamples,output_matrix_of_trainingexamples,initial_parameters_of_hypothesis_function,learning_rate,n
我正在尝试使用TensorFlow在Python中实现多元线性回归,但遇到了一些逻辑和实现问题。我的代码抛出以下错误:AttemptingtouseuninitializedvalueVariableCausedbyopu'Variable/read'理想情况下,weights输出应该是[2,3]defhypothesis_function(input_2d_matrix_trainingexamples,output_matrix_of_trainingexamples,initial_parameters_of_hypothesis_function,learning_rate,n