{
  "id": 331207,
  "title": "What do we know so far? - A summary of the top discussions topics",
  "url": "/competitions/AI4Code/discussion/331207",
  "author_name": "",
  "post_date": "2022-06-16T07:17:40.517285700Z",
  "votes": 44,
  "comment_count": 2,
  "views": 0,
  "content": "<h4>What do we know so far? - A summary of the topic of the top discussion topics</h4>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/327740\" target=\"_blank\">Fractal markdown distribution</a></p>\n<ul>\n<li><p>by <a href=\"jagofc\" target=\"_blank\">jagofc</a></p></li>\n<li><p>The rate of markdown cells in a notebook/number of cells in general looks like a fractal</p></li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324588\" target=\"_blank\">Flax Code Query embeddings</a><br>\nby <a href=\"jdoesv\" target=\"_blank\">jdoesv</a></p>\n<ul>\n<li>[Finding: <strong>Positive</strong>] There's an SBERT model that generates code and query vectors in a neutral space trained. The model is available <a href=\"https://huggingface.co/flax-sentence-embeddings/st-codesearch-distilroberta-base\" target=\"_blank\">here</a>. Anyone who wants to take the semantic search route in this competition will find it quite useful.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324608\" target=\"_blank\">Language of markdowns</a><br>\nby <a href=\"nofreewill\" target=\"_blank\">nofreewill</a></p>\n<ul>\n<li>On the final set there will be will be multiple languages represented. Not just english.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325272\" target=\"_blank\">About loss function and better score</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>MSE loss and L1 loss functions were compared and discussed in the notebook.</li>\n<li>MSELoss seems to be not a good loss function for this competition, for the reason that the distribution of predictions made by the model trained by MSELoss is not normally distributed, and far from the distribution of the ground truth labels.</li>\n<li>L1Loss seems to be a better loss function for this competition, for the reason that the distribution of predictions made by the model trained by L1Loss is similar to the distribution of the ground truth labels.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324509\" target=\"_blank\">Textual Similarity Approach</a><br>\nby <a href=\"sudalairajkumar\" target=\"_blank\">sudalairajkumar</a></p>\n<p><strong>Proposed some text simillarity approaches to solve this competition:</strong></p>\n<ul>\n<li>One possible approach is to use the textual similarity between the code and the markdown cells to identify whether they are next to each other or not.</li>\n<li>We can rank-order the pairs based on the similarity score and then select the top markdown cell as the next / previous cell.</li>\n<li>We also need to way to find out whether the markdown cell is the previous or next cell to the give code cell once we find the similarity</li>\n<li>We also need to have a cutoff if we use this approach since some of the code cells may not have markdown cells next to it.</li>\n<li>We may also get consecutive markdown cells and so we need to find a way to deal with this scenario as well.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325779\" target=\"_blank\">Cleaning and Preprocessing Markdown cells</a><br>\nby <a href=\"usaiprashanth\" target=\"_blank\">usaiprashanth</a></p>\n<ul>\n<li>Found this amazing <a href=\"https://gist.github.com/lorey/eb15a7f3338f959a78cc3661fbc255fe\" target=\"_blank\">gist</a> on github which recovers plain text from any markdown (or) markdown+html cells</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325560\" target=\"_blank\">Textual Entailment Approach</a><br>\nby <a href=\"sudalairajkumar\" target=\"_blank\">sudalairajkumar</a></p>\n<ul>\n<li>Proposed yet another another potential approach: <a href=\"https://en.wikipedia.org/wiki/Textual_entailment\" target=\"_blank\">Textual Entailment based methods</a>.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/328905\" target=\"_blank\">My understanding of the domain - Taking a step back</a><br>\nby <a href=\"allohvk\" target=\"_blank\">allohvk</a></p>\n<ul>\n<li>Discussed the topic in general</li>\n<li>Learning to Rank framework</li>\n<li>Code-Aware Language Models</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325205\" target=\"_blank\">real world application for this model</a><br>\nby <a href=\"superching\" target=\"_blank\">superching</a></p>\n<ul>\n<li>Discussed if the competition had any real value to the real world since when we have both the code and the documentation for the code, well.. we have both.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/327197\" target=\"_blank\">Hint for a simple but stronger pairwise model baseline</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<p>Shared some ideas and methods for improving any pairwise model:</p>\n<ul>\n<li>Pretraining</li>\n<li>Sampling strategy</li>\n<li>Better embedding for cells</li>\n<li>Better ranking strategy.</li>\n<li>Global context information</li>\n<li>Post-processing</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324476\" target=\"_blank\">Kendall’s Tau (Kendall Rank Correlation Coefficient)</a><br>\nby <a href=\"mpwolke\" target=\"_blank\">mpwolke</a></p>\n<ul>\n<li>Explained the Kendall tau rank correlation metric</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/329848\" target=\"_blank\">What if you don't have high-end GPU?</a><br>\nby <a href=\"locbaop\" target=\"_blank\">locbaop</a></p>\n<ul>\n<li>Discussed options to consider if one doesn't have a GPU.</li>\n<li>The thread itself is very interesting the different solutions had been proposed by the members of the community.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/326473\" target=\"_blank\">Pairwise model baseline</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>Shared both a pairwise and pointwise baseline</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325725\" target=\"_blank\">Some papers that might help</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>Shared 3 different papers about sentence ordering that can be useful for this competition</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324813\" target=\"_blank\">The code cells are not shuffled</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>Highlighted an important part of the competition's description:</li>\n</ul>\n<blockquote>\n  <p>Your task is to predict the correct ordering of the cells in a given notebook whose markdown cells have been shuffled.</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324554\" target=\"_blank\">Ideas for Generating New Data 💡 </a> <br>\nby <a href=\"ruchi798\" target=\"_blank\">ruchi798</a></p>\n<ul>\n<li>Proposed 3 methods to generate more data:</li>\n</ul>\n<ol>\n<li>Code -&gt; Comments</li>\n<li>Comments -&gt; Code</li>\n<li>External data</li>\n</ol>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324470\" target=\"_blank\">Pretrained Python Models on HuggingFace 🤗</a> <br>\nby <a href=\"snnclsr\" target=\"_blank\">snnclsr</a></p>\n<ul>\n<li>Shared a huge list of pretrained model from huggingface</li>\n</ul>\n<hr>",
  "messages": [
    {
      "id": "1822248",
      "postDate": "06/16/2022 07:17:40",
      "content": "<h4>What do we know so far? - A summary of the topic of the top discussion topics</h4>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/327740\" target=\"_blank\">Fractal markdown distribution</a></p>\n<ul>\n<li><p>by <a href=\"jagofc\" target=\"_blank\">jagofc</a></p></li>\n<li><p>The rate of markdown cells in a notebook/number of cells in general looks like a fractal</p></li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324588\" target=\"_blank\">Flax Code Query embeddings</a><br>\nby <a href=\"jdoesv\" target=\"_blank\">jdoesv</a></p>\n<ul>\n<li>[Finding: <strong>Positive</strong>] There's an SBERT model that generates code and query vectors in a neutral space trained. The model is available <a href=\"https://huggingface.co/flax-sentence-embeddings/st-codesearch-distilroberta-base\" target=\"_blank\">here</a>. Anyone who wants to take the semantic search route in this competition will find it quite useful.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324608\" target=\"_blank\">Language of markdowns</a><br>\nby <a href=\"nofreewill\" target=\"_blank\">nofreewill</a></p>\n<ul>\n<li>On the final set there will be will be multiple languages represented. Not just english.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325272\" target=\"_blank\">About loss function and better score</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>MSE loss and L1 loss functions were compared and discussed in the notebook.</li>\n<li>MSELoss seems to be not a good loss function for this competition, for the reason that the distribution of predictions made by the model trained by MSELoss is not normally distributed, and far from the distribution of the ground truth labels.</li>\n<li>L1Loss seems to be a better loss function for this competition, for the reason that the distribution of predictions made by the model trained by L1Loss is similar to the distribution of the ground truth labels.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324509\" target=\"_blank\">Textual Similarity Approach</a><br>\nby <a href=\"sudalairajkumar\" target=\"_blank\">sudalairajkumar</a></p>\n<p><strong>Proposed some text simillarity approaches to solve this competition:</strong></p>\n<ul>\n<li>One possible approach is to use the textual similarity between the code and the markdown cells to identify whether they are next to each other or not.</li>\n<li>We can rank-order the pairs based on the similarity score and then select the top markdown cell as the next / previous cell.</li>\n<li>We also need to way to find out whether the markdown cell is the previous or next cell to the give code cell once we find the similarity</li>\n<li>We also need to have a cutoff if we use this approach since some of the code cells may not have markdown cells next to it.</li>\n<li>We may also get consecutive markdown cells and so we need to find a way to deal with this scenario as well.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325779\" target=\"_blank\">Cleaning and Preprocessing Markdown cells</a><br>\nby <a href=\"usaiprashanth\" target=\"_blank\">usaiprashanth</a></p>\n<ul>\n<li>Found this amazing <a href=\"https://gist.github.com/lorey/eb15a7f3338f959a78cc3661fbc255fe\" target=\"_blank\">gist</a> on github which recovers plain text from any markdown (or) markdown+html cells</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325560\" target=\"_blank\">Textual Entailment Approach</a><br>\nby <a href=\"sudalairajkumar\" target=\"_blank\">sudalairajkumar</a></p>\n<ul>\n<li>Proposed yet another another potential approach: <a href=\"https://en.wikipedia.org/wiki/Textual_entailment\" target=\"_blank\">Textual Entailment based methods</a>.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/328905\" target=\"_blank\">My understanding of the domain - Taking a step back</a><br>\nby <a href=\"allohvk\" target=\"_blank\">allohvk</a></p>\n<ul>\n<li>Discussed the topic in general</li>\n<li>Learning to Rank framework</li>\n<li>Code-Aware Language Models</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325205\" target=\"_blank\">real world application for this model</a><br>\nby <a href=\"superching\" target=\"_blank\">superching</a></p>\n<ul>\n<li>Discussed if the competition had any real value to the real world since when we have both the code and the documentation for the code, well.. we have both.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/327197\" target=\"_blank\">Hint for a simple but stronger pairwise model baseline</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<p>Shared some ideas and methods for improving any pairwise model:</p>\n<ul>\n<li>Pretraining</li>\n<li>Sampling strategy</li>\n<li>Better embedding for cells</li>\n<li>Better ranking strategy.</li>\n<li>Global context information</li>\n<li>Post-processing</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324476\" target=\"_blank\">Kendall’s Tau (Kendall Rank Correlation Coefficient)</a><br>\nby <a href=\"mpwolke\" target=\"_blank\">mpwolke</a></p>\n<ul>\n<li>Explained the Kendall tau rank correlation metric</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/329848\" target=\"_blank\">What if you don't have high-end GPU?</a><br>\nby <a href=\"locbaop\" target=\"_blank\">locbaop</a></p>\n<ul>\n<li>Discussed options to consider if one doesn't have a GPU.</li>\n<li>The thread itself is very interesting the different solutions had been proposed by the members of the community.</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/326473\" target=\"_blank\">Pairwise model baseline</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>Shared both a pairwise and pointwise baseline</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/325725\" target=\"_blank\">Some papers that might help</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>Shared 3 different papers about sentence ordering that can be useful for this competition</li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324813\" target=\"_blank\">The code cells are not shuffled</a><br>\nby <a href=\"yuanzhezhou\" target=\"_blank\">yuanzhezhou</a></p>\n<ul>\n<li>Highlighted an important part of the competition's description:</li>\n</ul>\n<blockquote>\n  <p>Your task is to predict the correct ordering of the cells in a given notebook whose markdown cells have been shuffled.</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324554\" target=\"_blank\">Ideas for Generating New Data 💡 </a> <br>\nby <a href=\"ruchi798\" target=\"_blank\">ruchi798</a></p>\n<ul>\n<li>Proposed 3 methods to generate more data:</li>\n</ul>\n<ol>\n<li>Code -&gt; Comments</li>\n<li>Comments -&gt; Code</li>\n<li>External data</li>\n</ol>\n<p><a href=\"https://www.kaggle.com/competitions/AI4Code/discussion/324470\" target=\"_blank\">Pretrained Python Models on HuggingFace 🤗</a> <br>\nby <a href=\"snnclsr\" target=\"_blank\">snnclsr</a></p>\n<ul>\n<li>Shared a huge list of pretrained model from huggingface</li>\n</ul>\n<hr>",
      "rawMarkdown": "#### What do we know so far? - A summary of the topic of the top discussion topics\n\n[Fractal markdown distribution](https://www.kaggle.com/competitions/AI4Code/discussion/327740)\n- by [jagofc](jagofc)\n\n- The rate of markdown cells in a notebook/number of cells in general looks like a fractal\n\n[Flax Code Query embeddings](https://www.kaggle.com/competitions/AI4Code/discussion/324588)\nby [jdoesv](jdoesv)\n\n- [Finding: **Positive**] There's an SBERT model that generates code and query vectors in a neutral space trained. The model is available [here](https://huggingface.co/flax-sentence-embeddings/st-codesearch-distilroberta-base). Anyone who wants to take the semantic search route in this competition will find it quite useful.\n\n[Language of markdowns](https://www.kaggle.com/competitions/AI4Code/discussion/324608)\nby [nofreewill](nofreewill)\n\n- On the final set there will be will be multiple languages represented. Not just english.\n\n[About loss function and better score](https://www.kaggle.com/competitions/AI4Code/discussion/325272)\nby [yuanzhezhou](yuanzhezhou)\n\n- MSE loss and L1 loss functions were compared and discussed in the notebook.\n- MSELoss seems to be not a good loss function for this competition, for the reason that the distribution of predictions made by the model trained by MSELoss is not normally distributed, and far from the distribution of the ground truth labels.\n- L1Loss seems to be a better loss function for this competition, for the reason that the distribution of predictions made by the model trained by L1Loss is similar to the distribution of the ground truth labels.\n\n[Textual Similarity Approach](https://www.kaggle.com/competitions/AI4Code/discussion/324509)\nby [sudalairajkumar](sudalairajkumar)\n\n**Proposed some text simillarity approaches to solve this competition:**\n\n- One possible approach is to use the textual similarity between the code and the markdown cells to identify whether they are next to each other or not.\n- We can rank-order the pairs based on the similarity score and then select the top markdown cell as the next / previous cell.\n- We also need to way to find out whether the markdown cell is the previous or next cell to the give code cell once we find the similarity\n- We also need to have a cutoff if we use this approach since some of the code cells may not have markdown cells next to it.\n- We may also get consecutive markdown cells and so we need to find a way to deal with this scenario as well.\n\n[Cleaning and Preprocessing Markdown cells](https://www.kaggle.com/competitions/AI4Code/discussion/325779)\nby [usaiprashanth](usaiprashanth)\n\n- Found this amazing [gist](https://gist.github.com/lorey/eb15a7f3338f959a78cc3661fbc255fe) on github which recovers plain text from any markdown (or) markdown+html cells\n\n[Textual Entailment Approach](https://www.kaggle.com/competitions/AI4Code/discussion/325560)\nby [sudalairajkumar](sudalairajkumar)\n\n- Proposed yet another another potential approach: [Textual Entailment based methods](https://en.wikipedia.org/wiki/Textual_entailment).\n\n[My understanding of the domain - Taking a step back](https://www.kaggle.com/competitions/AI4Code/discussion/328905)\nby [allohvk](allohvk)\n\n- Discussed the topic in general\n- Learning to Rank framework\n- Code-Aware Language Models\n\n[real world application for this model](https://www.kaggle.com/competitions/AI4Code/discussion/325205)\nby [superching](superching)\n\n- Discussed if the competition had any real value to the real world since when we have both the code and the documentation for the code, well.. we have both.\n\n[Hint for a simple but stronger pairwise model baseline](https://www.kaggle.com/competitions/AI4Code/discussion/327197)\nby [yuanzhezhou](yuanzhezhou)\n\nShared some ideas and methods for improving any pairwise model:\n- Pretraining\n- Sampling strategy\n- Better embedding for cells\n- Better ranking strategy.\n- Global context information\n- Post-processing\n\n[Kendall’s Tau (Kendall Rank Correlation Coefficient)](https://www.kaggle.com/competitions/AI4Code/discussion/324476)\nby [mpwolke](mpwolke)\n\n- Explained the Kendall tau rank correlation metric\n\n[What if you don't have high-end GPU?](https://www.kaggle.com/competitions/AI4Code/discussion/329848)\nby [locbaop](locbaop)\n\n- Discussed options to consider if one doesn't have a GPU.\n- The thread itself is very interesting the different solutions had been proposed by the members of the community.\n\n[Pairwise model baseline](https://www.kaggle.com/competitions/AI4Code/discussion/326473)\nby [yuanzhezhou](yuanzhezhou)\n\n- Shared both a pairwise and pointwise baseline\n\n[Some papers that might help](https://www.kaggle.com/competitions/AI4Code/discussion/325725)\nby [yuanzhezhou](yuanzhezhou)\n\n- Shared 3 different papers about sentence ordering that can be useful for this competition\n\n[The code cells are not shuffled](https://www.kaggle.com/competitions/AI4Code/discussion/324813)\nby [yuanzhezhou](yuanzhezhou)\n\n- Highlighted an important part of the competition's description:\n> Your task is to predict the correct ordering of the cells in a given notebook whose markdown cells have been shuffled.\n\n[Ideas for Generating New Data 💡 ](https://www.kaggle.com/competitions/AI4Code/discussion/324554) \nby [ruchi798](ruchi798)\n\n- Proposed 3 methods to generate more data:\n1. Code -> Comments\n2. Comments -> Code\n3. External data\n\n[Pretrained Python Models on HuggingFace 🤗](https://www.kaggle.com/competitions/AI4Code/discussion/324470) \nby [snnclsr](snnclsr)\n\n- Shared a huge list of pretrained model from huggingface\n\n---",
      "votes": null
    },
    {
      "id": "1829605",
      "postDate": "06/22/2022 18:52:16",
      "content": "<p>Proposed 3 methods to generate more data:<br>\nCode -&gt; Comments<br>\nComments -&gt; Code<br>\nExternal data </p>",
      "rawMarkdown": "Proposed 3 methods to generate more data:\nCode -> Comments\nComments -> Code\nExternal data",
      "votes": null
    },
    {
      "id": "1829790",
      "postDate": "06/22/2022 23:42:39",
      "content": "<p><a href=\"https://www.kaggle.com/thedevastator\" target=\"_blank\">@thedevastator</a> Valuable Summary!</p>",
      "rawMarkdown": "thedevastator Valuable Summary!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1829605,
      "author_name": "kanisfatemashanta",
      "author_url": "",
      "post_date": "06/22/2022 18:52:16",
      "content": "<p>Proposed 3 methods to generate more data:<br>\nCode -&gt; Comments<br>\nComments -&gt; Code<br>\nExternal data </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1829790,
      "author_name": "apurbapandey",
      "author_url": "",
      "post_date": "06/22/2022 23:42:39",
      "content": "<p><a href=\"https://www.kaggle.com/thedevastator\" target=\"_blank\">@thedevastator</a> Valuable Summary!</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1822248": "#### What do we know so far? - A summary of the topic of the top discussion topics\n\n[Fractal markdown distribution](https://www.kaggle.com/competitions/AI4Code/discussion/327740)\n- by [jagofc](jagofc)\n\n- The rate of markdown cells in a notebook/number of cells in general looks like a fractal\n\n[Flax Code Query embeddings](https://www.kaggle.com/competitions/AI4Code/discussion/324588)\nby [jdoesv](jdoesv)\n\n- [Finding: **Positive**] There's an SBERT model that generates code and query vectors in a neutral space trained. The model is available [here](https://huggingface.co/flax-sentence-embeddings/st-codesearch-distilroberta-base). Anyone who wants to take the semantic search route in this competition will find it quite useful.\n\n[Language of markdowns](https://www.kaggle.com/competitions/AI4Code/discussion/324608)\nby [nofreewill](nofreewill)\n\n- On the final set there will be will be multiple languages represented. Not just english.\n\n[About loss function and better score](https://www.kaggle.com/competitions/AI4Code/discussion/325272)\nby [yuanzhezhou](yuanzhezhou)\n\n- MSE loss and L1 loss functions were compared and discussed in the notebook.\n- MSELoss seems to be not a good loss function for this competition, for the reason that the distribution of predictions made by the model trained by MSELoss is not normally distributed, and far from the distribution of the ground truth labels.\n- L1Loss seems to be a better loss function for this competition, for the reason that the distribution of predictions made by the model trained by L1Loss is similar to the distribution of the ground truth labels.\n\n[Textual Similarity Approach](https://www.kaggle.com/competitions/AI4Code/discussion/324509)\nby [sudalairajkumar](sudalairajkumar)\n\n**Proposed some text simillarity approaches to solve this competition:**\n\n- One possible approach is to use the textual similarity between the code and the markdown cells to identify whether they are next to each other or not.\n- We can rank-order the pairs based on the similarity score and then select the top markdown cell as the next / previous cell.\n- We also need to way to find out whether the markdown cell is the previous or next cell to the give code cell once we find the similarity\n- We also need to have a cutoff if we use this approach since some of the code cells may not have markdown cells next to it.\n- We may also get consecutive markdown cells and so we need to find a way to deal with this scenario as well.\n\n[Cleaning and Preprocessing Markdown cells](https://www.kaggle.com/competitions/AI4Code/discussion/325779)\nby [usaiprashanth](usaiprashanth)\n\n- Found this amazing [gist](https://gist.github.com/lorey/eb15a7f3338f959a78cc3661fbc255fe) on github which recovers plain text from any markdown (or) markdown+html cells\n\n[Textual Entailment Approach](https://www.kaggle.com/competitions/AI4Code/discussion/325560)\nby [sudalairajkumar](sudalairajkumar)\n\n- Proposed yet another another potential approach: [Textual Entailment based methods](https://en.wikipedia.org/wiki/Textual_entailment).\n\n[My understanding of the domain - Taking a step back](https://www.kaggle.com/competitions/AI4Code/discussion/328905)\nby [allohvk](allohvk)\n\n- Discussed the topic in general\n- Learning to Rank framework\n- Code-Aware Language Models\n\n[real world application for this model](https://www.kaggle.com/competitions/AI4Code/discussion/325205)\nby [superching](superching)\n\n- Discussed if the competition had any real value to the real world since when we have both the code and the documentation for the code, well.. we have both.\n\n[Hint for a simple but stronger pairwise model baseline](https://www.kaggle.com/competitions/AI4Code/discussion/327197)\nby [yuanzhezhou](yuanzhezhou)\n\nShared some ideas and methods for improving any pairwise model:\n- Pretraining\n- Sampling strategy\n- Better embedding for cells\n- Better ranking strategy.\n- Global context information\n- Post-processing\n\n[Kendall’s Tau (Kendall Rank Correlation Coefficient)](https://www.kaggle.com/competitions/AI4Code/discussion/324476)\nby [mpwolke](mpwolke)\n\n- Explained the Kendall tau rank correlation metric\n\n[What if you don't have high-end GPU?](https://www.kaggle.com/competitions/AI4Code/discussion/329848)\nby [locbaop](locbaop)\n\n- Discussed options to consider if one doesn't have a GPU.\n- The thread itself is very interesting the different solutions had been proposed by the members of the community.\n\n[Pairwise model baseline](https://www.kaggle.com/competitions/AI4Code/discussion/326473)\nby [yuanzhezhou](yuanzhezhou)\n\n- Shared both a pairwise and pointwise baseline\n\n[Some papers that might help](https://www.kaggle.com/competitions/AI4Code/discussion/325725)\nby [yuanzhezhou](yuanzhezhou)\n\n- Shared 3 different papers about sentence ordering that can be useful for this competition\n\n[The code cells are not shuffled](https://www.kaggle.com/competitions/AI4Code/discussion/324813)\nby [yuanzhezhou](yuanzhezhou)\n\n- Highlighted an important part of the competition's description:\n> Your task is to predict the correct ordering of the cells in a given notebook whose markdown cells have been shuffled.\n\n[Ideas for Generating New Data 💡 ](https://www.kaggle.com/competitions/AI4Code/discussion/324554) \nby [ruchi798](ruchi798)\n\n- Proposed 3 methods to generate more data:\n1. Code -> Comments\n2. Comments -> Code\n3. External data\n\n[Pretrained Python Models on HuggingFace 🤗](https://www.kaggle.com/competitions/AI4Code/discussion/324470) \nby [snnclsr](snnclsr)\n\n- Shared a huge list of pretrained model from huggingface\n\n---",
    "1829605": "Proposed 3 methods to generate more data:\nCode -> Comments\nComments -> Code\nExternal data",
    "1829790": "thedevastator Valuable Summary!"
  },
  "source": "meta"
}