mutagens

package
v0.0.0-...-7591e67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyMutagen

type DummyMutagen struct {
	// contains filtered or unexported fields
}

DummyMutagen is simple randomized mutagen

func NewDummyMutagen

func NewDummyMutagen(chance float64, mutationCount int) (dm *DummyMutagen)

NewDummyMutagen constructs DummyMutagen with specified mutation chance and amount of mutations that should be applied per cycle

func (*DummyMutagen) Mutate

func (dm *DummyMutagen) Mutate(network *neuralnetwork.NeuralNetwork)

Dummy implementaion of Mutagen inteface Mutate method For DummyMutagen it gets pseudo-random number and validates if number in chance bounds. After method applies randomized mutation for random weight and bias in neuralnetwork.NeuralNetwork

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL