-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unable to log ml model using a signature from MLFlow #108
Comments
Hi lennartvandeguchte, Please check our documentation about |
Hi sfc-gh-wzhao, Thank you for your help, the format was not entirely clear for me from the docs but I now got it working. I was actually using a sklearn model so I had to first convert the mlflow signature to a Snowflake model signature. For anyone interested, I created the following functions to do this:
|
I'm unable to log my sklearn model in Snowflake by using a signature instead of a sample input. The model has been registered first in MLFlow and now I want to deploy it in Snowflake. Here is the code I wrote:
The error that I receive:
I also have been manually constructing the signature as has been described in the documentation (https://docs.snowflake.com/en/developer-guide/snowpark-ml/model-registry/model-signature), but this leads to the same error.
As the ModelSignature object is not a dictionary, and therfore does not contain 'keys', it results in the above error. Therefore, I also tried to first convert it to a dict by using the following code:
Where the model_signature is created as follows:
This leads to the following error:
Anyone that can help me here? Or is this a known bug?
The text was updated successfully, but these errors were encountered: