Zaktualizuj 'ml_pytorch_mlflow.py'

This commit is contained in:
Sebastian Wałęsa 2022-05-15 22:36:53 +02:00
parent de2b7054e9
commit 94cf57b262

View File

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