Thanks for using MS Q&A platform and posting your query
The error you're encountering when using the generated code in your Azure US Gov tenant likely stems from compatibility issues. ONNX runtime, which is specified in the code (RUNTIME = ONNX
), might not be fully supported in your specific government cloud environment.
Here are some alternative approaches you can try:
- Use SynapseML runtime:
- SynapseML, previously known as MMLSpark, is a library specifically designed for machine learning tasks within Azure Synapse Analytics. It offers better compatibility within the Azure US Gov cloud.
- In the Synapse Studio scoring wizard, during the "Runtime" selection, choose "SynapseML" instead of "ONNX". This should leverage SynapseML's capabilities for model scoring.
- Leverage dedicated Spark pool:
- If SynapseML doesn't resolve the issue, consider using a dedicated Spark pool for scoring.
- Train your model using compatible libraries within the Spark pool environment. This approach might require additional coding but offers more flexibility for government cloud environments.
Please ensure below steps:
- Check Model Existence: Ensure that the model ‘nyc_taxi_tip_predict:1’ exists in the dbo.models table and that the ID is correct.
- Verify Data Types: Confirm that the data types in the CAST statements match the expected types in your machine learning model.
- Review Permissions: Make sure you have the necessary permissions to create procedures and execute the PREDICT statement in your Synapse workspace.
Hope this helps. Do let us know if you any further queries.