{
  "id": 99366,
  "title": "Multiprocess the structures dataframe using all 4 CPU cores",
  "url": "/competitions/champs-scalar-coupling/discussion/99366",
  "author_name": "",
  "post_date": "2019-07-10T17:55:20.427332300Z",
  "votes": 6,
  "comment_count": 1,
  "views": 0,
  "content": "<p>To start with, <a href=\"https://www.kaggle.com/daijin12/coulomb-interaction-high-perf-no-loop-almost\">Raphaël CC's kernel</a> can finish the computation of 5 nearest atoms' Coulomb interaction in just 8 hours for all molecules and for <code>H</code>, <code>C</code>, <code>O</code>, <code>N</code>, <code>F</code> atoms. </p>\n\n<p>However, if you wanna compute 8 or 9 nearest atoms, this kernel will time out since there are more than 10 <code>H</code> and <code>C</code> atoms in some molecules. The biggest reason is that <code>pandas</code> uses only 1 CPU core when manipulating dataframes. So I made a <a href=\"https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction\">parallel version of it</a>, where you can do even more complicated computation like Yukawa potentials for all molecules in under 4 hours.</p>\n\n<p>To use the output file, simple concat or merge it with the original structures, then merge it with the train and test dataframes, and you are good to go.</p>",
  "messages": [
    {
      "id": "572272",
      "postDate": "07/10/2019 17:55:20",
      "content": "<p>To start with, <a href=\"https://www.kaggle.com/daijin12/coulomb-interaction-high-perf-no-loop-almost\">Raphaël CC's kernel</a> can finish the computation of 5 nearest atoms' Coulomb interaction in just 8 hours for all molecules and for <code>H</code>, <code>C</code>, <code>O</code>, <code>N</code>, <code>F</code> atoms. </p>\n\n<p>However, if you wanna compute 8 or 9 nearest atoms, this kernel will time out since there are more than 10 <code>H</code> and <code>C</code> atoms in some molecules. The biggest reason is that <code>pandas</code> uses only 1 CPU core when manipulating dataframes. So I made a <a href=\"https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction\">parallel version of it</a>, where you can do even more complicated computation like Yukawa potentials for all molecules in under 4 hours.</p>\n\n<p>To use the output file, simple concat or merge it with the original structures, then merge it with the train and test dataframes, and you are good to go.</p>",
      "rawMarkdown": "To start with, [Raphaël CC's kernel](https://www.kaggle.com/daijin12/coulomb-interaction-high-perf-no-loop-almost) can finish the computation of 5 nearest atoms' Coulomb interaction in just 8 hours for all molecules and for `H`, `C`, `O`, `N`, `F` atoms. \n\nHowever, if you wanna compute 8 or 9 nearest atoms, this kernel will time out since there are more than 10 `H` and `C` atoms in some molecules. The biggest reason is that `pandas` uses only 1 CPU core when manipulating dataframes. So I made a [parallel version of it](https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction), where you can do even more complicated computation like Yukawa potentials for all molecules in under 4 hours.\n\nTo use the output file, simple concat or merge it with the original structures, then merge it with the train and test dataframes, and you are good to go.",
      "votes": null
    },
    {
      "id": "573983",
      "postDate": "07/13/2019 04:31:30",
      "content": "<p>Thanks it helps to run faster and its good for old processors which have low single CPU performance but good multi CPU.</p>",
      "rawMarkdown": "Thanks it helps to run faster and its good for old processors which have low single CPU performance but good multi CPU.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 573983,
      "author_name": "vaishvik25",
      "author_url": "",
      "post_date": "07/13/2019 04:31:30",
      "content": "<p>Thanks it helps to run faster and its good for old processors which have low single CPU performance but good multi CPU.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "572272": "To start with, [Raphaël CC's kernel](https://www.kaggle.com/daijin12/coulomb-interaction-high-perf-no-loop-almost) can finish the computation of 5 nearest atoms' Coulomb interaction in just 8 hours for all molecules and for `H`, `C`, `O`, `N`, `F` atoms. \n\nHowever, if you wanna compute 8 or 9 nearest atoms, this kernel will time out since there are more than 10 `H` and `C` atoms in some molecules. The biggest reason is that `pandas` uses only 1 CPU core when manipulating dataframes. So I made a [parallel version of it](https://www.kaggle.com/scaomath/parallelization-of-coulomb-yukawa-interaction), where you can do even more complicated computation like Yukawa potentials for all molecules in under 4 hours.\n\nTo use the output file, simple concat or merge it with the original structures, then merge it with the train and test dataframes, and you are good to go.",
    "573983": "Thanks it helps to run faster and its good for old processors which have low single CPU performance but good multi CPU."
  },
  "source": "meta"
}