Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
iiii92194yBecause script kiddies.
But seriously it's just a better interface. Code is readable in the most part and you don't need number crunching performance to call a library which is already optimized AF -
@iiii reasonable. I've been trying to get over my anti-pythonism lately. But man the non c-like syntax hurts my eyes :"
-
Because the Google brain (TF) and MXNet teams picked it, and that forms the vast majority ML applications out there.
As for why they picked it - I can only guess, but I wouldn't be surprised if it's because it's one of the very few popular, general purpose modern languages to support sane large numbers, and complex numbers.
Being able to raise numbers to large powers without ever really worrying about overflow or types is really a nice thing not to worry about. And in the complex domain, being able to write `5+7i` rather than `Complex.of(5, 7)` or similar makes code *way* more readable and easy to understand.
I'm no fan of Python in general, but this is one area where I wish other langs would catch up. -
iiii92194y@AlmondSauce to be fair, I really doubt the TF library itself has much python code, so the point about numbers in python is probably wrong. I'd bet it is a very performance optimised C++ underneath or something like that.
-
@iiii Yeah, that's very true. I guess it's literally just because a lot of data scientists used it already, in that case. (Though I guess the reasons I've given above are part of the reason why they were using it already.)
-
ML researches seem to love that language, I couldn't despise it more
I guess you can do tensorflow with JavaScript, but that seems just as unnecessary
Other options would probably be Java or C#, but I haven't messed with ML in those languages at all -
iiii92194y@AkshayTolwani it does, but it deduces what it is so you don't need to change its type constantly.
-
@Jilano Python is definitely not a language for "beginners" or "people that are just starting out", it's just a good fit for tutorials, etc... Since it has a simple syntax and is quick to write no need for BS boilerplate code. This makes it a really powerful language where you can write good code faster than most languages. Ex. if you want to get the last item of a list there is no need to do length - 1 you just do: "my_list[-1]" tell me that's not waay better. Simple does not mean basic!
-
iiii92194y@Jilano which language in your opinion is the best for teaching? (Plz, don't say JavaScript)
-
Python55584y@iiii Why would that be a bad thing?
Python also supports object oriented programming, but you don’t have to use it unless you want to, just as in Java. -
Python55584y@iiii I really don’t buy in to that argument, but that’s for another time.
But again, just because the language supports OOP you doesn’t mean you have to use it if you don’t want to. -
Python55584yJust for reference, my first language was C# in college and we never touched any OOP design patterns in the first year.
Related Rants
Why is every fucking machine learning tutorial made with fucking python code
rant
fuck python
machine learning
cancel python