使用机器学习生成代码
我对机器学习非常感兴趣。我有一个想法,开发一个可以根据给定标准生成源代码的程序。例如,如果我已经训练系统如何向控制台写入内容以及使用变量的标准方法,那么它应该能够为我要求将内容打印到控制台的任何内容生成源代码,同样。有没有资源源码或者现有的开源项目?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能对基因编程感兴趣。它是一种直接在程序上运行的遗传算法。
我看到的演示使用了 Lisp(我认为是 Common Lisp),这是很自然的选择,但是任何带有
eval
的语言都应该非常容易使用。维基百科页面列出了一大堆实现,其中许多都是开源的,所以你应该能够从那里开始。
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.
这听起来像是一个约束满足 [CSP] 或搜索问题,这些方法可能是您最好的选择:
This sounds like this is would be a Constraint Satisfaction [CSPs] or Search Problem, these approaches would probably be your best bet: