I am trying to use tf.contrib.learn.DNNRegressor to model a multi-input multi-output system. I have followed the Boston DNNRegressor example on the Tensorflow website, however when I try to pass an array of 2 outputs to the regressor fitter, I get
raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (100, 1) and (100, 2) are incompatible
I found this post with no responses from back in January, so it seems other people have had this problem.
I could conceivably use multiple DNNRegressors for each of the outputs, however is it possible to predict multiple outputs with a single DNNRegressor in Tensorflow?
I am running Tensorflow 1.2.1 on Ubuntu 16.04.