{
  "id": 211967,
  "title": "Pytorch vs Tensorflow",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/211967",
  "author_name": "",
  "post_date": "2021-01-17T00:29:30.752756500Z",
  "votes": 3,
  "comment_count": 9,
  "views": 0,
  "content": "<p>Hello! While browsing through the networks of ML and notebooks, I have realized that there is immense popularity on both Tensorflow and pytorch as the new trend. I am wondering which framework is the \"future prospect\" for ML? I have looked at ImageAI's documentation, and it seems as if they are also going to shift into pytorch from tensor. I am wondering which is more efficient and powerful in terms of ML context. </p>\n<p>Thank you!</p>",
  "messages": [
    {
      "id": "1156146",
      "postDate": "01/17/2021 00:29:30",
      "content": "<p>Hello! While browsing through the networks of ML and notebooks, I have realized that there is immense popularity on both Tensorflow and pytorch as the new trend. I am wondering which framework is the \"future prospect\" for ML? I have looked at ImageAI's documentation, and it seems as if they are also going to shift into pytorch from tensor. I am wondering which is more efficient and powerful in terms of ML context. </p>\n<p>Thank you!</p>",
      "rawMarkdown": "Hello! While browsing through the networks of ML and notebooks, I have realized that there is immense popularity on both Tensorflow and pytorch as the new trend. I am wondering which framework is the \"future prospect\" for ML? I have looked at ImageAI's documentation, and it seems as if they are also going to shift into pytorch from tensor. I am wondering which is more efficient and powerful in terms of ML context. \n\nThank you!",
      "votes": null
    },
    {
      "id": "1156580",
      "postDate": "01/17/2021 09:08:20",
      "content": "<p>hi <a href=\"https://www.kaggle.com/andyjianzhou\" target=\"_blank\">@andyjianzhou</a> ,</p>\n<p>There is a discussing thread on the same topic:  <a href=\"https://www.kaggle.com/discussion/203018\" target=\"_blank\">https://www.kaggle.com/discussion/203018</a><br>\nI bet it will be helpful as it did provide me with better insight.<br>\nHappy Learning!</p>",
      "rawMarkdown": "hi @andyjianzhou ,\n\n\nThere is a discussing thread on the same topic:  https://www.kaggle.com/discussion/203018\nI bet it will be helpful as it did provide me with better insight.\nHappy Learning!",
      "votes": null
    },
    {
      "id": "1156598",
      "postDate": "01/17/2021 09:20:42",
      "content": "<p>Been involved with using software for almost 55 years.  It has always been the case that a couple of competing methods could be used - and almost always the case that at some point in the future one version would flourish and the other would die.</p>\n<p>How to pick the winner - my recommendation is flip a coin.   Or learn both - Or use the one you \"like\".    Sadly for me, my age has reached the point where I cannot learn both - my old RAM needs too many epochs for new learning's.  So I am hoping that tensorflow lasts longer than I do.  </p>\n<p>IF both survive there will be time periods where Pytorch is the better choice - but other time frames where Tensorflow will be the better choice.</p>",
      "rawMarkdown": "Been involved with using software for almost 55 years.  It has always been the case that a couple of competing methods could be used - and almost always the case that at some point in the future one version would flourish and the other would die.\n\nHow to pick the winner - my recommendation is flip a coin.   Or learn both - Or use the one you \"like\".    Sadly for me, my age has reached the point where I cannot learn both - my old RAM needs too many epochs for new learning's.  So I am hoping that tensorflow lasts longer than I do.  \n\nIF both survive there will be time periods where Pytorch is the better choice - but other time frames where Tensorflow will be the better choice.",
      "votes": null
    },
    {
      "id": "1163755",
      "postDate": "01/21/2021 22:47:24",
      "content": "<p>Ah, alright thank you! I recently just started working with kaggle competitions, so far had some experiences with past projects but really only learned Keras. Thank you for this analysis, I will be looking forward to learning both while I have time. </p>",
      "rawMarkdown": "Ah, alright thank you! I recently just started working with kaggle competitions, so far had some experiences with past projects but really only learned Keras. Thank you for this analysis, I will be looking forward to learning both while I have time.",
      "votes": null
    },
    {
      "id": "1163756",
      "postDate": "01/21/2021 22:47:31",
      "content": "<p>Ah yes, I see now. Thank you!</p>",
      "rawMarkdown": "Ah yes, I see now. Thank you!",
      "votes": null
    },
    {
      "id": "1163812",
      "postDate": "01/22/2021 00:28:55",
      "content": "<p>I've been programming computers since 1962, PC Jimmmy, and I'm still trying to learn new stuff.  For this contest I'm currently using 'R -&gt; Keras -&gt; Tensorflow -&gt; CUDA', but that may yet change.  There's an interesting article about learning, memory, and age titled \"Starting Fresh\" in the January 18, 2021 issue of \"The New Yorker\" magazine: <a href=\"https://www.newyorker.com/magazine/2021/01/18/is-it-really-too-late-to-learn-new-skills\" target=\"_blank\">https://www.newyorker.com/magazine/2021/01/18/is-it-really-too-late-to-learn-new-skills</a>.  I'd like to think, correctly or not, that the more one already knows, the easier it is to learn even more.  And perhaps someday people will be able to consult their neurologist about getting a \"RAM upgrade\" for their aging brain.</p>",
      "rawMarkdown": "I've been programming computers since 1962, PC Jimmmy, and I'm still trying to learn new stuff.  For this contest I'm currently using 'R -> Keras -> Tensorflow -> CUDA', but that may yet change.  There's an interesting article about learning, memory, and age titled \"Starting Fresh\" in the January 18, 2021 issue of \"The New Yorker\" magazine: https://www.newyorker.com/magazine/2021/01/18/is-it-really-too-late-to-learn-new-skills.  I'd like to think, correctly or not, that the more one already knows, the easier it is to learn even more.  And perhaps someday people will be able to consult their neurologist about getting a \"RAM upgrade\" for their aging brain.",
      "votes": null
    },
    {
      "id": "1163838",
      "postDate": "01/22/2021 01:26:57",
      "content": "<p>Thanks for the link.  For me it is truly like a model training.  Years ago I could get to 97% accuracy in an epoch or two with anything I was learning.  Now at 74 it seems I need to hit more like 20 epochs with a slower learning rate.  I can still get to 97% but it takes so much longer and hence I learn less.  </p>\n<p>I started on Kaggle with R - found it almost useless for vision problems like this competition.  </p>",
      "rawMarkdown": "Thanks for the link.  For me it is truly like a model training.  Years ago I could get to 97% accuracy in an epoch or two with anything I was learning.  Now at 74 it seems I need to hit more like 20 epochs with a slower learning rate.  I can still get to 97% but it takes so much longer and hence I learn less.  \n\nI started on Kaggle with R - found it almost useless for vision problems like this competition.",
      "votes": null
    },
    {
      "id": "1181510",
      "postDate": "02/02/2021 00:15:55",
      "content": "<p>Ah yes, there was a recent update released. Pytorch is currently outpacing tensorflow in research papers, however tensorflow is currently being used a lot in long term projects still. Pytorch is growing rapidly, and pytorch is currently equal(or more popular) than tensorflow in terms of research. I don't know if that's true about projects. May someone confirm this? As I am currently learning Pytorch, but I have troubles choosing which framework to \"main\". Thanks!</p>",
      "rawMarkdown": "Ah yes, there was a recent update released. Pytorch is currently outpacing tensorflow in research papers, however tensorflow is currently being used a lot in long term projects still. Pytorch is growing rapidly, and pytorch is currently equal(or more popular) than tensorflow in terms of research. I don't know if that's true about projects. May someone confirm this? As I am currently learning Pytorch, but I have troubles choosing which framework to \"main\". Thanks!",
      "votes": null
    },
    {
      "id": "1181531",
      "postDate": "02/02/2021 00:41:26",
      "content": "<p>Even at Google,  they seem not to bet on TF as the \"future prospect\" for ML. </p>\n<p>They don't write any research paper code in TF2.  All the code are written either in TF1 (including the current SOTA on Imagenet published this year) or they move directly to JAX (like the ViT code) or even use Pytorch .</p>\n<p>They clearly  do nothing to promote TF2 </p>",
      "rawMarkdown": "Even at Google,  they seem not to bet on TF as the \"future prospect\" for ML. \n\nThey don't write any research paper code in TF2.  All the code are written either in TF1 (including the current SOTA on Imagenet published this year) or they move directly to JAX (like the ViT code) or even use Pytorch .\n\nThey clearly  do nothing to promote TF2",
      "votes": null
    },
    {
      "id": "1181600",
      "postDate": "02/02/2021 02:23:24",
      "content": "<p>Ah, so shall I start learning pytorch and main that framework then?</p>",
      "rawMarkdown": "Ah, so shall I start learning pytorch and main that framework then?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1156580,
      "author_name": "supplejade",
      "author_url": "",
      "post_date": "01/17/2021 09:08:20",
      "content": "<p>hi <a href=\"https://www.kaggle.com/andyjianzhou\" target=\"_blank\">@andyjianzhou</a> ,</p>\n<p>There is a discussing thread on the same topic:  <a href=\"https://www.kaggle.com/discussion/203018\" target=\"_blank\">https://www.kaggle.com/discussion/203018</a><br>\nI bet it will be helpful as it did provide me with better insight.<br>\nHappy Learning!</p>",
      "votes": null,
      "replies": [
        {
          "id": 1163756,
          "author_name": "andyjianzhou",
          "author_url": "",
          "post_date": "01/21/2021 22:47:31",
          "content": "<p>Ah yes, I see now. Thank you!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1156598,
      "author_name": "pcjimmmy",
      "author_url": "",
      "post_date": "01/17/2021 09:20:42",
      "content": "<p>Been involved with using software for almost 55 years.  It has always been the case that a couple of competing methods could be used - and almost always the case that at some point in the future one version would flourish and the other would die.</p>\n<p>How to pick the winner - my recommendation is flip a coin.   Or learn both - Or use the one you \"like\".    Sadly for me, my age has reached the point where I cannot learn both - my old RAM needs too many epochs for new learning's.  So I am hoping that tensorflow lasts longer than I do.  </p>\n<p>IF both survive there will be time periods where Pytorch is the better choice - but other time frames where Tensorflow will be the better choice.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1163755,
          "author_name": "andyjianzhou",
          "author_url": "",
          "post_date": "01/21/2021 22:47:24",
          "content": "<p>Ah, alright thank you! I recently just started working with kaggle competitions, so far had some experiences with past projects but really only learned Keras. Thank you for this analysis, I will be looking forward to learning both while I have time. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1163812,
          "author_name": "dslate",
          "author_url": "",
          "post_date": "01/22/2021 00:28:55",
          "content": "<p>I've been programming computers since 1962, PC Jimmmy, and I'm still trying to learn new stuff.  For this contest I'm currently using 'R -&gt; Keras -&gt; Tensorflow -&gt; CUDA', but that may yet change.  There's an interesting article about learning, memory, and age titled \"Starting Fresh\" in the January 18, 2021 issue of \"The New Yorker\" magazine: <a href=\"https://www.newyorker.com/magazine/2021/01/18/is-it-really-too-late-to-learn-new-skills\" target=\"_blank\">https://www.newyorker.com/magazine/2021/01/18/is-it-really-too-late-to-learn-new-skills</a>.  I'd like to think, correctly or not, that the more one already knows, the easier it is to learn even more.  And perhaps someday people will be able to consult their neurologist about getting a \"RAM upgrade\" for their aging brain.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1163838,
          "author_name": "pcjimmmy",
          "author_url": "",
          "post_date": "01/22/2021 01:26:57",
          "content": "<p>Thanks for the link.  For me it is truly like a model training.  Years ago I could get to 97% accuracy in an epoch or two with anything I was learning.  Now at 74 it seems I need to hit more like 20 epochs with a slower learning rate.  I can still get to 97% but it takes so much longer and hence I learn less.  </p>\n<p>I started on Kaggle with R - found it almost useless for vision problems like this competition.  </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1181510,
          "author_name": "andyjianzhou",
          "author_url": "",
          "post_date": "02/02/2021 00:15:55",
          "content": "<p>Ah yes, there was a recent update released. Pytorch is currently outpacing tensorflow in research papers, however tensorflow is currently being used a lot in long term projects still. Pytorch is growing rapidly, and pytorch is currently equal(or more popular) than tensorflow in terms of research. I don't know if that's true about projects. May someone confirm this? As I am currently learning Pytorch, but I have troubles choosing which framework to \"main\". Thanks!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1181531,
      "author_name": "serigne",
      "author_url": "",
      "post_date": "02/02/2021 00:41:26",
      "content": "<p>Even at Google,  they seem not to bet on TF as the \"future prospect\" for ML. </p>\n<p>They don't write any research paper code in TF2.  All the code are written either in TF1 (including the current SOTA on Imagenet published this year) or they move directly to JAX (like the ViT code) or even use Pytorch .</p>\n<p>They clearly  do nothing to promote TF2 </p>",
      "votes": null,
      "replies": [
        {
          "id": 1181600,
          "author_name": "andyjianzhou",
          "author_url": "",
          "post_date": "02/02/2021 02:23:24",
          "content": "<p>Ah, so shall I start learning pytorch and main that framework then?</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1156146": "Hello! While browsing through the networks of ML and notebooks, I have realized that there is immense popularity on both Tensorflow and pytorch as the new trend. I am wondering which framework is the \"future prospect\" for ML? I have looked at ImageAI's documentation, and it seems as if they are also going to shift into pytorch from tensor. I am wondering which is more efficient and powerful in terms of ML context. \n\nThank you!",
    "1156580": "hi @andyjianzhou ,\n\n\nThere is a discussing thread on the same topic:  https://www.kaggle.com/discussion/203018\nI bet it will be helpful as it did provide me with better insight.\nHappy Learning!",
    "1156598": "Been involved with using software for almost 55 years.  It has always been the case that a couple of competing methods could be used - and almost always the case that at some point in the future one version would flourish and the other would die.\n\nHow to pick the winner - my recommendation is flip a coin.   Or learn both - Or use the one you \"like\".    Sadly for me, my age has reached the point where I cannot learn both - my old RAM needs too many epochs for new learning's.  So I am hoping that tensorflow lasts longer than I do.  \n\nIF both survive there will be time periods where Pytorch is the better choice - but other time frames where Tensorflow will be the better choice.",
    "1163755": "Ah, alright thank you! I recently just started working with kaggle competitions, so far had some experiences with past projects but really only learned Keras. Thank you for this analysis, I will be looking forward to learning both while I have time.",
    "1163756": "Ah yes, I see now. Thank you!",
    "1163812": "I've been programming computers since 1962, PC Jimmmy, and I'm still trying to learn new stuff.  For this contest I'm currently using 'R -> Keras -> Tensorflow -> CUDA', but that may yet change.  There's an interesting article about learning, memory, and age titled \"Starting Fresh\" in the January 18, 2021 issue of \"The New Yorker\" magazine: https://www.newyorker.com/magazine/2021/01/18/is-it-really-too-late-to-learn-new-skills.  I'd like to think, correctly or not, that the more one already knows, the easier it is to learn even more.  And perhaps someday people will be able to consult their neurologist about getting a \"RAM upgrade\" for their aging brain.",
    "1163838": "Thanks for the link.  For me it is truly like a model training.  Years ago I could get to 97% accuracy in an epoch or two with anything I was learning.  Now at 74 it seems I need to hit more like 20 epochs with a slower learning rate.  I can still get to 97% but it takes so much longer and hence I learn less.  \n\nI started on Kaggle with R - found it almost useless for vision problems like this competition.",
    "1181510": "Ah yes, there was a recent update released. Pytorch is currently outpacing tensorflow in research papers, however tensorflow is currently being used a lot in long term projects still. Pytorch is growing rapidly, and pytorch is currently equal(or more popular) than tensorflow in terms of research. I don't know if that's true about projects. May someone confirm this? As I am currently learning Pytorch, but I have troubles choosing which framework to \"main\". Thanks!",
    "1181531": "Even at Google,  they seem not to bet on TF as the \"future prospect\" for ML. \n\nThey don't write any research paper code in TF2.  All the code are written either in TF1 (including the current SOTA on Imagenet published this year) or they move directly to JAX (like the ViT code) or even use Pytorch .\n\nThey clearly  do nothing to promote TF2",
    "1181600": "Ah, so shall I start learning pytorch and main that framework then?"
  },
  "source": "meta"
}