I am trying to assess how well a neural network regression model performs on test data. To do this I have used NetMeasurements command.
net1 = NetChain[{LinearLayer[200], ElementwiseLayer[LogisticSigmoid],
LinearLayer[200], ElementwiseLayer[LogisticSigmoid], LinearLayer[1]}, "Input" -> 40,
"Output" -> "Scalar"]
trainednet1 = NetTrain[net1, traindata, All, ValidationSet -> validationdata,
BatchSize -> Automatic, LossFunction -> MeanSquaredLossLayer[], Method -> "SGD"]
NetMeasurements[net1, testdata, "Output"]
When I do this, I get the following error message
What could the issue possibly be?
I have wondered if "net1" should be replaced by "trainednet1" in the argument of NetMeasurements. But, then I get another error