<?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: Cosine similarity between all rows pairwise on a dataset of 100million rows in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15219#M9575</link>
    <description>&lt;P&gt;Is there a way to hash the record attributes so that the cartesian join can be avoided? I work on record similarity and fuzzy matching and we do a learning based blocking alorithm which hashes the records into smaller buckets and then the hashes are joined. You can check &lt;A href="https://github.com/zinggAI/zingg" target="test_blank"&gt;https://github.com/zinggAI/zingg&lt;/A&gt; for the approach. &lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 17:00:26 GMT</pubDate>
    <dc:creator>Sonal</dc:creator>
    <dc:date>2021-10-01T17:00:26Z</dc:date>
    <item>
      <title>Cosine similarity between all rows pairwise on a dataset of 100million rows</title>
      <link>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15215#M9571</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am facing performance issue while calculating cosine similarity in pyspark on a dataframe with around 100 million records.&lt;/P&gt;&lt;P&gt;I am trying to do a cross self join on the dataframe to calculate it.​&lt;/P&gt;&lt;P&gt;The executors are all having same number of tasks when seen on the spark ui.&lt;/P&gt;&lt;P&gt;The input size to all executors is also almost the same.&lt;/P&gt;&lt;P&gt;Executors : 20&lt;/P&gt;&lt;P&gt;Cores: 4 cores ​&lt;/P&gt;&lt;P&gt;Any inputs would be highly appreciated​&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 21:08:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15215#M9571</guid>
      <dc:creator>Databricks2005</dc:creator>
      <dc:date>2021-09-16T21:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cosine similarity between all rows pairwise on a dataset of 100million rows</title>
      <link>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15217#M9573</link>
      <description>&lt;P&gt;Thank you Kaniz !. I shall wait for an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 09:35:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15217#M9573</guid>
      <dc:creator>Databricks2005</dc:creator>
      <dc:date>2021-09-17T09:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cosine similarity between all rows pairwise on a dataset of 100million rows</title>
      <link>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15218#M9574</link>
      <description>&lt;P&gt;The issue is probably related to the self join between 100 million rows, I'm not positive without seeing the code and understanding the problem better but you may want to think about using windowing functions instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.knoldus.com/using-windows-in-spark-to-avoid-joins/" target="test_blank"&gt;https://blog.knoldus.com/using-windows-in-spark-to-avoid-joins/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 21:41:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15218#M9574</guid>
      <dc:creator>john_odwyer</dc:creator>
      <dc:date>2021-09-22T21:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cosine similarity between all rows pairwise on a dataset of 100million rows</title>
      <link>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15219#M9575</link>
      <description>&lt;P&gt;Is there a way to hash the record attributes so that the cartesian join can be avoided? I work on record similarity and fuzzy matching and we do a learning based blocking alorithm which hashes the records into smaller buckets and then the hashes are joined. You can check &lt;A href="https://github.com/zinggAI/zingg" target="test_blank"&gt;https://github.com/zinggAI/zingg&lt;/A&gt; for the approach. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 17:00:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cosine-similarity-between-all-rows-pairwise-on-a-dataset-of/m-p/15219#M9575</guid>
      <dc:creator>Sonal</dc:creator>
      <dc:date>2021-10-01T17:00:26Z</dc:date>
    </item>
  </channel>
</rss>

