class Ai4cr::Team(T)

Overview

TODO update/refactor based on newer Breed::Manager's

Defined in:

ai4cr/team.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(team_size : Int32, training_round_qty : Int32 = 1, **member_config) #

[View source]

Instance Method Detail

def breed : Array(T) #

def breed(delta = (rand*2 - 0.5)) : Array(T)


[View source]
def member_config #

[View source]
def member_config=(member_config) #

[View source]
def team_indexes : Array(Int32) #

[View source]
def team_last_id : Int32 #

[View source]
def team_last_id=(team_last_id : Int32) #

[View source]
def team_members : Array(T) #

[View source]
def team_size : Int32 #

[View source]
def team_size=(team_size : Int32) #

[View source]
def train(inputs_given, outputs_expected, until_min_avg_error = UNTIL_MIN_AVG_ERROR_DEFAULT) #

[View source]
def training_round_indexes : Array(Int32) #

[View source]
def training_round_indexes=(training_round_indexes : Array(Int32)) #

[View source]
def training_round_qty : Int32 #

[View source]
def training_round_qty=(training_round_qty : Int32) #

[View source]