This model is intended to work with the Python 3 pypmml Drop-In Environment.
The supplied pmml file (iris_bin.pmml) is a pypmml model trained on iris_binary_training.csv with a Species as the target (classification), though any binary or regression model trained using the libraries outlined in Python 3 pypmml Drop-In Environment will work.
Create a new custom model with these files and use the Python Drop-In Environment with it
Paths are relative to ./datarobot-user-models
:
drum score --code-dir model_templates/inference/python3_pmml --input tests/testdata/iris_binary_training.csv --positive-class-label Iris-setosa --negative-class-label Iris-versicolor
Replace iris_bin.pmml
with iris_reg.pmml
from the repo's tests/fixtures/drop_in_model_atifacts
folder, which is a pypmml model trained on Iris dataset with a Sepal Length
as the target (regression).
Paths are relative to ./datarobot-user-models
:
drum score --code-dir model_templates/inference/python3_pmml --input tests/testdata/iris_binary_training.csv