+ 9

Could C# be used for AI and machine learning...

... or should i learn python for that? (i am not experienced with that yet, but it'd be pretty cool if i knew how to do it)

19th Jul 2018, 1:43 PM
Timothy Joseph
Timothy Joseph - avatar
18 Respostas
+ 14
A.I. , or Machine Learning (a sub-field of A.I.) are mainly algorithms which can be implemented in any programming language. People will tell you that Python makes it easier to implement them, which is true to some extent (I'm not sure of the specific modules involved, if any), and there is no harm in picking up one more programming language. Have you looked into some machine learning algorithms? Did you face any problems implementing them in C#?
19th Jul 2018, 2:00 PM
Hatsy Rei
Hatsy Rei - avatar
+ 7
Python has libraries dedicated entirely to machine learning. sklearn (scikit-learn) implements almost all important algorithms you need. nltk (natural language toolkit) helps a lot with data manipulation for text mining. Generally you'll want to work with NumPy and SciPy. They are, if I remember correctly, coded in C++, which makes them execute faster than you'd expect in Python. For advanced methods, you can for example use Google's TensorFlow for Deep Learning, Keras makes it more user-friendly. They're available for Python and C++, but not for C#. Python codes are way easier to implement than C#. Python arrays and NumPy matrices can also contain an unlimited amount of different data types which helps A LOT in machine learning. As far as I know, C# doesn't support that. As Hatsy Rei said, you can implement ML algorithms with every language you want. I've seen books about ML in Java, R, Go and more exotic languages. However, in my opinion Python is the way to go.
21st Jul 2018, 4:14 AM
Chris
Chris - avatar
+ 6
why not?
19th Jul 2018, 7:01 PM
Fatma B Dincaslan
Fatma B Dincaslan - avatar
+ 5
Maybe, but R and Python are more suitable for AI and Machine Learning.
20th Jul 2018, 3:17 PM
Mark van Gennip
Mark van Gennip - avatar
+ 4
Pink Are you a student? Because why not. https://www.jetbrains.com/student/
25th Jul 2018, 8:10 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
c# can be used for implementation of specific modules but python has the upper hand
20th Jul 2018, 3:38 PM
Anoop Krishnan G S
Anoop Krishnan G S - avatar
+ 3
python is very easy to implement compared to C#
20th Jul 2018, 3:48 PM
Michael
Michael - avatar
+ 3
I totally agree with Mark van Gennip.
20th Jul 2018, 9:26 PM
Fatma B Dincaslan
Fatma B Dincaslan - avatar
+ 3
Python is the best choice
20th Jul 2018, 11:42 PM
Ali Mohsin
Ali Mohsin - avatar
+ 3
As long as you have a student email, you can apply for the license which would grant you access to complete features of JetBrains products (or at least what is stated/advertised), PyCharm included. No harm giving it a try. I have my own, which is also renewable. Too bad I don't really make use of it to its entirety, but still.
25th Jul 2018, 8:14 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
У меня одноклассник ходит на курсы робототехники, вот он на С# пишет, а я на С# 2д игру делать собираюсь.
19th Jul 2018, 6:51 PM
Владислав Крендель
Владислав Крендель - avatar
+ 2
Было бы не плохо глянуть какой-нибуть пример использования C# в искусственном интеллекте... Никто не встречал?
20th Jul 2018, 8:23 AM
Andrew Walker
Andrew Walker - avatar
+ 2
Hatsy Rei , i am a student but not in computer science or software engineering i imagine the student thing applies only to people who go to these kinds of schools
25th Jul 2018, 8:11 AM
Timothy Joseph
Timothy Joseph - avatar
+ 1
C# can be used for AI ...
21st Jul 2018, 6:29 AM
Mohit Kabra
+ 1
so i chose python as my next language to learn, i now need a ide, i am thinking of what Chris said and i might try SciPy and NumPy, but i've also seen a lot of people using Anaconda+VsCode and sometimes even Processing with Python Mode. i need help with choosing an ide from the ones i mentioned above. (i will not try PyCharm since you need premium to unlock the ML libraries)
25th Jul 2018, 7:40 AM
Timothy Joseph
Timothy Joseph - avatar
+ 1
yeah... i am still in middle school and i can't get a student email adress. i think i'll give anaconda+VsCode/spyder a try
25th Jul 2018, 8:16 AM
Timothy Joseph
Timothy Joseph - avatar
+ 1
a little update: i got anaconda+vscode and it's really fun building little apps. the problem: the enviroment in which you type gets very cluttered very quickly and when i go out into the real world i feel weird. This never really happened with VS writting C#. it's kinda weird. What i firstly thought i should do is to change the font size to a nice size, i currently have it set at 12.5 (14 stock), this helped a bit. My second idea is to just organise my code, but i don't really know how to do that, i haven't reached that point in the course and i don't want to do it myself and possibly fail. This is a preview of my messiness: *this is not ai by any means* https://code.sololearn.com/cB6TCQ6yWqGK/?ref=app ^^ i am really proud of that This isn't that big of a issue if i rest my eyes more often, it also won't be a problem when i finally learn how to organise stuff into classes. *i didn't have a problen when i was coding in C#(with vs not vsc)
25th Jul 2018, 7:30 PM
Timothy Joseph
Timothy Joseph - avatar
0
another update: i've learned how to organize stuff into classes, functions and different files.
27th Jul 2018, 3:09 PM
Timothy Joseph
Timothy Joseph - avatar