diff --git a/ml_pytorch_mlflow.py b/ml_pytorch_mlflow.py index 37979a2..ed3796f 100644 --- a/ml_pytorch_mlflow.py +++ b/ml_pytorch_mlflow.py @@ -130,10 +130,12 @@ def my_main(epochs): expected = [] predicted = [] + inputs = [] for i in range(0, len(val_ds), 1): input_, target = val_ds[i] expected.append(float(target)) predicted.append(float(prediction(input_, model))) + inputs.append(input_) MSE = mean_squared_error(expected, predicted) MAE = mean_absolute_error(expected, predicted) @@ -147,7 +149,7 @@ def my_main(epochs): input_, target = val_ds[i] file.write(str(predict_single(input_, target, model))) - print(val_ds[0]) + print(inputs) # input_example = val_ds[0] # # input_example = input_example.unsqueeze(0)