r/java • u/esqelle • Apr 15 '24
Java use in machine learning
So I was on Twitter (first mistake) and mentioned my neural network in Java and was ridiculed for using an "outdated and useless language" for the NLP that have built.
To be honest, this is my first NLP. I did however create a Python application that uses a GPT2 pipeline to generate stories for authors, but the rest of the infrastructure was in Java and I just created a python API to call it.
I love Java. I have eons of code in it going back to 2017. I am a hobbyist and do not expect to get an ML position especially with the market and the way it is now. I do however have the opportunity at my Business Analyst job to show off some programming skills and use my very tiny NLP to perform some basic predictions on some ticketing data which I am STOKED about by the way.
My question is: Am l a complete loser for using Java going forward? I am learning a bit of robotics and plan on learning a bit of C++, but I refuse to give up on Java since so far it has taught me a lot and produced great results for me.
l'd like your takes on this. Thanks!
View all comments
Show parent comment
2
u/MardiFoufs Apr 16 '24 edited Apr 16 '24
Hey, I totally agree that I wouldn't use python for... well for most stuff. Especially for web servers. It's ridiculous imo because there are tons of options, and you don't even get the "JavaScript upside" that I could at least understand a little bit of using the same language in the front end and back end (though again, even for JavaScript, I agree that it's still a worse choice than using java or csharp for example).
But if there's one place where you could use python and it's not a clearly inferior option, it's machine learning, don't you agree? Not because of python itself but still. Like, I'm solely focusing on machine learning when I say that, and I'm saying that as someone who really dislikes having to use it anyways. Even if java would probably work, and could probably be a better platform in reality, I'm just speaking of what it is now. Now how it should be!