Saving signatura and input_example

This commit is contained in:
Dominik Strzako 2021-05-23 19:14:06 +02:00
parent b30d32769a
commit 6ef47ff7f3
49 changed files with 140 additions and 2 deletions

View File

@ -44,7 +44,7 @@ with mlflow.start_run():
scale = StandardScaler()
scaled_x = scale.fit_transform(x)
x_train, x_test, y_train, y_test = train_test_split(scaled_x,yenc , test_size=0.2,train_size=0.8, random_state=21)
NeuralModel = Sequential([
@ -62,6 +62,9 @@ with mlflow.start_run():
NeuralModel.fit(x_train, y_train, batch_size= batch_param, epochs = epoch_param) #verbose = 1
#signature = mlflow.models.signature.infer_signature(x_train.values, NeuralModel.predict(x_train.values))
#input_example = x_test.values[10]
y_pred = NeuralModel.predict(x_test)
y_pred = np.around(y_pred, decimals=0)
@ -72,4 +75,4 @@ with mlflow.start_run():
mlflow.log_metric("Accuracy", results)
mlflow.keras.save_model(NeuralModel, "my_model")
mlflow.keras.save_model(NeuralModel, "my_model", signature= mlflow.models.signature.infer_signature(x_train, y_train), input_example= x_train[0])

View File

@ -0,0 +1,15 @@
artifact_uri: file:///C:/Users/domstr2/Desktop/Git%20Repositories/ium_434788/mlruns/0/18e5374ff3954db6ae6413252f5ba8a0/artifacts
end_time: 1621789608970
entry_point_name: ''
experiment_id: '0'
lifecycle_stage: active
name: ''
run_id: 18e5374ff3954db6ae6413252f5ba8a0
run_uuid: 18e5374ff3954db6ae6413252f5ba8a0
source_name: ''
source_type: 4
source_version: ''
start_time: 1621789605979
status: 4
tags: []
user_id: domstr2

View File

@ -0,0 +1 @@
1621789608968 1.0 0

View File

@ -0,0 +1 @@
16

View File

@ -0,0 +1 @@
15

View File

@ -0,0 +1 @@
b30d32769a43acaa5add99c4d133b49cea08a2fc

View File

@ -0,0 +1 @@
c:/Users/domstr2/Desktop/Git Repositories/ium_434788/Zadanie_08_and_09_MLflow.py

View File

@ -0,0 +1 @@
LOCAL

View File

@ -0,0 +1 @@
domstr2

View File

@ -0,0 +1,15 @@
artifact_uri: file:///C:/Users/domstr2/Desktop/Git%20Repositories/ium_434788/mlruns/0/4dc615b2566045e1a38d3e9a2c98fa38/artifacts
end_time: 1621789318060
entry_point_name: ''
experiment_id: '0'
lifecycle_stage: active
name: ''
run_id: 4dc615b2566045e1a38d3e9a2c98fa38
run_uuid: 4dc615b2566045e1a38d3e9a2c98fa38
source_name: ''
source_type: 4
source_version: ''
start_time: 1621789315235
status: 4
tags: []
user_id: domstr2

View File

@ -0,0 +1 @@
16

View File

@ -0,0 +1 @@
15

View File

@ -0,0 +1 @@
b30d32769a43acaa5add99c4d133b49cea08a2fc

View File

@ -0,0 +1 @@
c:/Users/domstr2/Desktop/Git Repositories/ium_434788/Zadanie_08_and_09_MLflow.py

View File

@ -0,0 +1 @@
LOCAL

View File

@ -0,0 +1 @@
domstr2

View File

@ -0,0 +1,15 @@
artifact_uri: file:///C:/Users/domstr2/Desktop/Git%20Repositories/ium_434788/mlruns/0/616b853a2472488487254d8ab2353fae/artifacts
end_time: 1621788688778
entry_point_name: ''
experiment_id: '0'
lifecycle_stage: active
name: ''
run_id: 616b853a2472488487254d8ab2353fae
run_uuid: 616b853a2472488487254d8ab2353fae
source_name: ''
source_type: 4
source_version: ''
start_time: 1621788682240
status: 3
tags: []
user_id: domstr2

View File

@ -0,0 +1 @@
1621788686375 1.0 0

View File

@ -0,0 +1 @@
16

View File

@ -0,0 +1 @@
15

View File

@ -0,0 +1 @@
b30d32769a43acaa5add99c4d133b49cea08a2fc

View File

@ -0,0 +1 @@
c:/Users/domstr2/Desktop/Git Repositories/ium_434788/Zadanie_08_and_09_MLflow.py

View File

@ -0,0 +1 @@
LOCAL

View File

@ -0,0 +1 @@
domstr2

View File

@ -0,0 +1,15 @@
artifact_uri: file:///C:/Users/domstr2/Desktop/Git%20Repositories/ium_434788/mlruns/0/97483f813bf7416788e111b2385d4e83/artifacts
end_time: 1621789714073
entry_point_name: ''
experiment_id: '0'
lifecycle_stage: active
name: ''
run_id: 97483f813bf7416788e111b2385d4e83
run_uuid: 97483f813bf7416788e111b2385d4e83
source_name: ''
source_type: 4
source_version: ''
start_time: 1621789708867
status: 3
tags: []
user_id: domstr2

View File

@ -0,0 +1 @@
1621789711917 1.0 0

View File

@ -0,0 +1 @@
16

View File

@ -0,0 +1 @@
15

View File

@ -0,0 +1 @@
b30d32769a43acaa5add99c4d133b49cea08a2fc

View File

@ -0,0 +1 @@
c:/Users/domstr2/Desktop/Git Repositories/ium_434788/Zadanie_08_and_09_MLflow.py

View File

@ -0,0 +1 @@
LOCAL

View File

@ -0,0 +1 @@
domstr2

View File

@ -0,0 +1,15 @@
artifact_uri: file:///C:/Users/domstr2/Desktop/Git%20Repositories/ium_434788/mlruns/0/b91407251cd145418f461ff22dbccc2a/artifacts
end_time: 1621789628871
entry_point_name: ''
experiment_id: '0'
lifecycle_stage: active
name: ''
run_id: b91407251cd145418f461ff22dbccc2a
run_uuid: b91407251cd145418f461ff22dbccc2a
source_name: ''
source_type: 4
source_version: ''
start_time: 1621789626192
status: 4
tags: []
user_id: domstr2

View File

@ -0,0 +1 @@
1621789628868 1.0 0

View File

@ -0,0 +1 @@
16

View File

@ -0,0 +1 @@
15

View File

@ -0,0 +1 @@
b30d32769a43acaa5add99c4d133b49cea08a2fc

View File

@ -0,0 +1 @@
c:/Users/domstr2/Desktop/Git Repositories/ium_434788/Zadanie_08_and_09_MLflow.py

View File

@ -0,0 +1 @@
LOCAL

View File

@ -0,0 +1 @@
domstr2

View File

@ -0,0 +1,15 @@
artifact_uri: file:///C:/Users/domstr2/Desktop/Git%20Repositories/ium_434788/mlruns/0/bca432e5a2c0447ca46fb67d04fc4bfb/artifacts
end_time: 1621789680553
entry_point_name: ''
experiment_id: '0'
lifecycle_stage: active
name: ''
run_id: bca432e5a2c0447ca46fb67d04fc4bfb
run_uuid: bca432e5a2c0447ca46fb67d04fc4bfb
source_name: ''
source_type: 4
source_version: ''
start_time: 1621789677156
status: 4
tags: []
user_id: domstr2

View File

@ -0,0 +1 @@
1621789680549 1.0 0

View File

@ -0,0 +1 @@
16

View File

@ -0,0 +1 @@
15

View File

@ -0,0 +1 @@
b30d32769a43acaa5add99c4d133b49cea08a2fc

View File

@ -0,0 +1 @@
c:/Users/domstr2/Desktop/Git Repositories/ium_434788/Zadanie_08_and_09_MLflow.py

View File

@ -0,0 +1 @@
LOCAL

View File

@ -0,0 +1 @@
domstr2

4
mlruns/1/meta.yaml Normal file
View File

@ -0,0 +1,4 @@
artifact_location: file:///C:/Users/domstr2/Desktop/Git%20Repositories/ium_434788/mlruns/1
experiment_id: '1'
lifecycle_stage: active
name: s434788