cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

MLFlow Output Signature

pablobd
Contributor II

I want to define the output of a MLFlow model to include a dictionary of string to float. I did this, but it doesn't work. Do you know if it's possible at all?

 

 
from mlflow.types.schema import Schema, ColSpec
 
output_schema = Schema([ ColSpec("dictionary_output", "map[string,float]") ])
1 REPLY 1

pablobd
Contributor II

Solved with the json module that converts the dict into string, thanks! 🙂

import json

json.dumps(...)

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group