How to correctly optimize Macros in Rapidminer

nourhan_taya
nourhan_taya New Altair Community Member
edited November 2024 in Community Q&A

Hi,

i am using artificial neural networks for financial markets prediction. When i used " set macro" operator to optimize the number of hidden neurons, the program give me an error messsage. I did not understand this message error and i do not know how to solve the problem.

Thanks in advance

1.png2.png

Best Answer

  • FBT
    FBT New Altair Community Member
    Answer ✓

    This is most likely caused by a wrong process order. You are requesting the macro value before it was generated. To change the process order of individual operators, click on the blue rectangle on the top right corner of the process pane (see picture below).

     

    Process_order.png 

Answers

  • FBT
    FBT New Altair Community Member

    The problem is most likely caused by the fact that macros have the data type "string" and your process expects a numeric value. Please take a look at this post. It should help you to resolve the issue. 

  • nourhan_taya
    nourhan_taya New Altair Community Member

    Many thanks for reply

    i have tried extract macro for solving the problem but undefined macro message appears. i suspected that there is a problem in the procedure but i couldnot recognize it1.png2.png3.png

  • FBT
    FBT New Altair Community Member
    Answer ✓

    This is most likely caused by a wrong process order. You are requesting the macro value before it was generated. To change the process order of individual operators, click on the blue rectangle on the top right corner of the process pane (see picture below).

     

    Process_order.png 

  • nourhan_taya
    nourhan_taya New Altair Community Member

    Many thanks. this solution solved my problem

  • nourhan_taya
    nourhan_taya New Altair Community Member

    hi,

    the previous solution solved the problem but i did not work for deep learning operator

    p1.pngp2.pngp3.pngp4.png

  • FBT
    FBT New Altair Community Member

    Have you tried running it like this? The warning you are seeing is caused by the process' meta data not being in sync with its real data. This is not uncommon when using macros and usually is only a warning, not an error. From your pictures, I believe you should be able to run it successfully like it is. In case it does not work, maybe you can post your process XML and I will take a look. For this you just need to copy the XML that you can find in your XML panel and copy it into this thread within the "Insert Code" tags (</>).