Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Nov 16, 2022 11:16:11 AM
Nov 16, 2022 11:17:06 AM
"This prediction failed to run successfully due to schema errors" can occur during the prediction phase if there is a mismatch in the table schema between training and prediction datasets.
In this example, we will show how a column in the prediction dataset was profiled as a categorical rather than numeric because it contained dashes '-' for empty values.
1. Upload test_dash_training.csv and test_dash_prediction.csv to Qlik Cloud. See attachments on the article if you would like to download.
Training dataset:
Prediction sample:
2. Create a new ML experiment and choose test_dash_training.csv, and click 'Run Experiment'
3. Deploy the top model
5. Create a new prediction and select test_dash_prediction.csv as the apply dataset
You will encounter a warning message, "Feature type does not match the required model schema."
If you continue, you will encounter another message after clicking 'Save and predict now'.
6. If you click 'Save configuration', the prediction will attempt to run but will not produce prediction dataset and will display an error.
Clean up dashes from 'chats' column in test_dash_prediction.csv. Either remove them from the prediction dataset or transform to a numeric value such as zero.
The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.