This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Solved! Go to Solution.
Hello,
I'm the author of the LinkedIn article that you are refering to in your question, and you are making several mistakes:
1. you don't need the setup, as you are importing the model from a pkl file (assuming that you saved it earlier)
2. make sure that all your columns at the dataframe are correctly named, exactly the same as the model was trained with the original dataframe. Also the values are wtihin the same range of the training dataset used to generate the model.
3. you are using the wrong column name to mask / rename the values. When you apply the `predict_model()`, the classification experiment will automatically produce 2 columns: 'prediction_label' (with the 0 and 1 values) and 'prediction_score' (with the probability of the class predicted). So, your mitake should be solved with:
Hello,
I'm the author of the LinkedIn article that you are refering to in your question, and you are making several mistakes:
1. you don't need the setup, as you are importing the model from a pkl file (assuming that you saved it earlier)
2. make sure that all your columns at the dataframe are correctly named, exactly the same as the model was trained with the original dataframe. Also the values are wtihin the same range of the training dataset used to generate the model.
3. you are using the wrong column name to mask / rename the values. When you apply the `predict_model()`, the classification experiment will automatically produce 2 columns: 'prediction_label' (with the 0 and 1 values) and 'prediction_score' (with the probability of the class predicted). So, your mitake should be solved with:
Interesting topic. Hope someone can help you. Like to follow the discussion. Have you try to ask ChatGPT if it can help you?
Hi gregoliveira, yes! But he seemed to not provide me with the exact steps but I'll definitely try to reformulate my question and see if I could find something
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 28 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 34 | |
| 25 | |
| 24 |