Zaktualizuj 'train.py'

This commit is contained in:
Witold Woch 2023-05-14 23:23:37 +02:00
parent 15bee98414
commit e394fdca51

View File

@ -102,7 +102,7 @@ with mlflow.start_run() as run:
loss.backward()
optimizer.step()
# Infer model signature to log it
torch.save(model,"classificationn_model.pt")
signature = infer_signature(X_train.numpy(), model(X_train).detach().numpy())
input_example = {"input": X_train[0].numpy().tolist()}