{
  "id": 99759,
  "title": "Attention to Yukawa potential",
  "url": "/competitions/champs-scalar-coupling/discussion/99759",
  "author_name": "",
  "post_date": "2019-07-14T01:20:44.094534600Z",
  "votes": 23,
  "comment_count": 9,
  "views": 0,
  "content": "<p>For those who use <a href=\"https://www.kaggle.com/titericz\">Giba</a>'s submission:\n<a href=\"https://www.kaggle.com/titericz/giba-r-data-table-simple-features-1-17-lb\">Giba R + data.table + Simple Features -1.012 LB</a> \nwith score = -1.176 as a basis or/and the csv files later for blending or whatsoever.</p>\n\n<p>Please, pay attention that <strong>Yukawa potential</strong> is f=f(exp(-r)/r) and not f=f(exp(-r)). If am not wrong.</p>\n\n<p>Of course, the difference is not so high, might save computation time. But just needed to mention.</p>\n\n<p>So, pay attention to this part of codecode:</p>\n\n<blockquote>\n  <p>system.time(daij&lt;-aij[,.(coulomb=sum(1/d),vander=sum(1/d/d/d),yukawa=sum(<strong>exp(-d)</strong>)),by=.(molecule_name,atom_index,atj)])</p>\n</blockquote>\n\n<p>This can increase your score to &gt; <strong>+0.02</strong> or even a bit more (with correct input for blending).</p>\n\n<h2><strong>PS.</strong> *<em>Please upvote if helpful.</em>*</h2>\n\n<p>Below is the comparison plot [source: wikipedia]</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1788308%2F128345e42d8f0f2d70a4936c37e5e6ed%2FYukawa_coulomb_compare.svg.png?generation=1563067057464765&amp;alt=media\" alt=\"\"></p>",
  "messages": [
    {
      "id": "574494",
      "postDate": "07/14/2019 01:20:44",
      "content": "<p>For those who use <a href=\"https://www.kaggle.com/titericz\">Giba</a>'s submission:\n<a href=\"https://www.kaggle.com/titericz/giba-r-data-table-simple-features-1-17-lb\">Giba R + data.table + Simple Features -1.012 LB</a> \nwith score = -1.176 as a basis or/and the csv files later for blending or whatsoever.</p>\n\n<p>Please, pay attention that <strong>Yukawa potential</strong> is f=f(exp(-r)/r) and not f=f(exp(-r)). If am not wrong.</p>\n\n<p>Of course, the difference is not so high, might save computation time. But just needed to mention.</p>\n\n<p>So, pay attention to this part of codecode:</p>\n\n<blockquote>\n  <p>system.time(daij&lt;-aij[,.(coulomb=sum(1/d),vander=sum(1/d/d/d),yukawa=sum(<strong>exp(-d)</strong>)),by=.(molecule_name,atom_index,atj)])</p>\n</blockquote>\n\n<p>This can increase your score to &gt; <strong>+0.02</strong> or even a bit more (with correct input for blending).</p>\n\n<h2><strong>PS.</strong> *<em>Please upvote if helpful.</em>*</h2>\n\n<p>Below is the comparison plot [source: wikipedia]</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1788308%2F128345e42d8f0f2d70a4936c37e5e6ed%2FYukawa_coulomb_compare.svg.png?generation=1563067057464765&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "For those who use [Giba](https://www.kaggle.com/titericz)'s submission:\n[Giba R + data.table + Simple Features -1.012 LB](https://www.kaggle.com/titericz/giba-r-data-table-simple-features-1-17-lb) \nwith score = -1.176 as a basis or/and the csv files later for blending or whatsoever.\n\nPlease, pay attention that **Yukawa potential** is f=f(exp(-r)/r) and not f=f(exp(-r)). If am not wrong.\n\nOf course, the difference is not so high, might save computation time. But just needed to mention.\n\nSo, pay attention to this part of codecode:\n&gt; system.time(daij&lt;-aij[,.(coulomb=sum(1/d),vander=sum(1/d/d/d),yukawa=sum(**exp(-d)**)),by=.(molecule_name,atom_index,atj)])\n\nThis can increase your score to &gt; **+0.02** or even a bit more (with correct input for blending).\n\n## **PS.** **Please upvote if helpful.**\n\nBelow is the comparison plot [source: wikipedia]\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1788308%2F128345e42d8f0f2d70a4936c37e5e6ed%2FYukawa_coulomb_compare.svg.png?generation=1563067057464765&amp;alt=media)",
      "votes": null
    },
    {
      "id": "574968",
      "postDate": "07/14/2019 19:07:18",
      "content": "<p>In fact, there is a cut-off introduced in Yukawa potential where the nearer particle's influence has been favored more than particles that are farther away, moreover, the constant depends on the charges' product of two particles. I did an atom-wise approximation here: <a href=\"https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction\">Parallelization of Coulomb/Yukawa interaction</a>. Simply summing up all the <code>H</code> columns you get an approximated Yukawa potential, the ansatz used is that the interaction range cut-off is 0.5 times the maximum distance of a particle to the particle of interest. </p>\n\n<p>For the most accurate one, you still have to use Dirac's equation to solve for the bond state using the e^{-r}/r as potential (solving a nonlinear eigenvalue problem which I assume counts toward quantum mechanics method which is forbidden in this method). FWIW, I approximated the Dirac equation using the perturbation method for the first 10000 atoms in 1JHC (around 80000 training samples), and used the result as features for LGB, however, the CV score does not improve using LOFO.</p>",
      "rawMarkdown": "In fact, there is a cut-off introduced in Yukawa potential where the nearer particle's influence has been favored more than particles that are farther away, moreover, the constant depends on the charges' product of two particles. I did an atom-wise approximation here: [Parallelization of Coulomb/Yukawa interaction](https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction). Simply summing up all the `H` columns you get an approximated Yukawa potential, the ansatz used is that the interaction range cut-off is 0.5 times the maximum distance of a particle to the particle of interest. \n\nFor the most accurate one, you still have to use Dirac's equation to solve for the bond state using the e^{-r}/r as potential (solving a nonlinear eigenvalue problem which I assume counts toward quantum mechanics method which is forbidden in this method). FWIW, I approximated the Dirac equation using the perturbation method for the first 10000 atoms in 1JHC (around 80000 training samples), and used the result as features for LGB, however, the CV score does not improve using LOFO.",
      "votes": null
    },
    {
      "id": "575032",
      "postDate": "07/14/2019 23:30:53",
      "content": "<p>That's really interesting why the score was not affected positively. </p>",
      "rawMarkdown": "That's really interesting why the score was not affected positively.",
      "votes": null
    },
    {
      "id": "575056",
      "postDate": "07/15/2019 01:54:27",
      "content": "<p>What I meant to say was quantum computation vs the simple formula. Adding Yukawa potential itself will greatly boost certain types' CV.</p>",
      "rawMarkdown": "What I meant to say was quantum computation vs the simple formula. Adding Yukawa potential itself will greatly boost certain types' CV.",
      "votes": null
    },
    {
      "id": "575430",
      "postDate": "07/15/2019 11:56:57",
      "content": "<p>I understand that. I followed the simplicity since not so many people here are with a background in Physics. (Mine is in Theoretical Physics, Particle Physics)</p>",
      "rawMarkdown": "I understand that. I followed the simplicity since not so many people here are with a background in Physics. (Mine is in Theoretical Physics, Particle Physics)",
      "votes": null
    },
    {
      "id": "575438",
      "postDate": "07/15/2019 12:00:50",
      "content": "<p><a href=\"/scaomath\">@scaomath</a>  but thanks for the idea, I will check with other forces as well))</p>",
      "rawMarkdown": "scaomath  but thanks for the idea, I will check with other forces as well))",
      "votes": null
    },
    {
      "id": "577195",
      "postDate": "07/16/2019 13:19:40",
      "content": "<p>Anyone else tested the effect of this?</p>",
      "rawMarkdown": "Anyone else tested the effect of this?",
      "votes": null
    },
    {
      "id": "578617",
      "postDate": "07/18/2019 00:23:25",
      "content": "<p>i got: +0.017. maybe you should message Giba just in case he missed the discussion.</p>",
      "rawMarkdown": "i got: +0.017. maybe you should message Giba just in case he missed the discussion.",
      "votes": null
    },
    {
      "id": "578624",
      "postDate": "07/18/2019 00:32:56",
      "content": "<p>He upvoted this, so he knows I think. Glad to know that it helped. But as you see, to reach top10 the idea should be changed vastly and this was just corrections to minor results. </p>",
      "rawMarkdown": "He upvoted this, so he knows I think. Glad to know that it helped. But as you see, to reach top10 the idea should be changed vastly and this was just corrections to minor results.",
      "votes": null
    },
    {
      "id": "578628",
      "postDate": "07/18/2019 00:42:11",
      "content": "<p>Agree</p>",
      "rawMarkdown": "Agree",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 574968,
      "author_name": "scaomath",
      "author_url": "",
      "post_date": "07/14/2019 19:07:18",
      "content": "<p>In fact, there is a cut-off introduced in Yukawa potential where the nearer particle's influence has been favored more than particles that are farther away, moreover, the constant depends on the charges' product of two particles. I did an atom-wise approximation here: <a href=\"https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction\">Parallelization of Coulomb/Yukawa interaction</a>. Simply summing up all the <code>H</code> columns you get an approximated Yukawa potential, the ansatz used is that the interaction range cut-off is 0.5 times the maximum distance of a particle to the particle of interest. </p>\n\n<p>For the most accurate one, you still have to use Dirac's equation to solve for the bond state using the e^{-r}/r as potential (solving a nonlinear eigenvalue problem which I assume counts toward quantum mechanics method which is forbidden in this method). FWIW, I approximated the Dirac equation using the perturbation method for the first 10000 atoms in 1JHC (around 80000 training samples), and used the result as features for LGB, however, the CV score does not improve using LOFO.</p>",
      "votes": null,
      "replies": [
        {
          "id": 575032,
          "author_name": "muhakabartay",
          "author_url": "",
          "post_date": "07/14/2019 23:30:53",
          "content": "<p>That's really interesting why the score was not affected positively. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 575056,
          "author_name": "scaomath",
          "author_url": "",
          "post_date": "07/15/2019 01:54:27",
          "content": "<p>What I meant to say was quantum computation vs the simple formula. Adding Yukawa potential itself will greatly boost certain types' CV.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 575430,
          "author_name": "muhakabartay",
          "author_url": "",
          "post_date": "07/15/2019 11:56:57",
          "content": "<p>I understand that. I followed the simplicity since not so many people here are with a background in Physics. (Mine is in Theoretical Physics, Particle Physics)</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 575438,
          "author_name": "muhakabartay",
          "author_url": "",
          "post_date": "07/15/2019 12:00:50",
          "content": "<p><a href=\"/scaomath\">@scaomath</a>  but thanks for the idea, I will check with other forces as well))</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 577195,
      "author_name": "muhakabartay",
      "author_url": "",
      "post_date": "07/16/2019 13:19:40",
      "content": "<p>Anyone else tested the effect of this?</p>",
      "votes": null,
      "replies": [
        {
          "id": 578617,
          "author_name": "stocks",
          "author_url": "",
          "post_date": "07/18/2019 00:23:25",
          "content": "<p>i got: +0.017. maybe you should message Giba just in case he missed the discussion.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 578624,
          "author_name": "muhakabartay",
          "author_url": "",
          "post_date": "07/18/2019 00:32:56",
          "content": "<p>He upvoted this, so he knows I think. Glad to know that it helped. But as you see, to reach top10 the idea should be changed vastly and this was just corrections to minor results. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 578628,
          "author_name": "stocks",
          "author_url": "",
          "post_date": "07/18/2019 00:42:11",
          "content": "<p>Agree</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "574494": "For those who use [Giba](https://www.kaggle.com/titericz)'s submission:\n[Giba R + data.table + Simple Features -1.012 LB](https://www.kaggle.com/titericz/giba-r-data-table-simple-features-1-17-lb) \nwith score = -1.176 as a basis or/and the csv files later for blending or whatsoever.\n\nPlease, pay attention that **Yukawa potential** is f=f(exp(-r)/r) and not f=f(exp(-r)). If am not wrong.\n\nOf course, the difference is not so high, might save computation time. But just needed to mention.\n\nSo, pay attention to this part of codecode:\n&gt; system.time(daij&lt;-aij[,.(coulomb=sum(1/d),vander=sum(1/d/d/d),yukawa=sum(**exp(-d)**)),by=.(molecule_name,atom_index,atj)])\n\nThis can increase your score to &gt; **+0.02** or even a bit more (with correct input for blending).\n\n## **PS.** **Please upvote if helpful.**\n\nBelow is the comparison plot [source: wikipedia]\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1788308%2F128345e42d8f0f2d70a4936c37e5e6ed%2FYukawa_coulomb_compare.svg.png?generation=1563067057464765&amp;alt=media)",
    "574968": "In fact, there is a cut-off introduced in Yukawa potential where the nearer particle's influence has been favored more than particles that are farther away, moreover, the constant depends on the charges' product of two particles. I did an atom-wise approximation here: [Parallelization of Coulomb/Yukawa interaction](https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction). Simply summing up all the `H` columns you get an approximated Yukawa potential, the ansatz used is that the interaction range cut-off is 0.5 times the maximum distance of a particle to the particle of interest. \n\nFor the most accurate one, you still have to use Dirac's equation to solve for the bond state using the e^{-r}/r as potential (solving a nonlinear eigenvalue problem which I assume counts toward quantum mechanics method which is forbidden in this method). FWIW, I approximated the Dirac equation using the perturbation method for the first 10000 atoms in 1JHC (around 80000 training samples), and used the result as features for LGB, however, the CV score does not improve using LOFO.",
    "575032": "That's really interesting why the score was not affected positively.",
    "575056": "What I meant to say was quantum computation vs the simple formula. Adding Yukawa potential itself will greatly boost certain types' CV.",
    "575430": "I understand that. I followed the simplicity since not so many people here are with a background in Physics. (Mine is in Theoretical Physics, Particle Physics)",
    "575438": "scaomath  but thanks for the idea, I will check with other forces as well))",
    "577195": "Anyone else tested the effect of this?",
    "578617": "i got: +0.017. maybe you should message Giba just in case he missed the discussion.",
    "578624": "He upvoted this, so he knows I think. Glad to know that it helped. But as you see, to reach top10 the idea should be changed vastly and this was just corrections to minor results.",
    "578628": "Agree"
  },
  "source": "meta"
}