+ 1

Python for AI and ML

Why Python is used for AI and ML while it doesn't have a good performance comparing to another languages?

25th Jan 2021, 12:18 PM
take_it_easy
take_it_easy - avatar
4 Antworten
+ 7
- Python is easy to learn - Python's syntax is easy - Python save your time and effort [ Most important for do ML, AI using Python ] - Python has many modules . And many more....
25th Jan 2021, 1:29 PM
Abhiyantā
Abhiyantā - avatar
+ 2
It's easier to use that anything low level, has great libraries and can run on a potato. In terms of performance, the low-level libraries that are behind the more convenient Python wrappers are written primarily in C++, so you do not get performance hit there. As an example just compare a simple TF Python code with the equivalent C++ code. Python is much more concise, easier to follow and develop.
25th Jan 2021, 12:33 PM
Mateusz Malenta
Mateusz Malenta - avatar
+ 1
The performance is not lower. TensorFlow in Python for example performs at the same level, if not faster than the barebones C++ API.
25th Jan 2021, 6:49 PM
Mateusz Malenta
Mateusz Malenta - avatar
- 1
Yeah i see it's very simple to learn and has a lot of benefits to use but my question is about performance. Even if it written in C and C++, it's performance still low compared to java or C# or others...
25th Jan 2021, 5:47 PM
take_it_easy
take_it_easy - avatar