<?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 Calculate Dice Similarity Coefficient - Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculate-dice-similarity-coefficient-python/m-p/551198#M43064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to determine how to calculate&amp;nbsp;the Dice Similarity Coefficient between two rasters. The one raster is the ground truth result of a road surface area, the second raster is the result from a Computer Vision and Machine Learning (Convolutional Neural Network). I'm trying to understand how the Dice Similarity Coefficient works so that I can replicate it as a Python\NumPy function to run against all the sample results and ground truth results that were manually determined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NB&lt;/STRONG&gt;: Id also like determine the following raster below which depicts True Positive; False Positive and False Negative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wikipedia: S&lt;A href="https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient"&gt;orensen-Dice Cofficient&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="391207" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/391207_pastedImage_1.png" style="width: 620px; height: 86px;" /&gt;&lt;/P&gt;&lt;P&gt;Raster Result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="391232" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/391232_pastedImage_2.png" style="width: 620px; height: 465px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2017 19:10:11 GMT</pubDate>
    <dc:creator>PeterWilson</dc:creator>
    <dc:date>2017-12-19T19:10:11Z</dc:date>
    <item>
      <title>Calculate Dice Similarity Coefficient - Python</title>
      <link>https://community.esri.com/t5/python-questions/calculate-dice-similarity-coefficient-python/m-p/551198#M43064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to determine how to calculate&amp;nbsp;the Dice Similarity Coefficient between two rasters. The one raster is the ground truth result of a road surface area, the second raster is the result from a Computer Vision and Machine Learning (Convolutional Neural Network). I'm trying to understand how the Dice Similarity Coefficient works so that I can replicate it as a Python\NumPy function to run against all the sample results and ground truth results that were manually determined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NB&lt;/STRONG&gt;: Id also like determine the following raster below which depicts True Positive; False Positive and False Negative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wikipedia: S&lt;A href="https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient"&gt;orensen-Dice Cofficient&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="391207" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/391207_pastedImage_1.png" style="width: 620px; height: 86px;" /&gt;&lt;/P&gt;&lt;P&gt;Raster Result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="391232" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/391232_pastedImage_2.png" style="width: 620px; height: 465px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 19:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-dice-similarity-coefficient-python/m-p/551198#M43064</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2017-12-19T19:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Dice Similarity Coefficient - Python</title>
      <link>https://community.esri.com/t5/python-questions/calculate-dice-similarity-coefficient-python/m-p/551199#M43065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;functionally equivalent I think... you will have SciPy installed if you are using recent versions of ArcMap or ArcGIS Pro.&amp;nbsp;&amp;nbsp; So if memory serves, check to see if this is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from scipy.spatial.distance import&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt; dice&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 19:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-dice-similarity-coefficient-python/m-p/551199#M43065</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-12-19T19:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Dice Similarity Coefficient - Python</title>
      <link>https://community.esri.com/t5/python-questions/calculate-dice-similarity-coefficient-python/m-p/551200#M43066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;, will check it out and get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 19:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-dice-similarity-coefficient-python/m-p/551200#M43066</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2017-12-19T19:29:30Z</dc:date>
    </item>
  </channel>
</rss>

