如何在Erlang中正确运行一套TWEANN基准? [英] How to run a set of TWEANN benchmarks in Erlang correctly?

查看:291
本文介绍了如何在Erlang中正确运行一套TWEANN基准?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读Gene I Sher的通过Erlang进行神经演化的手册,并试图复制所有在此描述的实验。
一切正常,直到我来到第19章,其中阅读

I've been reading Gene I Sher's Handbook to neuroevolution through Erlang and trying to replicate all the experiments described there. And it all worked, until I came to chapter 19, which read


设置好所有内容后,我们会为每个注册的实验设置执行基准测试,并运行完毕。为此,我们只需修改我们的基准测试器模块中使用的约束,然后执行 benchmarker:start(Experiment_Name) ,对于我们的每个实验设置。

Having set everything up, we execute the benchmark for every noted experimental setup, and run it to completion. To do this, we simply modify the constraints used in our benchmarker module, and then execute benchmarker:start(Experiment_Name), for every of our experimental setups.

共有14个实验,命名为:

There are 14 experiments altogether, named:



1. [SlidingWindow5]
2。 [SlidingWindow10]结果,3。 [SlidingWindow20]
4. [SlidingWindow50]
5。 [SlidingWindow100]


1. [SlidingWindow5]
2. [SlidingWindow10]
3. [SlidingWindow20]
4. [SlidingWindow50]
5. [SlidingWindow100]


< BR> 1。 [ChartPlane5X10]结果,2。 [ChartPlane5X20]结果,3。 [ChartPlane10X10]结果,4。 [ChartPlane10X20]结果,5。 [ChartPlane20X10]结果,6。 [ChartPlane20X20]结果,7。 [ChartPlane50X10]结果,8。 [ChartPlane50X20]结果,9。 [ChartPlane100x10]


1. [ChartPlane5X10]
2. [ChartPlane5X20]
3. [ChartPlane10X10]
4. [ChartPlane10X20]
5. [ChartPlane20X10]
6. [ChartPlane20X20]
7. [ChartPlane50X10]
8. [ChartPlane50X20]
9. [ChartPlane100x10]

只需启动一个polis并运行 benchmarker:start(SlidingWindow5)。在erlang shell中导致 * 1:变量SlidingWindow5未绑定

Just starting a polis and running benchmarker:start(SlidingWindow5). in an erlang shell results in * 1: variable 'SlidingWindow5' is unbound.

我可能是钝的,没有做明显的事情,但我真的希望了解哪些参数传递给基准测试员:start()

I'm probably being obtuse and not doing something obvious, but I really wish to understand which arguments to pass to the benchmarker:start().

阅读源代码迄今没有帮助。

我认为阅读整本书没有必要弄清楚如何使这段特定的代码工作。

I think that reading the whole book is not necessary to figure out how to make this particular piece of code work.

推荐答案

好的我需要使用全小写名称: benchmarker:start(slidingwindow5)。
这个答案是正确的,但不确定;它给出了解决方案,但并没有解释为什么解决方案是从Erlang的角度来看的。请不要upvote直到它。

All right. I needed to use an all-lowercase name: benchmarker:start(slidingwindow5).. This answer is correct, but inconclusive; it gives the solution but does not explain why the solution is as it is from an Erlang perspective. Please don't upvote it until it does.

这篇关于如何在Erlang中正确运行一套TWEANN基准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆