Genetic Algorithms library written in Go / golang

Overview

Description

Genetic Algorithms for Go/Golang

Install

$ go install git://github.com/thoj/go-galib.git

Compiling examples: $ git clone git://github.com/thoj/go-galib.git $ cd go-galib $ cd examples $ go build floating.go $ ./floating

Use

See example/*

Issues
  • Upgrade for go 1.2 compatibility

    Upgrade for go 1.2 compatibility

    This is an upgrade that, in short:

    • Replaces container/vector with slices, when appropriate, or container/list otherwise
    • Brings the examples namespace up to par with modern go 1.2 installation

    I made some assumptions about how you were using the container/vector (now deprecated), but the program still appears to run. I went ahead and upgraded the examples, too. They're in the github.com/thoj namespace so you can install directly from there and use anywhere on the system.

    That's about it. I'd appreciate if you could review my update to make sure it looks clean -- I left the original code commented out.

    opened by booherbg 1
  • Add GAMutatorRandom to replace one gene with a random one.

    Add GAMutatorRandom to replace one gene with a random one.

    This is not super-efficient because it creates a complete randomized genome, but it's good for my current needs and does not require to change the GAGenome interface.

    opened by subruber 0
  • Fix MutatorMulti for > 2 mutators and make code more idiomatic

    Fix MutatorMulti for > 2 mutators and make code more idiomatic

    Hello, I have fixed an issue with the GAMutatorMulti. The current code does not select the mutators with equal probability except in the case of 2 mutators (and the trivial case of 1 mutator).

    I also cleaned up the code a bit, made it more idiomatic and added a test (which I used to test my fix).

    Thanks!

    opened by subruber 0
  • Probably broken

    Probably broken

    When I launch examples/ordered_int.go it writes down 10 absolutely same Genomes, and all are mostly wrong ... (for example: [0 1 2 16 6 13 3 5 10 9 8 11 4 14 15 7 12] with fitness 88.00)

    opened by Hinogary 0
Owner
Thomas Jager
Thomas Jager
Golang Genetic Algorithm

goga Golang implementation of a genetic algorithm. See ./examples for info on how to use the library. Overview Goga is a genetic algorithm solution wr

null 160 May 12, 2022
Genetic Algorithm and Particle Swarm Optimization

evoli Genetic Algorithm and Particle Swarm Optimization written in Go Example Problem Given f(x,y) = cos(x^2 * y^2) * 1/(x^2 * y^2 + 1) Find (x,y) suc

Guillaume Simonneau 22 Feb 20, 2022
k-modes and k-prototypes clustering algorithms implementation in Go

go-cluster GO implementation of clustering algorithms: k-modes and k-prototypes. K-modes algorithm is very similar to well-known clustering algorithm

e-Xpert Solutions 31 Mar 14, 2022
Collaborative Filtering (CF) Algorithms in Go!

Go Recommend Recommendation algorithms (Collaborative Filtering) in Go! Background Collaborative Filtering (CF) is oftentimes used for item recommenda

Tim Kaye 185 May 14, 2022
Evolutionary Algorithms in Go

Evo Evo is a framework for implementing evolutionary algorithms in Go. go get github.com/cbarrick/evo Documentation https://godoc.org/github.com/cbar

Chris Barrick 112 Apr 18, 2022
A high-performance timeline tracing library for Golang, used by TiDB

Minitrace-Go A high-performance, ergonomic timeline tracing library for Golang. Basic Usage package main import ( "context" "fmt" "strcon

TiKV Project 43 May 5, 2022
Go (Golang) encrypted deep learning library; Fully homomorphic encryption over neural network graphs

DC DarkLantern A lantern is a portable case that protects light, A dark lantern is one who's light can be hidden at will. DC DarkLantern is a golang i

Raven 1 Dec 2, 2021
Neural Networks written in go

gobrain Neural Networks written in go Getting Started The version 1.0.0 includes just basic Neural Network functions such as Feed Forward and Elman Re

Go Machine Learning 522 May 3, 2022
A recommender system service based on collaborative filtering written in Go

Language: English | 中文 gorse: Go Recommender System Engine Build Coverage Report GoDoc RTD Demo gorse is an offline recommender system backend based o

Zhenghao Zhang 5.7k May 11, 2022
A Naive Bayes SMS spam classifier written in Go.

Ham (SMS spam classifier) Summary The purpose of this project is to demonstrate a simple probabilistic SMS spam classifier in Go. This supervised lear

Dan Wolf 11 Aug 17, 2021
k-means clustering algorithm implementation written in Go

kmeans k-means clustering algorithm implementation written in Go What It Does k-means clustering partitions a multi-dimensional data set into k cluste

Christian Muehlhaeuser 374 Apr 27, 2022
a* pathfinding algorithm written in go

astar a* (a-star) pathfinding algorithm written in go Wikipedia: EN: A* search algorithm DE: A*-Algorithmus Install go get github.com/jpierer/[email protected]

Julian Pierer 26 Mar 21, 2022
A simple utility, written in Go, for interacting with Salesforce.

Salesforce CLI A simple utility, written in Go, for interacting with Salesforce. Currently only specific functionality is implemented, and the output

Darren Parkinson 0 Dec 14, 2021
A simple yet customisable program written in go to make hackerman-like terminal effects.

stuntman a simple program written in go to make you look like a hackerman Demo stuntman -binar -width 90 -color cyan stuntman -text -width 90 -vertgap

Solaris 13 Mar 2, 2022
Suricate-bank - API to transfer money between accounts at Suricate Bank,written in Go

⚠️ WORK IN PROGRESS ⚠️ Suricate Bank is an api that creates accounts and transfe

João Saraceni 11 May 8, 2022
ncurses matrix/log app written in go to visualize chess problems.

dorrella/matrix-curses Matrix using ncurses and gbin/goncurses. Visual matrix based puzzles Install need libncurses-dev. Probably hard to run on windo

null 0 Jan 12, 2022
Gorgonia is a library that helps facilitate machine learning in Go.

Gorgonia is a library that helps facilitate machine learning in Go. Write and evaluate mathematical equations involving multidimensional arrays easily

Gorgonia 4.5k May 16, 2022
Go package for OCR (Optical Character Recognition), by using Tesseract C++ library

gosseract OCR Golang OCR package, by using Tesseract C++ library. OCR Server Do you just want OCR server, or see the working example of this package?

Hiromu OCHIAI 1.8k May 15, 2022
onnx-go gives the ability to import a pre-trained neural network within Go without being linked to a framework or library.

This is a Go Interface to Open Neural Network Exchange (ONNX). Overview onnx-go contains primitives to decode a onnx binary model into a computation b

Olivier Wulveryck 388 May 1, 2022