primaryobjects / ai-programmer Goto Github PK
View Code? Open in Web Editor NEWUsing artificial intelligence and genetic algorithms to automatically write programs. Tutorial: http://www.primaryobjects.com/cms/article149
Using artificial intelligence and genetic algorithms to automatically write programs. Tutorial: http://www.primaryobjects.com/cms/article149
This project sounds amazing! But due to my lack of knowledge on this, I have no idea what to do. Like what do I need to install or do? To get it working I would love feedback this is probably my first time using A.I I am more of a malware type of gal but I don't get
All love
Cherri
Hi, I had a look at your project. I find the idea interesting. I got a bit bored waiting for it to run so made some performance improvements, which you can see in my fork:
https://github.com/GilesBathgate/AI-Programmer
I removed some stuff you probably wanted so its not likely you want to merge it. But just thought I would let you know. I reckon its about twice as fast (a test that took 30s initially took 14s afterwards)
But have a try.... or not, up to you ;)
I just want to start off by saying this is fascinating, great work.
I have been developing software for almost 20 years but have only just started to scratch the surface on AI.
There is a ton of useful information in this project that has been very helpful to me, so thank you.
I did notice a couple of things regarding the scoring system and elitism.
I think scoring is by far one of the best methods to increase performance, especially if performance itself is also what is being scored.
In other words, if two genomes have a score of 700 but achieved that fitness in different ways, then a secondary score for performance or time to execute could drastically enhance scoring and reduce the time it takes to test, allowing for more generations to be created and tested.
This additional performance scoring could also be used to dynamically determine max number of applicable loops, instead of hard coding a max.
Regarding elitism, by definition it is supposed to ensure the best genes are retrained in case mutation has a negative impact, in essence it provides stability. Looking at the code however it seems the last two genomes of the current generation are being added to the next generation. I could be missing something and probably am, but shouldn't this be picking the two best scoring genomes of the current generation to be copied into the next generation?
Thanks again for the great code and articles!
Nick Hanshaw
wasn't really sure where to leave you a msg so I figured here was as well as anywhere else.
2 noob thoughts.
Not sure if that second option would harm the randomality as the extra compiler info might lend to it however it could still be used after a successful completion for finding optimized code.
sorry for the bad English its not my strong suit.
I want to know its basics, like to put AI in my model
What's the license for this code?
I think this project is really interesting and wanted to modify somethings(like adding cudafy) but I was wondering if you had given any thought to adding a license to the project? Thanks!
Hello,
I tried to reproduce your work in the Julia programming language for my master thesis.
I managed to get impressive results and very good convergence for all the most simple tasks that you covered (string, addition, countdown, logic, ...).
The only one that is resisting me at the moment is the program that simply prints "hello". This looks quite stupid considering that "Hi!" and "reddit" work great.
Here is my idea of why it fails :
In the beginning of the GA, I quickly see patterns appearing in the code that look like this : "100+[++++..]"
Indeed, because of the strange nature of the word hello, this program gives a fitness that is only 4 points away from the perfect score. The problem is that this structure is appearing so fast, and has such a good fitness, that it conquers the whole population very quickly, and the algorithm gets stuck in an evolutionary dead-end.
I don't know if you are still invested in this project, but if you have any insight that could help me I would very much appreciate it !
Thanks,
Jonas Gillain
Royal Military Academy of Belgium
what scenarios of it in reality? Whether It can be used to generate code for common business, like E-commerce website or webpage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.