<?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: How to apply JMP models to a GeoTIFF using Python ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-apply-JMP-models-to-a-GeoTIFF-using-Python/m-p/575332#M78368</link>
    <description>&lt;P&gt;a common problem is with the location of the jmp_score.py file&lt;/P&gt;
&lt;P&gt;The header of your JMP Pyton model should something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;from __future__ import division
import jmp_score as jmp
from math import *
import numpy as np&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;On a Mac, the default path is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Library/Application Support/JMP/17/scoring/Python/jmp_score.py&lt;/P&gt;
&lt;P&gt;I usually just throw this file in the same folder as the model file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 21:10:21 GMT</pubDate>
    <dc:creator>Byron_JMP</dc:creator>
    <dc:date>2022-11-30T21:10:21Z</dc:date>
    <item>
      <title>How to apply JMP models to a GeoTIFF using Python ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-apply-JMP-models-to-a-GeoTIFF-using-Python/m-p/574957#M78355</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my issue :&lt;/P&gt;&lt;P&gt;I extracted a point cloud from some large raster datasets to find a good predictive model. Thus, I used &lt;EM&gt;JMP&lt;/EM&gt; which worked really well. However, the models' equations (The best results were obtained using &lt;STRONG&gt;Boosted Tree&lt;/STRONG&gt; and &lt;STRONG&gt;Boostrap Forest&lt;/STRONG&gt;) are pretty complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have to apply the equation to an entire raster (which is a GeoTIFF). I tried exporting the &lt;EM&gt;Python&lt;/EM&gt; script but I am stuck. I wanted to work on &lt;EM&gt;Spyder&lt;/EM&gt; and use the &lt;STRONG&gt;rasterio&lt;/STRONG&gt; library to import my GeoTIFF but &lt;EM&gt;Spyder&lt;/EM&gt; doesn't recognize jmp library and the script is way too long and complicated. It takes too much time to run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have any idea on how I could solve this issue and apply the equation to my GeoTIFF ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is clear... Thank you for your time and answers. Have a nice day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alyson&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:53:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-apply-JMP-models-to-a-GeoTIFF-using-Python/m-p/574957#M78355</guid>
      <dc:creator>BathyAly</dc:creator>
      <dc:date>2023-06-10T20:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply JMP models to a GeoTIFF using Python ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-apply-JMP-models-to-a-GeoTIFF-using-Python/m-p/575332#M78368</link>
      <description>&lt;P&gt;a common problem is with the location of the jmp_score.py file&lt;/P&gt;
&lt;P&gt;The header of your JMP Pyton model should something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;from __future__ import division
import jmp_score as jmp
from math import *
import numpy as np&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;On a Mac, the default path is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Library/Application Support/JMP/17/scoring/Python/jmp_score.py&lt;/P&gt;
&lt;P&gt;I usually just throw this file in the same folder as the model file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 21:10:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-apply-JMP-models-to-a-GeoTIFF-using-Python/m-p/575332#M78368</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2022-11-30T21:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply JMP models to a GeoTIFF using Python ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-apply-JMP-models-to-a-GeoTIFF-using-Python/m-p/578438#M78583</link>
      <description>&lt;P&gt;Thank you very much for your answer ! I managed to solve my problem :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 09:39:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-apply-JMP-models-to-a-GeoTIFF-using-Python/m-p/578438#M78583</guid>
      <dc:creator>BathyAly</dc:creator>
      <dc:date>2022-12-07T09:39:04Z</dc:date>
    </item>
  </channel>
</rss>

