<?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 Nonlinear fit using loss function with penalty in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Nonlinear-fit-using-loss-function-with-penalty/m-p/873941#M103786</link>
    <description>&lt;P&gt;HI All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I need to do a nonlinear fit imposing a constraint equation to the parameters besides the range bounds. To do that,&amp;nbsp;I am using the nonlinear platform defining the loss function with penalty. I wrote the model formula in a column where I defined the fitting parameters and in an other column I defined the loss function I am trying to use. Below I report&amp;nbsp; &amp;nbsp;a description of the loss function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(:Y-:model)^2+lambda*(a - a1*exp(-b1/b2)-....-exp(-b1/b5))^2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a,a1,b1,b2,...,b5 are the fitting parameters defined in the model formula column. When I lunch the platform I obtain this message:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucaC_0-1747386920314.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75883iB4F770627CB98919/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucaC_0-1747386920314.png" alt="LucaC_0-1747386920314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does this mean it is not possible to use a loss function with penalty or am I doing something wrong?&amp;nbsp;Otherwise, how could I implement fitting with constraint equation for the parameters in JMP? Thanks in advance for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 09:23:35 GMT</pubDate>
    <dc:creator>LucaC</dc:creator>
    <dc:date>2025-05-16T09:23:35Z</dc:date>
    <item>
      <title>Nonlinear fit using loss function with penalty</title>
      <link>https://community.jmp.com/t5/Discussions/Nonlinear-fit-using-loss-function-with-penalty/m-p/873941#M103786</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I need to do a nonlinear fit imposing a constraint equation to the parameters besides the range bounds. To do that,&amp;nbsp;I am using the nonlinear platform defining the loss function with penalty. I wrote the model formula in a column where I defined the fitting parameters and in an other column I defined the loss function I am trying to use. Below I report&amp;nbsp; &amp;nbsp;a description of the loss function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(:Y-:model)^2+lambda*(a - a1*exp(-b1/b2)-....-exp(-b1/b5))^2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a,a1,b1,b2,...,b5 are the fitting parameters defined in the model formula column. When I lunch the platform I obtain this message:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucaC_0-1747386920314.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75883iB4F770627CB98919/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucaC_0-1747386920314.png" alt="LucaC_0-1747386920314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does this mean it is not possible to use a loss function with penalty or am I doing something wrong?&amp;nbsp;Otherwise, how could I implement fitting with constraint equation for the parameters in JMP? Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 09:23:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nonlinear-fit-using-loss-function-with-penalty/m-p/873941#M103786</guid>
      <dc:creator>LucaC</dc:creator>
      <dc:date>2025-05-16T09:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nonlinear fit using loss function with penalty</title>
      <link>https://community.jmp.com/t5/Discussions/Nonlinear-fit-using-loss-function-with-penalty/m-p/874104#M103801</link>
      <description>&lt;P&gt;I don't think that is related whether the formula has a penalty or not. But you mentioned that a, a1, ... are in Loss column, but defined in Model column, that does not look workable to me. Can you write the entire thing as a single formula, i.e. without the middle step of creating "Model" column?&lt;/P&gt;
&lt;P&gt;Such as, instead of write Model using a formula like xyz, you write a Loss column like this:&lt;/P&gt;
&lt;P&gt;Parameter({a=1, a1=2, ...}, (Y - xyz)^2 + lambda * (..... )^2 )&lt;/P&gt;
&lt;P&gt;And then you feed this column directly into Loss.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 17:23:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nonlinear-fit-using-loss-function-with-penalty/m-p/874104#M103801</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2025-05-16T17:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nonlinear fit using loss function with penalty</title>
      <link>https://community.jmp.com/t5/Discussions/Nonlinear-fit-using-loss-function-with-penalty/m-p/874108#M103804</link>
      <description>&lt;P&gt;see this discussion: &amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Nonlinear-platform-custom-loss-function-shrinkage-estimation/m-p/843984" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Nonlinear-platform-custom-loss-function-shrinkage-estimation/m-p/843984&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 18:04:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nonlinear-fit-using-loss-function-with-penalty/m-p/874108#M103804</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2025-05-16T18:04:54Z</dc:date>
    </item>
  </channel>
</rss>

