How to Use MLflow Models in MindsDB
Here are the prerequisites for using MLflow-served models in MindsDB:-
Train a model via a wrapper class that inherits from the
mlflow.pyfunc.PythonModelclass. It should expose thepredict()method that returns the predicted output for some input data when called. -
Start the MLflow server:
-
Serve the trained model:
Example
Let’s create a model that registers an MLflow-served model as an AI Table:complete, we can query for predictions.
One way is to query for a single prediction using synthetic data in the WHERE clause.
files integration. It is joined with the model and predictions are made for all the records at once.