This commit is contained in:
s434695 2021-05-23 23:21:33 +02:00
parent 9050bcb8e7
commit 30c8343c6c
10 changed files with 3 additions and 42 deletions

7
Jenkinsfile vendored
View File

@ -1,10 +1,5 @@
pipeline { pipeline {
agent { agent { dockerfile true }
dockerfile {
filename 'Dockerfile'
args '-v /tmp:/tmp'
}
}
parameters{ parameters{
buildSelector( buildSelector(

View File

@ -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'

View File

@ -1,10 +0,0 @@
channels:
- defaults
- conda-forge
dependencies:
- python=3.8.5
- pip
- pip:
- mlflow
- tensorflow==2.4.1
name: mlflow-env

View File

@ -1 +0,0 @@
tensorflow.keras

Binary file not shown.

View File

@ -1 +0,0 @@
tf

File diff suppressed because one or more lines are too long

View File

@ -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))