Why are most machine learning models (not frameworks) written in Python? Even through almost any programming language can be used for machine learning?

  • CapedStanker@beehaw.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    14 hours ago

    That’s mainly what all of the researchers who turned the papers into a functioning jupyter or colab notebook knew how to do, and at the time python was the main language used in notebooks (I think it still is), so if you wanted to share it widely, you had to do it in python because you knew the people who were going to use it and improve also used notebooks heavily. Also, they want it to be as reproduce-able as possible for the peer review process, so they want to use the widely known language, which I believe python was like #1 or #2 in the world at that time (2017/2018).

    Then as an added bonus, us programmers who somehow found our way into those slack/discord channels knew enough python to help them out when they needed it here and there. This was essentially before open ai or anything like that existed, particularly in its current iteration.

    From there, web languages were added as a wrapper, so it’s easier to use for everyone than a notebook, where you had to click through each cell and maybe debug something now and then to get it to work right.