Which language should I use for Artificial intelligence on web projects

前端 未结 9 2451
北恋
北恋 2021-02-09 15:33

I have to do one project for my thesis involving Artificial intelligence, collaborative filtering and machine learning methods.

I only know PHP/mysq/JS, and there is not

相关标签:
9条回答
  • 2021-02-09 15:40

    I believe Python is nice for this sort of tasks because of it's flexibility. Using the numpy/scipy libraries together with a nice plotting lib (chaco or matplotlib for instance) makes the workflow of working with the data and algorithms easy and you can lab around with the code in the live interpreter in an almost matlab-like manner. Change a line of code here, cleanse the data there and watch the whole thing live in a graph window without having to bother with recompilation etc.

    Once you settled on the algorithms it is fairly easy to profile the code and move hotspots into C/C++ or Fortran for instance if you are worried about performance.

    (you could even write the stuff in Jython and drop down into java for the performance-heavy bits of the code if you really like to be on the JVM platform)

    0 讨论(0)
  • 2021-02-09 15:41

    You can use either Java or Python. A lot of resources are available for both languages.

    I think following books might suit for your purpose.

    Programming collective intelligence: building smart web 2.0

    collective intelligence in action

    0 讨论(0)
  • 2021-02-09 15:41

    Which language should i choose java or python.

    Here are a few things to consider:

    • java is more widely used (presumably more mature code "out there" to look at - but I haven't tested that out)

    • python is more prolific (you write faster in python than in java), and from learning the language to writing the code that you want takes less in python than in java

    • python is multi-paradigm, java is (almost) strictly OOP

    • java is compiled (whereas python is scripted); this means that java finds your errors at compilation; python at execution - this can make a big difference, depending on your development style/practices

    • java is more strictly defined and much more verbose than python. Where in java you have to formalize your contracts, in python you use duck-typing.

    In the end, the best you could do is set up a small project, write it in both languages and see what you end up preferring. You may also find some restrictions that you can't get around for one of the languages.

    In the end it's up to you :)

    Edit: that was not an exhaustive list and I tried to be as impartial as I could (but that ends here: I'd go with python :D)

    0 讨论(0)
  • 2021-02-09 15:43

    AI is not a language or a specific problem like summation or finding an average of some numbers. It's the intelligence which is going to be developed artificially. And to make a system intelligent especially a computer you can use any language that computer can understand and you are comfortable with (C, Java, Python, C++). A very simple AI example could be tic-tac-toe. This game could be made by using any language you would like to. The important thing is the algorithm that needs to be developed. AI is a vast area and it comprises of many things like Image processing, NLP, Machine learning, Psychology and more. And most importantly one has to be very strong in Mathematics, which is the most important and integral part of softcomputing. So again AI is not a language rather intelligent algorithm based on pure mathematics.

    0 讨论(0)
  • 2021-02-09 15:57

    Does it really matter which language your books use? I mean, you're not gonna copy-paste those examples. And you'll learn to recognize basic constructs (functions, loops, etc) pretty fast. It's not like learning to read Chinese.

    Talking about learning time, there's probably no definite answer to this question. I think the best is to look at examples of code both in java and python and see which seems 'nicer', easier and more familiar to you.

    Good luck!

    0 讨论(0)
  • 2021-02-09 15:59

    Pretty much any language can be used to code pretty much anything - given the effort and will. But Python has more functional programming constructs which may be more useful when you are coding AI.

    0 讨论(0)
提交回复
热议问题