Forum Discussion

PeterParker's avatar
PeterParker
Helper I
2 years ago
Solved

Load Phyton predictive model in Power BI Service

Hi all,

 

I have a power bi desktop file, here I have a phyton model for predictions. unfortunately I can't use this model in a power bi service. does anyone have an idea how to expose a predictive model for the Power bi service.

 

Rg Peter

  • You will need Fabric capabilities.
    Service does not have enough py-libraries out of the box.

    Regards

3 Replies

  • You will need Fabric capabilities.
    Service does not have enough py-libraries out of the box.

    Regards

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi PeterParker ,
    According to your description, if you want to use python model in power bi service. First, you need to manipulate the data on the power bi desktop side. Then upload the data after the manipulation to the power bi service. to refresh the Python model in the Power BI service, you need to configure a scheduled refresh and make sure that the Power BI gateway is installed and configured on the computer where the Python environment and the .pbix file are located.
    You can check out this document for more details on running python scripts on power bi destop
    Run Python scripts in Power BI Desktop - Power BI | Microsoft Learn

    Best regards,
    Albert He

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

    • PeterParker's avatar
      PeterParker
      Helper I

      Hi Anonymous ,

       

      thanks for your replay.

      if I use phyton scripts for graphics, this already works in the Power BI service. I have already had good experiences here. In my example with the Phyton Scikit Learn model, which I included as a step in Power Query. I get the following message when configuring the gateway (on-premises). The data source csv and model are in the same directory.


      Regards Peter