<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: question about formula depot, Generate Python Code with error &amp;quot;Formula evaluation requires implementation of operator &amp;quot;IfMZ&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338085#M58587</link>
    <description>&lt;P&gt;I believe you need to write a custom python function that replaces missing values as zero before evaluating the if statement, then use that function in placeholder. Check out the Scripting Index for a description of what IfMZ does.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Nov 2020 12:55:58 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2020-11-29T12:55:58Z</dc:date>
    <item>
      <title>question about formula depot, Generate Python Code with error "Formula evaluation requires implementation of operator "IfMZ"</title>
      <link>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338058#M58580</link>
      <description>&lt;P&gt;I am using JMPpro 15 with Boosted Tree model to predict a target variable. when I am trying to use formula depot to generate Python Code for applying in python environment, it pops up JMP Alert &lt;STRONG&gt;Formula evaluation requires implementation of operator "IfMZ"&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;and the python code is not working due to it can't recognize it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example, in the python code exported from JMP&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;_temp_5 = placeholder_IfMZ((indata[u"A"] == u"&amp;lt;100%"), 0.176288660753027, (indata[u"A"] == u"0" or indata[u"A"] == u"~100%"), 0.326534073883455, 0)
_temp_4 = _temp_5&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP/Python experts, do you knows how to fix it? thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 21:59:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338058#M58580</guid>
      <dc:creator>lucy_luo_conoco</dc:creator>
      <dc:date>2023-06-09T21:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: question about formula depot, Generate Python Code with error "Formula evaluation requires implementation of operator "IfMZ"</title>
      <link>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338085#M58587</link>
      <description>&lt;P&gt;I believe you need to write a custom python function that replaces missing values as zero before evaluating the if statement, then use that function in placeholder. Check out the Scripting Index for a description of what IfMZ does.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 12:55:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338085#M58587</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2020-11-29T12:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: question about formula depot, Generate Python Code with error "Formula evaluation requires implementation of operator "IfMZ"</title>
      <link>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338092#M58594</link>
      <description>&lt;P&gt;Thanks for reply. I thought formula depot can automatically generate Python code without modifying. this is not convenient at all. because I have so many different conditions/variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;_temp_40 = placeholder_IfMZ((indata[u"B"] == u"U2" or indata[u"B"] == u"MULTI" or indata[u"B"] == u"L1"), 0.241910570257302, (indata[u"TB"] == u"L2"), -0.216517363734128, 0)&lt;/P&gt;&lt;P&gt;_temp_61 = placeholder_IfMZ((indata[u"C"] == u"U2"), -0.117955642135196, (indata[u"C"] == u"(Empty)"), -1.58336331994262, 0)&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 18:39:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338092#M58594</guid>
      <dc:creator>lucy_luo_conoco</dc:creator>
      <dc:date>2020-11-29T18:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: question about formula depot, Generate Python Code with error "Formula evaluation requires implementation of operator "IfMZ"</title>
      <link>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338118#M58597</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;, thanks for pointing &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4433"&gt;@lucy_luo_conoco&lt;/a&gt; in the right direction.&lt;/P&gt;
&lt;P&gt;Good to hear from you again, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4433"&gt;@lucy_luo_conoco&lt;/a&gt;. Yes, our goal is to cover as much as possible of the JSL operators when generating scoring code, but given the large number of operators in the language sometimes we rely on placeholders. We understand it puts a burden on our customers and we are sorry for that, but we believe it is a better alternative to not generating any code at all. It also allows us to get feedback on which operators we need to implement next.&lt;/P&gt;
&lt;P&gt;In this particular case, I am happy to report that &lt;STRONG&gt;we have already implemented support for ifMZ in JMP 15.2&lt;/STRONG&gt;. If you're able to upgrade, you will find that the scoring code for your boosted tree should work out of the box.&lt;/P&gt;
&lt;P&gt;If that is not possible, please note that you wouldn't have to implement it for every time the placeholder is used in the scoring code. You would only need to provide the definition for the placeholder function once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 23:55:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338118#M58597</guid>
      <dc:creator>nascif_jmp</dc:creator>
      <dc:date>2020-11-29T23:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: question about formula depot, Generate Python Code with error "Formula evaluation requires implementation of operator "IfMZ"</title>
      <link>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338120#M58598</link>
      <description>&lt;P&gt;Nascif,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help and glad to see jmp_score.py is updated :)&lt;/img&gt;&amp;nbsp; Just updated my JMP 15.2 and will try again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 00:49:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338120#M58598</guid>
      <dc:creator>lucy_luo_conoco</dc:creator>
      <dc:date>2020-11-30T00:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: question about formula depot, Generate Python Code with error "Formula evaluation requires implementation of operator "IfMZ"</title>
      <link>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338121#M58599</link>
      <description>&lt;P&gt;After updated JMP 15.2, it works great!&lt;/P&gt;&lt;P&gt;jmp_score.py add mz function&amp;nbsp;&lt;/P&gt;&lt;P&gt;got support and&amp;nbsp; help from Nascif again when I run into additional error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;just make sure to close/reopen Spyde/Jupter Notebook, and remove pyc files when you use updated jmp_score.py for mz function&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 01:37:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/question-about-formula-depot-Generate-Python-Code-with-error/m-p/338121#M58599</guid>
      <dc:creator>lucy_luo_conoco</dc:creator>
      <dc:date>2020-11-30T01:37:18Z</dc:date>
    </item>
  </channel>
</rss>

