fix
This commit is contained in:
parent
9050bcb8e7
commit
30c8343c6c
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -1,10 +1,5 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent { dockerfile true }
|
||||||
dockerfile {
|
|
||||||
filename 'Dockerfile'
|
|
||||||
args '-v /tmp:/tmp'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
parameters{
|
parameters{
|
||||||
buildSelector(
|
buildSelector(
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
flavors:
|
|
||||||
keras:
|
|
||||||
data: data
|
|
||||||
keras_module: tensorflow.keras
|
|
||||||
keras_version: 2.4.0
|
|
||||||
save_format: tf
|
|
||||||
python_function:
|
|
||||||
data: data
|
|
||||||
env: conda.yaml
|
|
||||||
loader_module: mlflow.keras
|
|
||||||
python_version: 3.8.5
|
|
||||||
saved_input_example_info:
|
|
||||||
artifact_path: input_example.json
|
|
||||||
pandas_orient: split
|
|
||||||
type: dataframe
|
|
||||||
signature:
|
|
||||||
inputs: '[{"name": "NA_Sales", "type": "double"}, {"name": "EU_Sales", "type": "double"},
|
|
||||||
{"name": "JP_Sales", "type": "double"}, {"name": "Other_Sales", "type": "double"},
|
|
||||||
{"name": "Global_Sales", "type": "double"}]'
|
|
||||||
outputs: '[{"type": "long"}]'
|
|
||||||
utc_time_created: '2021-05-23 20:58:45.764716'
|
|
@ -1,10 +0,0 @@
|
|||||||
channels:
|
|
||||||
- defaults
|
|
||||||
- conda-forge
|
|
||||||
dependencies:
|
|
||||||
- python=3.8.5
|
|
||||||
- pip
|
|
||||||
- pip:
|
|
||||||
- mlflow
|
|
||||||
- tensorflow==2.4.1
|
|
||||||
name: mlflow-env
|
|
@ -1 +0,0 @@
|
|||||||
tensorflow.keras
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
tf
|
|
File diff suppressed because one or more lines are too long
@ -2,6 +2,6 @@ import mlflow
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
model = mlflow.keras.load_model("my_model")
|
model = mlflow.keras.load_model("my_model")
|
||||||
data = pd.read_json('my_model/input_example.json', orient='split')
|
data = pd.read_json('my_model/input_example.json', orient='index')
|
||||||
|
|
||||||
print(model.predict(data))
|
print(model.predict(data))
|
||||||
|
Loading…
Reference in New Issue
Block a user