{
  "id": 68148,
  "title": "Are you using Parallelism?",
  "url": "/competitions/ga-customer-revenue-prediction/discussion/68148",
  "author_name": "",
  "post_date": "2018-10-09T19:53:04.263272200Z",
  "votes": 1,
  "comment_count": 11,
  "views": 0,
  "content": "<p>I wonder whether you are using parallelism in order to make your code run faster. I am using a local computer having i7 processor, 4 cores and 8 threads. However, the running time looks so big for me. Are you using <em>multiprocessing</em> module in Python or any other library to accelerate your training ?</p>",
  "messages": [
    {
      "id": "401306",
      "postDate": "10/09/2018 19:53:04",
      "content": "<p>I wonder whether you are using parallelism in order to make your code run faster. I am using a local computer having i7 processor, 4 cores and 8 threads. However, the running time looks so big for me. Are you using <em>multiprocessing</em> module in Python or any other library to accelerate your training ?</p>",
      "rawMarkdown": "I wonder whether you are using parallelism in order to make your code run faster. I am using a local computer having i7 processor, 4 cores and 8 threads. However, the running time looks so big for me. Are you using *multiprocessing* module in Python or any other library to accelerate your training ?",
      "votes": null
    },
    {
      "id": "401327",
      "postDate": "10/09/2018 21:09:19",
      "content": "<p>Just for running the model (lightgbm, xgboost, tensorflow...), which you can set in the model parameters to 4. For the pipeline you can use pandas with python's multiprocessing library or <a href=\"https://dask.org/\">Dask</a>, but I dont think it is necessary in this competition. If a group of feature is taking too long to process you can pre-save with pickle or feather.</p>\n\n<p>For the number of jobs, I don't know if using more than the number of physical cores does help</p>",
      "rawMarkdown": "Just for running the model (lightgbm, xgboost, tensorflow...), which you can set in the model parameters to 4. For the pipeline you can use pandas with python's multiprocessing library or [Dask][1], but I dont think it is necessary in this competition. If a group of feature is taking too long to process you can pre-save with pickle or feather.\n\nFor the number of jobs, I don't know if using more than the number of physical cores does help\n\n\n  [1]: https://dask.org/",
      "votes": null
    },
    {
      "id": "401343",
      "postDate": "10/09/2018 21:48:41",
      "content": "<p>Are you running R or python? </p>\n\n<p>If you have a look at some of the great kernels from Olivier (<a href=\"https://www.kaggle.com/ogrellier\">https://www.kaggle.com/ogrellier</a>) the runtime is ca. 811 seconds (example <a href=\"https://www.kaggle.com/ogrellier/i-have-seen-the-future/notebook\">https://www.kaggle.com/ogrellier/i-have-seen-the-future/notebook</a>). </p>\n\n<p>In R also some scripts with ca. 500 seconds run time (example <a href=\"https://www.kaggle.com/pratikmirani/pmlightgbm-in-r-time-based-cv/code\">https://www.kaggle.com/pratikmirani/pmlightgbm-in-r-time-based-cv/code</a>).</p>\n\n<p>In my humble opinion this is quite fast. Maybe you can have a look and see how it was done.</p>",
      "rawMarkdown": "Are you running R or python? \n\nIf you have a look at some of the great kernels from Olivier (https://www.kaggle.com/ogrellier) the runtime is ca. 811 seconds (example https://www.kaggle.com/ogrellier/i-have-seen-the-future/notebook). \n\nIn R also some scripts with ca. 500 seconds run time (example https://www.kaggle.com/pratikmirani/pmlightgbm-in-r-time-based-cv/code).\n\nIn my humble opinion this is quite fast. Maybe you can have a look and see how it was done.",
      "votes": null
    },
    {
      "id": "401778",
      "postDate": "10/10/2018 17:36:57",
      "content": "<p>I am using Python.</p>",
      "rawMarkdown": "I am using Python.",
      "votes": null
    },
    {
      "id": "401802",
      "postDate": "10/10/2018 18:10:31",
      "content": "<p>Instead of CPU multicores, try using GPU computation which is miles away ahead.</p>\n\n<p>You can use it with XGBoost, Lgbm, CatBoost...</p>",
      "rawMarkdown": "Instead of CPU multicores, try using GPU computation which is miles away ahead.\n\nYou can use it with XGBoost, Lgbm, CatBoost...",
      "votes": null
    },
    {
      "id": "401808",
      "postDate": "10/10/2018 18:16:09",
      "content": "<p>I know GPU is much much faster but I only use TensorFlow and Keras with GPU on my local machine. I didn't install Lightgbm with gpu or xgboost with gpu. My OS is Windows 10. I thought it was so hard to install lightgbm gpu version. Therefore, I am using CPU version.</p>",
      "rawMarkdown": "I know GPU is much much faster but I only use TensorFlow and Keras with GPU on my local machine. I didn't install Lightgbm with gpu or xgboost with gpu. My OS is Windows 10. I thought it was so hard to install lightgbm gpu version. Therefore, I am using CPU version.",
      "votes": null
    },
    {
      "id": "401814",
      "postDate": "10/10/2018 18:26:39",
      "content": "<p>With Linux it's so easy... I don't use Windows, except at the office.</p>",
      "rawMarkdown": "With Linux it's so easy... I don't use Windows, except at the office.",
      "votes": null
    },
    {
      "id": "401816",
      "postDate": "10/10/2018 18:33:11",
      "content": "<p>You are right. I will pass to Linux ecosystem as soon as possible.</p>",
      "rawMarkdown": "You are right. I will pass to Linux ecosystem as soon as possible.",
      "votes": null
    },
    {
      "id": "401824",
      "postDate": "10/10/2018 18:45:41",
      "content": "<p>And if you really <em>need</em> Windows, you can use a dual boot or a virtual machine under Linux : <strong>VMware</strong> player is really easy to install, free and does the job for Windows.</p>",
      "rawMarkdown": "And if you really *need* Windows, you can use a dual boot or a virtual machine under Linux : **VMware** player is really easy to install, free and does the job for Windows.",
      "votes": null
    },
    {
      "id": "401836",
      "postDate": "10/10/2018 18:59:20",
      "content": "<p>Dask for python.\nForeach for R</p>",
      "rawMarkdown": "Dask for python.\nForeach for R",
      "votes": null
    },
    {
      "id": "401896",
      "postDate": "10/10/2018 21:03:08",
      "content": "<p>If you are using LightGBM, It doesnt work well with old GPUs (700 series or older)</p>",
      "rawMarkdown": "If you are using LightGBM, It doesnt work well with old GPUs (700 series or older)",
      "votes": null
    },
    {
      "id": "402456",
      "postDate": "10/11/2018 18:50:35",
      "content": "<p>I have a GTX 1050, which has 640 CUDA Cores, 4 GB RAM and Pascal architecture.</p>",
      "rawMarkdown": "I have a GTX 1050, which has 640 CUDA Cores, 4 GB RAM and Pascal architecture.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 401327,
      "author_name": "jsaguiar",
      "author_url": "",
      "post_date": "10/09/2018 21:09:19",
      "content": "<p>Just for running the model (lightgbm, xgboost, tensorflow...), which you can set in the model parameters to 4. For the pipeline you can use pandas with python's multiprocessing library or <a href=\"https://dask.org/\">Dask</a>, but I dont think it is necessary in this competition. If a group of feature is taking too long to process you can pre-save with pickle or feather.</p>\n\n<p>For the number of jobs, I don't know if using more than the number of physical cores does help</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 401343,
      "author_name": "justfor",
      "author_url": "",
      "post_date": "10/09/2018 21:48:41",
      "content": "<p>Are you running R or python? </p>\n\n<p>If you have a look at some of the great kernels from Olivier (<a href=\"https://www.kaggle.com/ogrellier\">https://www.kaggle.com/ogrellier</a>) the runtime is ca. 811 seconds (example <a href=\"https://www.kaggle.com/ogrellier/i-have-seen-the-future/notebook\">https://www.kaggle.com/ogrellier/i-have-seen-the-future/notebook</a>). </p>\n\n<p>In R also some scripts with ca. 500 seconds run time (example <a href=\"https://www.kaggle.com/pratikmirani/pmlightgbm-in-r-time-based-cv/code\">https://www.kaggle.com/pratikmirani/pmlightgbm-in-r-time-based-cv/code</a>).</p>\n\n<p>In my humble opinion this is quite fast. Maybe you can have a look and see how it was done.</p>",
      "votes": null,
      "replies": [
        {
          "id": 401778,
          "author_name": "mbkinaci",
          "author_url": "",
          "post_date": "10/10/2018 17:36:57",
          "content": "<p>I am using Python.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 401802,
      "author_name": "pfichou",
      "author_url": "",
      "post_date": "10/10/2018 18:10:31",
      "content": "<p>Instead of CPU multicores, try using GPU computation which is miles away ahead.</p>\n\n<p>You can use it with XGBoost, Lgbm, CatBoost...</p>",
      "votes": null,
      "replies": [
        {
          "id": 401808,
          "author_name": "mbkinaci",
          "author_url": "",
          "post_date": "10/10/2018 18:16:09",
          "content": "<p>I know GPU is much much faster but I only use TensorFlow and Keras with GPU on my local machine. I didn't install Lightgbm with gpu or xgboost with gpu. My OS is Windows 10. I thought it was so hard to install lightgbm gpu version. Therefore, I am using CPU version.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 401814,
          "author_name": "pfichou",
          "author_url": "",
          "post_date": "10/10/2018 18:26:39",
          "content": "<p>With Linux it's so easy... I don't use Windows, except at the office.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 401816,
          "author_name": "mbkinaci",
          "author_url": "",
          "post_date": "10/10/2018 18:33:11",
          "content": "<p>You are right. I will pass to Linux ecosystem as soon as possible.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 401824,
          "author_name": "pfichou",
          "author_url": "",
          "post_date": "10/10/2018 18:45:41",
          "content": "<p>And if you really <em>need</em> Windows, you can use a dual boot or a virtual machine under Linux : <strong>VMware</strong> player is really easy to install, free and does the job for Windows.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 401896,
          "author_name": "jsaguiar",
          "author_url": "",
          "post_date": "10/10/2018 21:03:08",
          "content": "<p>If you are using LightGBM, It doesnt work well with old GPUs (700 series or older)</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 402456,
          "author_name": "mbkinaci",
          "author_url": "",
          "post_date": "10/11/2018 18:50:35",
          "content": "<p>I have a GTX 1050, which has 640 CUDA Cores, 4 GB RAM and Pascal architecture.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 401836,
      "author_name": "freedomslaves22",
      "author_url": "",
      "post_date": "10/10/2018 18:59:20",
      "content": "<p>Dask for python.\nForeach for R</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "401306": "I wonder whether you are using parallelism in order to make your code run faster. I am using a local computer having i7 processor, 4 cores and 8 threads. However, the running time looks so big for me. Are you using *multiprocessing* module in Python or any other library to accelerate your training ?",
    "401327": "Just for running the model (lightgbm, xgboost, tensorflow...), which you can set in the model parameters to 4. For the pipeline you can use pandas with python's multiprocessing library or [Dask][1], but I dont think it is necessary in this competition. If a group of feature is taking too long to process you can pre-save with pickle or feather.\n\nFor the number of jobs, I don't know if using more than the number of physical cores does help\n\n\n  [1]: https://dask.org/",
    "401343": "Are you running R or python? \n\nIf you have a look at some of the great kernels from Olivier (https://www.kaggle.com/ogrellier) the runtime is ca. 811 seconds (example https://www.kaggle.com/ogrellier/i-have-seen-the-future/notebook). \n\nIn R also some scripts with ca. 500 seconds run time (example https://www.kaggle.com/pratikmirani/pmlightgbm-in-r-time-based-cv/code).\n\nIn my humble opinion this is quite fast. Maybe you can have a look and see how it was done.",
    "401778": "I am using Python.",
    "401802": "Instead of CPU multicores, try using GPU computation which is miles away ahead.\n\nYou can use it with XGBoost, Lgbm, CatBoost...",
    "401808": "I know GPU is much much faster but I only use TensorFlow and Keras with GPU on my local machine. I didn't install Lightgbm with gpu or xgboost with gpu. My OS is Windows 10. I thought it was so hard to install lightgbm gpu version. Therefore, I am using CPU version.",
    "401814": "With Linux it's so easy... I don't use Windows, except at the office.",
    "401816": "You are right. I will pass to Linux ecosystem as soon as possible.",
    "401824": "And if you really *need* Windows, you can use a dual boot or a virtual machine under Linux : **VMware** player is really easy to install, free and does the job for Windows.",
    "401836": "Dask for python.\nForeach for R",
    "401896": "If you are using LightGBM, It doesnt work well with old GPUs (700 series or older)",
    "402456": "I have a GTX 1050, which has 640 CUDA Cores, 4 GB RAM and Pascal architecture."
  },
  "source": "meta"
}