Zaktualizuj 'train-mlflow.py'
This commit is contained in:
parent
1dd1a13f68
commit
777b126c73
@ -91,8 +91,8 @@ def my_main(epochs):
|
||||
with open ("output.txt",'a+') as f:
|
||||
if (epochs%100==0):
|
||||
f.write(f'epoch:{epochs+1},loss = {loss.item():.4f}')
|
||||
#x = X_training.detach().numpy()
|
||||
#y = y_predicted_train.detach().numpy()
|
||||
x = pd.DataFrame(X_training)
|
||||
y = pd.DataFrame(y_predicted_train)
|
||||
|
||||
with torch.no_grad():
|
||||
y_predicted = model(X_testing)
|
||||
@ -103,7 +103,7 @@ def my_main(epochs):
|
||||
#result.write(f'{y_predicted}')
|
||||
|
||||
input_example = X_testing[1].numpy()
|
||||
siganture = infer_signature(X_training,model(X_training))
|
||||
siganture = infer_signature(x,y)
|
||||
tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme
|
||||
|
||||
if tracking_url_type_store != "file":
|
||||
|
Loading…
Reference in New Issue
Block a user