Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define Model signature for ML Flow #98

Open
stevehadd opened this issue Sep 6, 2022 · 1 comment
Open

Define Model signature for ML Flow #98

stevehadd opened this issue Sep 6, 2022 · 1 comment
Assignees

Comments

@stevehadd
Copy link
Member

For registering our models in MLFlow (and probably other frameworks) we should define the schema for the model(s). This involves describing the following aspects:

  • shape and data types of inputs
  • tensor of columns based inputs

Defiining
https://www.mlflow.org/docs/latest/models.html#model-signature

The key code is as follows:

signature = mlflow.models.signature.infer_signature(testX, model.predict(testX))
mlflow.keras.log_model(model, "mnist_cnn", signature=signature)

It is not clear how this works with the autolog functionality.

@stevehadd
Copy link
Member Author

this would be useful for a robist inference pipeline so we can save the trained models and easily use the mlflow for loading in the model and matching the data to essure we are doing inference correcftly for our testbed dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant