Skip to content

Instantly share code, notes, and snippets.

View sh0rtcircuit's full-sized avatar

Andre Gensler sh0rtcircuit

View GitHub Profile
@pietz
pietz / mlflow_score_script.py
Created July 22, 2022 07:07
Scoring script for Azure ML that can be used to run inference of mlflow models
import json
import logging
import numpy as np
import os
from copy import deepcopy
from inference_schema.parameter_types.abstract_parameter_type import AbstractParameterType
from inference_schema.parameter_types.numpy_parameter_type import NumpyParameterType
from inference_schema.parameter_types.standard_py_parameter_type import StandardPythonParameterType
from inference_schema.schema_decorators import input_schema, output_schema