<commit_before>// Package genetics holds data holders and helper utilities used to implement genetic evolution algorithm
package genetics

import (
	"github.com/leesper/go_rng"
	"time"
)

// The innovation method to be applied
const (
	// The novelty will be introduced by new NN node
	NEWNODE = iota
	// The novelty will be introduced by new NN link
	NEWLINK
)

// Mutators are variables that specify a kind of mutation of connection weights between NN nodes
const (
	//This adds Gaussian noise to the weights
	GAUSSIAN = iota
	//This sets weights to numbers chosen from a Gaussian distribution
	COLDGAUSSIAN
)

// The Gaussian random number generator
const gaussian = rng.NewGaussianGenerator(time.Now().UnixNano())<commit_msg>Changed RNG to be var instead of const<commit_after>// Package genetics holds data holders and helper utilities used to implement genetic evolution algorithm
package genetics

import (
	"github.com/leesper/go_rng"
	"time"
)

// The innovation method to be applied
const (
	// The novelty will be introduced by new NN node
	NEWNODE = iota
	// The novelty will be introduced by new NN link
	NEWLINK
)

// Mutators are variables that specify a kind of mutation of connection weights between NN nodes
const (
	//This adds Gaussian noise to the weights
	GAUSSIAN = iota
	//This sets weights to numbers chosen from a Gaussian distribution
	COLDGAUSSIAN
)

// The Gaussian random number generator
var gaussian = rng.NewGaussianGenerator(time.Now().UnixNano())
{'fraction_non_alphanumeric': 0.05941931127616475, 'fraction_numerical': 0.0, 'mean_word_length': 4.110344827586207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7022811', 'n_tokens_mistral': 425, 'n_tokens_neox': 400, 'n_words': 190}