{
  "id": 172313,
  "title": "Magic of seed 42",
  "url": "/competitions/osic-pulmonary-fibrosis-progression/discussion/172313",
  "author_name": "Bs004",
  "post_date": "2020-08-04T14:54:38.894000",
  "votes": 15,
  "comment_count": 22,
  "views": 0,
  "content": "<p>I have seen everybody setting their seed as 42 in splittin test train or whatso ever they are trying to do, Is there a special reason for it?</p>",
  "messages": [
    {
      "id": 957773,
      "postDate": "2020-08-04T14:54:38.893Z",
      "content": "<p>I have seen everybody setting their seed as 42 in splittin test train or whatso ever they are trying to do, Is there a special reason for it?</p>",
      "rawMarkdown": "I have seen everybody setting their seed as 42 in splittin test train or whatso ever they are trying to do, Is there a special reason for it?",
      "votes": 15
    },
    {
      "id": 957902,
      "postDate": "2020-08-04T16:14:19.877Z",
      "content": "<p>I believe it's because 9 * 6 = 42.</p>",
      "rawMarkdown": "I believe it's because 9 * 6 = 42.",
      "votes": 8
    },
    {
      "id": 957804,
      "postDate": "2020-08-04T15:12:00.860Z",
      "content": "<p>It's the default used in sklearn examples: <a href=\"https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html\" target=\"_blank\">https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html</a></p>\n<p><a href=\"https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy#42,_or_The_Answer_to_the_Ultimate_Question_of_Life,_The_Universe,_and_Everything\" target=\"_blank\">The Hitchhiker's Guide to the Galaxy</a> is one reason why 42 is popular.</p>",
      "rawMarkdown": "It's the default used in sklearn examples: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html\n\n[The Hitchhiker's Guide to the Galaxy](https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy#42,_or_The_Answer_to_the_Ultimate_Question_of_Life,_The_Universe,_and_Everything) is one reason why 42 is popular.",
      "votes": 6
    },
    {
      "id": 957888,
      "postDate": "2020-08-04T16:03:15.957Z",
      "content": "<p>\"once you know what the question actually is, you'll know what the answer means\"</p>",
      "rawMarkdown": "\"once you know what the question actually is, you'll know what the answer means\"",
      "votes": 3
    },
    {
      "id": 962854,
      "postDate": "2020-08-08T13:47:36.967Z",
      "content": "<p>Actually dear fellows, there is more about 42 than just the Hitchhiker's Guide!<br>\nIt has a lot of fancy, but arguably useless properties:</p>\n<p>42 is a **sphenic **number: you can split it in a product of three prime numbers  2 * 3 * 7 </p>\n<p>42 is a **pronic **number: so it's the product of two *consecutive* integers, that is, a number of the form n(n + 1). In this case: 6 * 7</p>\n<p>42 is an **abundant **number: the sum of all possible divisors (1, 2, 3, 6, 7, 14, 21 = 54) is bigger than the number itself! </p>\n<p>42! = 1.40500611775 * 10^51, which is huge!</p>\n<p>Ah..yea, and most importantly:<br>\nThe ASCII code \"42\" is the asterisk *, being a wildcard for everything!</p>\n<p>All in all: it is obviously the best choice for a random seed.</p>\n<p><a href=\"https://www.kaggle.com/rohanrao\" target=\"_blank\">@rohanrao</a>, <a href=\"https://www.kaggle.com/nreddd\" target=\"_blank\">@nreddd</a> </p>",
      "rawMarkdown": "Actually dear fellows, there is more about 42 than just the Hitchhiker's Guide!\nIt has a lot of fancy, but arguably useless properties:\n\n42 is a **sphenic **number: you can split it in a product of three prime numbers  2 * 3 * 7 \n\n42 is a **pronic **number: so it's the product of two *consecutive* integers, that is, a number of the form n(n + 1). In this case: 6 * 7\n\n42 is an **abundant **number: the sum of all possible divisors (1, 2, 3, 6, 7, 14, 21 = 54) is bigger than the number itself! \n\n42! = 1.40500611775 * 10^51, which is huge!\n\nAh..yea, and most importantly:\nThe ASCII code \"42\" is the asterisk *, being a wildcard for everything!\n\nAll in all: it is obviously the best choice for a random seed.\n\n@rohanrao, @nreddd ",
      "votes": 4,
      "replies": [
        {
          "id": 971916,
          "postDate": "2020-08-16T04:29:17.330Z",
          "content": "<p>Ohh!!! I have also wondered why it's 42 everywhere!! Thanks for clearing</p>",
          "rawMarkdown": "Ohh!!! I have also wondered why it's 42 everywhere!! Thanks for clearing",
          "votes": 1
        },
        {
          "id": 972693,
          "postDate": "2020-08-16T18:34:11.093Z",
          "rawMarkdown": "",
          "isDeleted": true
        }
      ]
    },
    {
      "id": 959239,
      "postDate": "2020-08-05T12:45:48.497Z",
      "content": "<p>you need to read more books :-)</p>",
      "rawMarkdown": "you need to read more books :-)",
      "votes": 2
    },
    {
      "id": 971731,
      "postDate": "2020-08-15T20:51:21.773Z",
      "content": "<p>For researchers trying to replicate others' results, it's necessary to use the same random seed, so once one person does it, others who want to replicate those results need to do it as well.  Although the original researcher could have chosen 42, 43, 1002, whatever suits their fancy.</p>\n\n<p>Other than that, 42 is frequently chosen because of its appearance in \"The Hitchhiker's Guide to the Galaxy\" :)  (Wikipedia link, which wouldn't add in this interface for some reason: <a href=\"https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker\">https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker</a>'s_Guide_to_the_Galaxy .)</p>",
      "rawMarkdown": "For researchers trying to replicate others' results, it's necessary to use the same random seed, so once one person does it, others who want to replicate those results need to do it as well.  Although the original researcher could have chosen 42, 43, 1002, whatever suits their fancy.\n\nOther than that, 42 is frequently chosen because of its appearance in \"The Hitchhiker's Guide to the Galaxy\" :)  (Wikipedia link, which wouldn't add in this interface for some reason: https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker's_Guide_to_the_Galaxy .)",
      "votes": 1
    },
    {
      "id": 959800,
      "postDate": "2020-08-05T22:44:18.767Z",
      "content": "<p>As far as I know, 42 it became popular through \"The Hitchhiker's Guide to the Galaxy\" as the \"Answer to the Ultimate Question of Life, the Universe, and Everything\".\nThere's nothing more to it other than this.</p>\n\n<p>In our context, you can set the random seed so you can, for example, track your model's performance once you change some feature.</p>\n\n<p>It is more of a silly joke than anything else.</p>\n\n<p>Note: While I was studying through Hands-On Machine Learning book, by Aurelien Geron, I saw that consistently uses 42 as a seed number. I guess that many students are coming from there as well.</p>",
      "rawMarkdown": "As far as I know, 42 it became popular through \"The Hitchhiker's Guide to the Galaxy\" as the \"Answer to the Ultimate Question of Life, the Universe, and Everything\".\nThere's nothing more to it other than this.\n\nIn our context, you can set the random seed so you can, for example, track your model's performance once you change some feature.\n\nIt is more of a silly joke than anything else.\n\nNote: While I was studying through Hands-On Machine Learning book, by Aurelien Geron, I saw that consistently uses 42 as a seed number. I guess that many students are coming from there as well.",
      "votes": 1
    },
    {
      "id": 959272,
      "postDate": "2020-08-05T13:10:22.063Z",
      "content": "<p>Nothing special, just a reference to <a href=\"https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker\">https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker</a>'s_Guide_to_the_Galaxy</p>",
      "rawMarkdown": "Nothing special, just a reference to https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker's_Guide_to_the_Galaxy",
      "votes": 1
    },
    {
      "id": 959247,
      "postDate": "2020-08-05T12:49:34.597Z",
      "content": "<p>Because 42 is the answer to everything.</p>",
      "rawMarkdown": "Because 42 is the answer to everything.",
      "votes": 1
    },
    {
      "id": 960431,
      "postDate": "2020-08-06T11:53:18.637Z",
      "content": "<p>Hint: They're using Python. </p>",
      "rawMarkdown": "Hint: They're using Python. ",
      "votes": -1
    },
    {
      "id": 1455669,
      "postDate": "2021-08-06T16:36:49.243Z",
      "content": "<p>Nice to know the reason behind it, I think it will be very helpful to know such small things too</p>",
      "rawMarkdown": "Nice to know the reason behind it, I think it will be very helpful to know such small things too"
    },
    {
      "id": 971396,
      "postDate": "2020-08-15T13:31:07.240Z",
      "content": "<p><a href=\"https://medium.com/@leticia.b/the-story-of-seed-42-874953452b94\" target=\"_blank\">https://medium.com/@leticia.b/the-story-of-seed-42-874953452b94</a></p>\n<p>Here's an article I found out on this.</p>\n<p>And I was really surprised to know that the number 42 become universally used because of a Sci-Fi movie/book.<br>\nThanks for this topic <a href=\"https://www.kaggle.com/bharatsahu\" target=\"_blank\">@bharatsahu</a> </p>",
      "rawMarkdown": "https://medium.com/@leticia.b/the-story-of-seed-42-874953452b94\n\nHere's an article I found out on this.\n\nAnd I was really surprised to know that the number 42 become universally used because of a Sci-Fi movie/book.\nThanks for this topic @bharatsahu "
    },
    {
      "id": 967793,
      "postDate": "2020-08-12T14:09:05.383Z",
      "content": "<p>Noting is special with 42</p>",
      "rawMarkdown": "Noting is special with 42",
      "replies": [
        {
          "id": 967807,
          "postDate": "2020-08-12T14:18:45.973Z",
          "rawMarkdown": "",
          "isDeleted": true
        }
      ]
    },
    {
      "id": 963840,
      "postDate": "2020-08-09T10:50:16.487Z",
      "content": "<p>Hi </p>\n\n<p>I think the number 42 has special \"geek properties\" as in the book Hitchhiker's guide to the Galaxy it is the answer to everything :)</p>",
      "rawMarkdown": "Hi \n\nI think the number 42 has special \"geek properties\" as in the book Hitchhiker's guide to the Galaxy it is the answer to everything :)",
      "replies": [
        {
          "id": 967808,
          "postDate": "2020-08-12T14:19:00.300Z",
          "content": "<p>That's not all my friend, please read above.</p>",
          "rawMarkdown": "That's not all my friend, please read above."
        }
      ]
    },
    {
      "id": 960472,
      "postDate": "2020-08-06T12:33:21.757Z",
      "content": "<p>Personally I use 7.</p>",
      "rawMarkdown": "Personally I use 7.",
      "replies": [
        {
          "id": 1447051,
          "postDate": "2021-08-04T13:53:05.437Z",
          "content": "<p>the result of 7 is better than 42 ?</p>",
          "rawMarkdown": "the result of 7 is better than 42 ?"
        },
        {
          "id": 1455626,
          "postDate": "2021-08-06T16:20:24.643Z",
          "content": "<p>Can’t be, because 42 is the \"Answer to the Ultimate Question of Life, the Universe, and Everything\"</p>",
          "rawMarkdown": "Can’t be, because 42 is the \"Answer to the Ultimate Question of Life, the Universe, and Everything\""
        }
      ]
    },
    {
      "id": 957938,
      "postDate": "2020-08-04T16:31:05.020Z",
      "rawMarkdown": "",
      "votes": 8,
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 957902,
      "author_name": "RNA",
      "author_url": "",
      "post_date": "2020-08-04T16:14:19.877000",
      "content": "<p>I believe it's because 9 * 6 = 42.</p>",
      "votes": 8,
      "replies": []
    },
    {
      "id": 957804,
      "author_name": "Vopani",
      "author_url": "",
      "post_date": "2020-08-04T15:12:00.860000",
      "content": "<p>It's the default used in sklearn examples: <a href=\"https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html\" target=\"_blank\">https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html</a></p>\n<p><a href=\"https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy#42,_or_The_Answer_to_the_Ultimate_Question_of_Life,_The_Universe,_and_Everything\" target=\"_blank\">The Hitchhiker's Guide to the Galaxy</a> is one reason why 42 is popular.</p>",
      "votes": 6,
      "replies": []
    },
    {
      "id": 957888,
      "author_name": "jameschapman19",
      "author_url": "",
      "post_date": "2020-08-04T16:03:15.957000",
      "content": "<p>\"once you know what the question actually is, you'll know what the answer means\"</p>",
      "votes": 3,
      "replies": []
    },
    {
      "id": 962854,
      "author_name": "from coffee import *",
      "author_url": "",
      "post_date": "2020-08-08T13:47:36.967000",
      "content": "<p>Actually dear fellows, there is more about 42 than just the Hitchhiker's Guide!<br>\nIt has a lot of fancy, but arguably useless properties:</p>\n<p>42 is a **sphenic **number: you can split it in a product of three prime numbers  2 * 3 * 7 </p>\n<p>42 is a **pronic **number: so it's the product of two *consecutive* integers, that is, a number of the form n(n + 1). In this case: 6 * 7</p>\n<p>42 is an **abundant **number: the sum of all possible divisors (1, 2, 3, 6, 7, 14, 21 = 54) is bigger than the number itself! </p>\n<p>42! = 1.40500611775 * 10^51, which is huge!</p>\n<p>Ah..yea, and most importantly:<br>\nThe ASCII code \"42\" is the asterisk *, being a wildcard for everything!</p>\n<p>All in all: it is obviously the best choice for a random seed.</p>\n<p><a href=\"https://www.kaggle.com/rohanrao\" target=\"_blank\">@rohanrao</a>, <a href=\"https://www.kaggle.com/nreddd\" target=\"_blank\">@nreddd</a> </p>",
      "votes": 4,
      "replies": [
        {
          "id": 971916,
          "author_name": "Aditya Baurai",
          "author_url": "",
          "post_date": "2020-08-16T04:29:17.330000",
          "content": "<p>Ohh!!! I have also wondered why it's 42 everywhere!! Thanks for clearing</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 972693,
          "author_name": "",
          "author_url": "",
          "post_date": "2020-08-16T18:34:11.093000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 959239,
      "author_name": "Charel van Hoof",
      "author_url": "",
      "post_date": "2020-08-05T12:45:48.497000",
      "content": "<p>you need to read more books :-)</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 971731,
      "author_name": "Burnt Store Studio",
      "author_url": "",
      "post_date": "2020-08-15T20:51:21.773000",
      "content": "<p>For researchers trying to replicate others' results, it's necessary to use the same random seed, so once one person does it, others who want to replicate those results need to do it as well.  Although the original researcher could have chosen 42, 43, 1002, whatever suits their fancy.</p>\n\n<p>Other than that, 42 is frequently chosen because of its appearance in \"The Hitchhiker's Guide to the Galaxy\" :)  (Wikipedia link, which wouldn't add in this interface for some reason: <a href=\"https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker\">https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker</a>'s_Guide_to_the_Galaxy .)</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 959800,
      "author_name": "Bruno Portela",
      "author_url": "",
      "post_date": "2020-08-05T22:44:18.767000",
      "content": "<p>As far as I know, 42 it became popular through \"The Hitchhiker's Guide to the Galaxy\" as the \"Answer to the Ultimate Question of Life, the Universe, and Everything\".\nThere's nothing more to it other than this.</p>\n\n<p>In our context, you can set the random seed so you can, for example, track your model's performance once you change some feature.</p>\n\n<p>It is more of a silly joke than anything else.</p>\n\n<p>Note: While I was studying through Hands-On Machine Learning book, by Aurelien Geron, I saw that consistently uses 42 as a seed number. I guess that many students are coming from there as well.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 959272,
      "author_name": "nreddd",
      "author_url": "",
      "post_date": "2020-08-05T13:10:22.063000",
      "content": "<p>Nothing special, just a reference to <a href=\"https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker\">https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker</a>'s_Guide_to_the_Galaxy</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 959247,
      "author_name": "Gamakichi 67",
      "author_url": "",
      "post_date": "2020-08-05T12:49:34.597000",
      "content": "<p>Because 42 is the answer to everything.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 960431,
      "author_name": "J Harris",
      "author_url": "",
      "post_date": "2020-08-06T11:53:18.637000",
      "content": "<p>Hint: They're using Python. </p>",
      "votes": -1,
      "replies": []
    },
    {
      "id": 1455669,
      "author_name": "Krish Yadav",
      "author_url": "",
      "post_date": "2021-08-06T16:36:49.243000",
      "content": "<p>Nice to know the reason behind it, I think it will be very helpful to know such small things too</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 971396,
      "author_name": "palak sood",
      "author_url": "",
      "post_date": "2020-08-15T13:31:07.240000",
      "content": "<p><a href=\"https://medium.com/@leticia.b/the-story-of-seed-42-874953452b94\" target=\"_blank\">https://medium.com/@leticia.b/the-story-of-seed-42-874953452b94</a></p>\n<p>Here's an article I found out on this.</p>\n<p>And I was really surprised to know that the number 42 become universally used because of a Sci-Fi movie/book.<br>\nThanks for this topic <a href=\"https://www.kaggle.com/bharatsahu\" target=\"_blank\">@bharatsahu</a> </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 967793,
      "author_name": "Kurian Benoy",
      "author_url": "",
      "post_date": "2020-08-12T14:09:05.383000",
      "content": "<p>Noting is special with 42</p>",
      "votes": 0,
      "replies": [
        {
          "id": 967807,
          "author_name": "",
          "author_url": "",
          "post_date": "2020-08-12T14:18:45.973000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 963840,
      "author_name": "Mark P",
      "author_url": "",
      "post_date": "2020-08-09T10:50:16.487000",
      "content": "<p>Hi </p>\n\n<p>I think the number 42 has special \"geek properties\" as in the book Hitchhiker's guide to the Galaxy it is the answer to everything :)</p>",
      "votes": 0,
      "replies": [
        {
          "id": 967808,
          "author_name": "from coffee import *",
          "author_url": "",
          "post_date": "2020-08-12T14:19:00.300000",
          "content": "<p>That's not all my friend, please read above.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 960472,
      "author_name": "RKKaggle",
      "author_url": "",
      "post_date": "2020-08-06T12:33:21.757000",
      "content": "<p>Personally I use 7.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1447051,
          "author_name": "Alireza Tabatabaei",
          "author_url": "",
          "post_date": "2021-08-04T13:53:05.437000",
          "content": "<p>the result of 7 is better than 42 ?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1455626,
          "author_name": "Charel van Hoof",
          "author_url": "",
          "post_date": "2021-08-06T16:20:24.643000",
          "content": "<p>Can’t be, because 42 is the \"Answer to the Ultimate Question of Life, the Universe, and Everything\"</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 957938,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-08-04T16:31:05.020000",
      "content": "",
      "votes": 8,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "957773": "I have seen everybody setting their seed as 42 in splittin test train or whatso ever they are trying to do, Is there a special reason for it?",
    "957902": "I believe it's because 9 * 6 = 42.",
    "957804": "It's the default used in sklearn examples: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html\n\n[The Hitchhiker's Guide to the Galaxy](https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy#42,_or_The_Answer_to_the_Ultimate_Question_of_Life,_The_Universe,_and_Everything) is one reason why 42 is popular.",
    "957888": "\"once you know what the question actually is, you'll know what the answer means\"",
    "962854": "Actually dear fellows, there is more about 42 than just the Hitchhiker's Guide!\nIt has a lot of fancy, but arguably useless properties:\n\n42 is a **sphenic **number: you can split it in a product of three prime numbers  2 * 3 * 7 \n\n42 is a **pronic **number: so it's the product of two *consecutive* integers, that is, a number of the form n(n + 1). In this case: 6 * 7\n\n42 is an **abundant **number: the sum of all possible divisors (1, 2, 3, 6, 7, 14, 21 = 54) is bigger than the number itself! \n\n42! = 1.40500611775 * 10^51, which is huge!\n\nAh..yea, and most importantly:\nThe ASCII code \"42\" is the asterisk *, being a wildcard for everything!\n\nAll in all: it is obviously the best choice for a random seed.\n\n@rohanrao, @nreddd ",
    "959239": "you need to read more books :-)",
    "971731": "For researchers trying to replicate others' results, it's necessary to use the same random seed, so once one person does it, others who want to replicate those results need to do it as well.  Although the original researcher could have chosen 42, 43, 1002, whatever suits their fancy.\n\nOther than that, 42 is frequently chosen because of its appearance in \"The Hitchhiker's Guide to the Galaxy\" :)  (Wikipedia link, which wouldn't add in this interface for some reason: https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker's_Guide_to_the_Galaxy .)",
    "959800": "As far as I know, 42 it became popular through \"The Hitchhiker's Guide to the Galaxy\" as the \"Answer to the Ultimate Question of Life, the Universe, and Everything\".\nThere's nothing more to it other than this.\n\nIn our context, you can set the random seed so you can, for example, track your model's performance once you change some feature.\n\nIt is more of a silly joke than anything else.\n\nNote: While I was studying through Hands-On Machine Learning book, by Aurelien Geron, I saw that consistently uses 42 as a seed number. I guess that many students are coming from there as well.",
    "959272": "Nothing special, just a reference to https://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker's_Guide_to_the_Galaxy",
    "959247": "Because 42 is the answer to everything.",
    "960431": "Hint: They're using Python. ",
    "1455669": "Nice to know the reason behind it, I think it will be very helpful to know such small things too",
    "971396": "https://medium.com/@leticia.b/the-story-of-seed-42-874953452b94\n\nHere's an article I found out on this.\n\nAnd I was really surprised to know that the number 42 become universally used because of a Sci-Fi movie/book.\nThanks for this topic @bharatsahu ",
    "967793": "Noting is special with 42",
    "963840": "Hi \n\nI think the number 42 has special \"geek properties\" as in the book Hitchhiker's guide to the Galaxy it is the answer to everything :)",
    "960472": "Personally I use 7.",
    "957938": ""
  }
}