Zaktualizuj 'train-mlflow.py'

This commit is contained in:
Kornelia Girejko 2022-05-15 16:04:56 +02:00
parent aaa89a679e
commit c51015fe3a

View File

@ -104,7 +104,7 @@ def my_main(epochs):
#result.write(f'{y_predicted}')
input_example = np.array([X_testing.numpy()[0]])
siganture = mlflow.models.signature.infer_signature(X_training.numpy(), y_predicted_train.numpy())
siganture = mlflow.models.signature.infer_signature(X_training.detach()numpy(), y_predicted_train.detach().numpy())
tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme
if tracking_url_type_store != "file":