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(...)

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now