this post was submitted on 22 Dec 2025
23 points (100.0% liked)

Technology

41050 readers
116 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 3 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] vk6flab@lemmy.radio 5 points 2 days ago* (last edited 2 days ago) (1 children)

Because they're all copying each other's homework?

[–] Zaktor@sopuli.xyz 9 points 2 days ago (1 children)

This, but without the implication it's cheating. As someone who's both a software engineer and trains ML models, choosing a language that's commonly used for the general task area you're tackling (ML or not) is very useful. If it's popular for the task area you'll have a lot of references for how to solve problems, you can find and use libraries designed and demonstrated for similar tasks, and yes, you can cut and paste code snippets.

Almost every language is capable of doing anything, and software engineers regularly use multiple languages in the course of their work. Libraries and support are a big deal in deciding which to use, and will often be more important than your personal language familiarity/preference.

[–] CapedStanker@beehaw.org 8 points 2 days ago (1 children)

we were specifically taught in school to not write something that's already been written, we all build upon each other's work, literally going back thousands of years when you consider the importance of the math that underpins all of it.

[–] jarfil@beehaw.org 1 points 23 hours ago (1 children)

Strictly speaking, math gets proven from scratch by every math student. Software is slightly different, since most of it never gets a formal proof at all.

[–] CapedStanker@beehaw.org 1 points 8 hours ago

Sure, but it works, and that's what we build upon. And then people build upon that. If we really wanted, we could say simple loop is building upon the work that humans did when we simply invented/discovered counting.