Skip to main content
Answer

Hosting pickle file in CDF

  • September 11, 2024
  • 1 reply
  • 38 views

Hello,

Is it possible to host a pickle file (which contains a ML model) in CDF and use it to make predictions for the available data in the platform?

If yes, what are the steps ? I browsed the documentation but I haven’t found anything relevant

Best answer by JonHaslanger

Hello,

A pickle file can be uploaded to CDF as a standard “file” type of data.   Then you can call the file via the API from your python code as a bytestream using the client.files.download_bytes(id=<fileID>)

Regards

-Jon

1 reply

Forum|alt.badge.img+1
  • Practitioner
  • Answer
  • September 13, 2024

Hello,

A pickle file can be uploaded to CDF as a standard “file” type of data.   Then you can call the file via the API from your python code as a bytestream using the client.files.download_bytes(id=<fileID>)

Regards

-Jon