Zaktualizuj 'ml_pytorch_mlflow.py'

This commit is contained in:
Sebastian Wałęsa 2022-05-15 22:22:05 +02:00
parent 4eaf748f2d
commit 6f47a1390c

View File

@ -135,9 +135,10 @@ def my_main(epochs):
input_, target = val_ds[i] input_, target = val_ds[i]
expected.append(float(target)) expected.append(float(target))
predicted.append(float(prediction(input_, model))) predicted.append(float(prediction(input_, model)))
input_ = pd.DataFrame(input_)
inputs.append(input_) inputs.append(input_)
inputs = pd.DataFrame(inputs)
MSE = mean_squared_error(expected, predicted) MSE = mean_squared_error(expected, predicted)
MAE = mean_absolute_error(expected, predicted) MAE = mean_absolute_error(expected, predicted)