r/java • • Jun 10 '24

[deleted by user]

[removed]

613 Upvotes

594 comments sorted by

View all comments

Show parent comment

21

u/webguy1979 Jun 10 '24

Ah good to know! All my experience with ML/AI has been purely academic and it always seems to be very geared towards Python. May have to go down this rabbit hole one day!

29

u/cogman10 Jun 10 '24

AFAIK, most of what's been written is actually C/C++. Python ends up getting picked because it already has the FFI setup to work nicely with those ML libraries.

This is why project panama is so important.

5

u/[deleted] Jun 10 '24

A trained ML model is usually just a bunch of numbers. Just write them down somewhere and you can load them into the same architecture model running in a different language.

1

u/[deleted] Jun 11 '24

When you need to quickly iterate on different experiments on the various layers of you model, Python is well suited to architecture these layers of C libraries calls.