• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Python and Machine Learning

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Why is python one of the best programming languages for Machine Learning?


Can you use python for web applications; for instance, deploy in Nginx?  Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy, and HTTP cache.

Thanks,
Gibran
 
Author
Posts: 8
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gibran,

There isn't really anything special about Python itself that makes it good for machine learning. Sure, Python looks nice and is easy to write code in, but there are a lot of programming languages like that.

The important thing is that lots of other people use Python for machine learning. That means that there are already a lot of ready-made Python modules, like NumPy, TensorFlow, and PyTorch, that you can download and use to do machine learning. It also means that if you ask your machine learning buddies for help writing a program, they'll probably know how to do it in Python. So it's probably mostly an accident of history that machine-learning people use Python and not Ruby or Perl.

There are also a lot of ready-made Python libraries for making web applications! Two of the most popular ones are called Django and Flask.

- Carter
 
Gibran Castillo
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Carter,

Thank you for the detail explanation regarding python and machine learning.  This is really helpful.

Is python not more efficient (performance) versus Java or C#?
Can python be used for mobile apps?
What is python mainly use in Production systems?

Moreover, thank you for making me aware of the two most popular python web frameworks, Django and Flask.

I have done some python programming and in a few lines of code, you can get a lot done to compare to other programming languages.

I want to learn/master python so that I can use it for data science and for web apps.  I would love to get a copy of the book for this purpose.

Thanks,
Gibran
 
Carter Sande
Author
Posts: 8
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gibran,

Actually, Python programs are often a little less efficient than programs written in Java or C#. But if Python makes it easier for you to write those programs in the first place, it might be worth it for you! I wrote a little bit more about Python performance in another thread if you're interested.

You usually wouldn't use Python to write a mobile app. You'd use a programming language like Objective-C or Swift to make iOS apps, and Java or Kotlin to make Android apps. (There are also cross-platform frameworks that let you make apps for all kinds of phones using languages like C# or JavaScript. I don't think there's one for Python, but maybe I just haven't heard of it yet.) If you wanted to, you could use Python to write a server for your mobile app to talk to over the Internet.

That's one of the main things Python is used for in production systems: the "back-end" services that talk to databases and keep track of users' information. People also use Python to analyze data, automate tasks, and as a scripting language inside larger programs like 3D modeling tools.

- Carter
 
Ranch Hand
Posts: 43
1
Python VI Editor Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually there is a library called kivy https://pypi.org/project/Kivy/ that "With the same codebase, you can target Windows, macOS, Linux, Android and iOS".  

Back when computers were slow, developers used languages such as C to get all the performance possible out of those pokey machines.  Now, computers (even Rasberry Pi's) are so powerful we optimize for development time instead.  That's where Python shines.  Backed by ease of coding, over 200,000 libraries of utilities and a rapidly growing community of users, Python is becoming very popular.  Yes, some of the most powerful libraries such as pandas, numpy and scipy are written in C, which give you great performance with an easy-to-use interface.  Also, Python isn't just a "toy" language.  Companies such as YouTube, Dropbox, Pinterest, and Instagram have all staked their businesses on Python.  

Hopefully you will find that Python lets you get more done (machine learning, web development, GUI applications, etc.) in less time.
 
Gibran Castillo
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Carter,

I have done Native iOS (Objective-C, a little bit with Swift) and Native Android (Java, not yet with Kotlin), Hybrid (with ionic), and responsive/adaptive websites (JavaScript, TypeScript, Angular, HTML5, etc) development and I am familiar with several other tools for mobile development.  However, I never seem any mobile development with Python, but now you point out Kivy, I'll check it out.

Thank you for the detail explanation.  I'll also follow the other conversation forum thread regarding python, thank you for sharing.

Thanks,
Gibran
 
On top of spaghetti all covered in cheese, there was this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!