The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Explain Predictions with Deep learning model in python Script

varunm1varunm1 Member Posts: 1,207 Unicorn
edited April 2020 in Help
Hello,

I am writing this to check if anyone tried to use explain predictions operator with a deep learning model developed in python using Execute python script?
I am not sure if this works but I tried and I am getting an error near the model input of explain predictions operator. I am returning model and connecting it to Explain predictions
Wrong input of type 'File' at port 'model'. Expected type 'Model'

I might be trying something crazy here :blush:

Attached dataset and process rmp file. @lionelderkrikor @hughesfleming68

Thanks for your help
Varun
Regards,
Varun
https://www.varunmandalapu.com/

Be Safe. Follow precautions and Maintain Social Distancing

Comments

  • hughesfleming68hughesfleming68 Member Posts: 323 Unicorn
    edited May 2019
    Hi Varun. Is this a Keras/Tensorflow model that you are bringing in the with the read Keras operator from the DL4J extension? I am not sure when I will be able to look at your process so just guessing. Try saving the model and bringing it in that way.
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    Hello Alex,

    This is a keras model I built in python. I am not aware of "Read Keras" operator. I will try and update this thread.

    Thank you
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • varunm1varunm1 Member Posts: 1,207 Unicorn
    edited May 2019
    Hello Alex,

    I tried saving the model into the hdf5 format. Once this is done I tried to retrieve it and use read keras operator but this operator is not giving model output. I am attaching the processes and dataset in this. Please take a look when you have time. I will keep trying as well.

    Not sure if simpleRNN in keras is the reason for this issue.

    @pschlunder your inputs are appreciated.

    Thank you
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    Explain Predictions needs an RM Model object. it cannot work with python models (yet).

    Best,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    edited May 2019
    Hello @mschmitz

    Thanks for your response. I am not aware of this. I thought this works for Deep learning extension. Thanks for informing.

    Fighting on this from yesterday :neutral:

    Regards,
    Varun
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    it should work with the DL4J extension, but not with keras.

    BR,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    edited May 2019
    Does "Read Keras Model" operator which is part of deep learning extension convert keras model to DL4J? I am trying this. First store model in hdf5 and then use read keras to convert to dl4j and apply explain predictions.

    I thought read keras model operator is not working(unable to convert to dl4j) for my model because I am using SimpleRNN layer in keras which I don't see in our Deep learning extension.
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    Puh,
    i think Read Keras should do the trick, but @pschlunder is the expert here.

    BR,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.