Zaktualizuj 'train.py'
This commit is contained in:
parent
15bee98414
commit
e394fdca51
2
train.py
2
train.py
@ -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()}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user