Zaktualizuj 'ml_pytorch_mlflow.py'
This commit is contained in:
parent
bedfde2412
commit
22b7a65a17
@ -132,14 +132,17 @@ def my_main(epochs):
|
|||||||
expected = []
|
expected = []
|
||||||
predicted = []
|
predicted = []
|
||||||
inputss = []
|
inputss = []
|
||||||
|
targetss = []
|
||||||
for i in range(0, len(val_ds), 1):
|
for i in range(0, len(val_ds), 1):
|
||||||
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)))
|
||||||
inputss.append(input_)
|
inputss.append(input_)
|
||||||
|
|
||||||
inputss = pd.DataFrame(inputss, dtype=np.float64)
|
|
||||||
inputss = inputss.to_numpy()
|
inputss, targetss = val_ds
|
||||||
|
# inputss = pd.DataFrame(inputss, dtype=np.float64)
|
||||||
|
# inputss = inputss.to_numpy()
|
||||||
|
|
||||||
MSE = mean_squared_error(expected, predicted)
|
MSE = mean_squared_error(expected, predicted)
|
||||||
MAE = mean_absolute_error(expected, predicted)
|
MAE = mean_absolute_error(expected, predicted)
|
||||||
|
Loading…
Reference in New Issue
Block a user