Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code generation with Machine learning [closed]

I am very interested in machine learning. i have an idea to develop a program which can generate a source code according to a given standards. for example if i have trained the system to how to write something to console and the standard way of using variables then it should be able to generate a source code for anything which i ask to print something to the console, likewise. Is there any resources source codes or existing open source projects?

like image 475
Keshan Avatar asked Oct 10 '22 18:10

Keshan


2 Answers

You might be interested in Genetic Programming. It's a genetic algorithm that operates directly on programs.

The demo I saw used Lisp (Common Lisp, I think), which is a natural fit, but any language with eval should be decently easy to use.

The Wikipedia page lists a whole pile of implementations, many of them open source, so you should be able to start there.

like image 153
Nathan Shively-Sanders Avatar answered Oct 13 '22 11:10

Nathan Shively-Sanders


This sounds like this is would be a Constraint Satisfaction [CSPs] or Search Problem, these approaches would probably be your best bet:

  1. Genetic Algorithm
  2. Some sort of goal seaking heuristic [with negative/positive reenforcements]
  3. The algorithms that are under the CSP category.
like image 31
monksy Avatar answered Oct 13 '22 12:10

monksy