go-gsgp
所属分类:人工智能/神经网络/深度学习
开发工具:GO
文件大小:77KB
下载次数:0
上传日期:2018-11-16 23:23:44
上 传 者:
sh-1993
说明: 几何语义遗传编程移植到Go
(Geometric Semantic Genetic Programming ported to Go)
文件列表:
LICENSE.txt (34520, 2018-11-17)
configuration.ini (283, 2018-11-17)
evolution.proto (877, 2018-11-17)
kernels.cu (8902, 2018-11-17)
main_cpu.go (50320, 2018-11-17)
main_gpu.go (40045, 2018-11-17)
main_test.go (3569, 2018-11-17)
operators_effects.go (41714, 2018-11-17)
pb (0, 2018-11-17)
pb\evolution.pb.go (10417, 2018-11-17)
runner (0, 2018-11-17)
runner\autorun (0, 2018-11-17)
runner\autorun\__init__.py (0, 2018-11-17)
runner\autorun\reporter.py (36181, 2018-11-17)
runner\autorun\runner.py (32658, 2018-11-17)
runner\setup.py (470, 2018-11-17)
runner\tests (0, 2018-11-17)
runner\tests\__init__.py (0, 2018-11-17)
runner\tests\test_reporter.py (515, 2018-11-17)
runner\tests\test_runner.py (7030, 2018-11-17)
# go-gsgp
Geometric Semantic Genetic Programming ported to Go
The original code (by Mauro Castelli) is available at http://gsgp.sf.net
This version is compatible with the version 1.0 and features:
- shorter, safer Go code;
- better reading of configuration files;
- better handing of command line arguments.
# Building
To generate protobuf code, get protobuf on your host, then
go get github.com/golang/protobuf/protoc-gen-go
To include git version number, compile using:
go build -ldflags "-X main.gitCommit=`git describe --long --dirty --tags --always`"
The commit will show up when running with `-version` flag.
# Usage
go get github.com/akiross/go-gsgp
$GOPATH/bin/go-gsgp -train_file train_dataset -test_file test_dataset
To change parameters, edit the `configuration.ini` file.
The train and test files have the following format:
n_VARS
m_EXAMPLES
V11 V12 V3 ... V1n T
V21 V22 V3 ... V2n T
...
Vm1 Vm2 V3 ... Vmn T
Where, the first line contains the number `n` of variables, the second line
contains the number `m` of cases in the dataset. Then, follow `m` lines of
`n+1` space-separated columns, where the last column is the target value.
# Initialization via semantic feeding
Instead of randomly generating all the initial individuals, and computing
their semantic, it is possible to feed some pre-computed semantics via files.
To do so, provide a list of files as positional arguments to the program:
$ go-gsgp [options] semantic1 semantic2 ... semanticN
The files consist in a semantic vector with one value per line. The file shall
contain the semantic values for the training set followed by the test values.
近期下载者:
相关文件:
收藏者: