+ 1

How can i make a self learning and evolving programme using C++?

I want to create a programe that learns to drive a bike or a car in a game using C++. i cannot find suitable article on the internet that can help me. Kindly help me if you can. Thank You.

6th Nov 2020, 5:00 PM
Ved Munj
Ved Munj - avatar
10 Respostas
+ 4
Mahmoud 'Carbon' Saghraoui You mind expanding on why you recommend using Python for creating "a 'self learning' program"? In what capacity is Python always the recommended language for writing something so complex and involved?
6th Nov 2020, 10:46 PM
David Carroll
David Carroll - avatar
+ 1
Mahmoud 'Carbon' Saghraoui Thanks for the response. I'm assuming the OP is aware of the general recommendation for Python, but really wants to figure out how to approach this with C++. I was hoping for some new insight based on first hand experience rather than an echo of the typical sound bites from articles - often written for beginners, by non developers - targeting people in data sciences, rather than software engineering. Python as a glue language certainly makes ML modeling accessible to those who aren't also experienced software engineers already proficient in other languages like C++. But, there is still a need for the short supply of those who can implement models and new algorithms in C++. It's also not unheard of for models to be prototyped, tested, and validated using Python, then converted to C++. It just depends on the use case and team available. Hopefully this makes sense in the context of this question. 😉👌
8th Nov 2020, 6:19 AM
David Carroll
David Carroll - avatar
+ 1
Ved Munj It's unclear if you already have ML experience or not. Assuming you don't... so... I'm recommending these articles and video links. Hopefully, they will help get you started. Excellent video from 2015 to give you understanding of NEAT (Neuro Evolution of Augmented Topologies) for learning to play Super Mario. Definitely search for more information on this. https://youtu.be/qv6UVOQ0F44 ML C++ Specific Articles: https://www.analyticsvidhya.com/blog/2020/05/introduction-machine-learning-libraries-c/ https://lmemsm.dreamwidth.org/16168.html https://analyticsindiamag.com/top-10-libraries-in-c-c-for-machine-learning/ https://towardsdatascience.com/practical-machine-learning-with-c-and-grt-a54857972434 6 Part C++ ML Tutorial Series: https://www.youtube.com/playlist?list=PL79n_WS-sPHKklEvOLiM1K94oJBsGnz71 Also, you might want to check out this course starting Nov 9th: https://www.coursera.org/learn/machine-learning
8th Nov 2020, 6:20 AM
David Carroll
David Carroll - avatar
0
if want scripting language maybe C# could suit your needs If want more performance, C/C++ or Rust may be the choice
7th Nov 2020, 2:19 PM
Kiwwi#
Kiwwi# - avatar
0
I happen to come across this video as well. Both the short video and comments are consistent with my reply to Mahmoud 'Carbon' Saghraoui. https://youtu.be/zzNW9ZXU434 Hope this is useful. 😉👌
8th Nov 2020, 6:23 AM
David Carroll
David Carroll - avatar
- 1
David Carroll, The user's question already contains an error, there is a difference between AI and Machine Learning. " I want to create a programe that learns to drive a bike or a car in a game using C++ " that's machine learning, and Python is known to be the best language for machine learning proven in a large number of articles. Here is why Python is better than C++. POWERFUL LIBRARIES: Why is this because Python having lot of libraries which are more powerful than anything and mostly written in C language which is predecessor of C++. VERSATILITY IN EVERY FIELD: So we don't have to take care of performance and the speed for the time complexity. Also Python is the language which is getting widely used to only for machine learning, artificial intelligence, Natural Language Processing neural network as well as data mining. These are the some of many areas which made the Python hero of today. HIGH PERFORMANCE & WIDE COMMUNITY SUPPORT: You can found built-in libraries for most of the artificial intelligence or any other fields methods which are developed by the worldwide developers of the Python community. They are highly efficient and can handle millions of millions records or you can say dataframes in Python. Why we should choose the Python over C++, EASY TO LEARN, UNDERSTAND & ELASTICITY: Because it is because it is easy to use it is very simple and having very very elastic structure that can be stretched to any levels. CROSS PLATFORM: Also every python code is cross platform which mean it can run on any platform like Windows, Linux, Macintosh or any other platforms which you like to use. LESS LINES OF CODE: Everyone knows Python takes very less number of lines to code anything. Famous “hello world” program can be written in a single line. And finally this: https://www.netguru.com/blog/cpp-vs-python#:~:text=In%20this%20sense%2C%20Python%20comes,without%20having%20to%20implement%20them.
7th Nov 2020, 10:26 AM
Carbon
Carbon - avatar
- 4
If you want to make a 'self learning' program (artificial intelligence) then use Python instead of C++.
6th Nov 2020, 5:18 PM
Carbon
Carbon - avatar