abstract class Ai4cr::Breed::Manager(T)
- Ai4cr::Breed::Manager(T)
- Reference
- Object
Included Modules
- JSON::Serializable
Direct Known Subclasses
Defined in:
ai4cr/breed/manager.crConstant Summary
-
CHARTER =
begin min = 0.0 max = 1.0 precision = 2.to_i8 in_bw = true reversed = false AsciiBarCharter.new(min: min, max: max, precision: precision, in_bw: in_bw, inverted_colors: reversed) end
-
CHARTER = AsciiBarCharter.new(0.0, 1.0, 2.to_i8, true, false)
-
HIGH_ENOUGH_ERROR_DISTANCE_FOR_REPLACEMENT =
Math.sqrt(Float64::HIGH_ENOUGH_FOR_NETS)
-
HIGH_ENOUGH_ERROR_DISTANCE_FOR_REPLACEMENT = 1e4 # TODO: Probably should base this on some factor of the number of outputs.
-
MAX_MEMBERS_DEFAULT =
QTY_NEW_MEMBERS_DEFAULT
-
PURGE_ERROR_LIMIT_SCALE =
1
-
QTY_NEW_MEMBERS_DEFAULT =
10
-
STEP_MAJOR =
4 * STEP_MINOR
-
STEP_MINOR =
4
-
STEP_SAVE =
4 * STEP_MAJOR
Constructors
Class Method Summary
Instance Method Summary
- #auto_save(team_members, i)
- #breed(parent_a : T, parent_b : T, delta = 0.5)
- #breed_counter_tick
- #breed_id_and_delta(child, birth_id, parent_a, parent_b, delta)
- #breed_validations(parent_a : T, parent_b : T, delta)
- #build_team : Array(T)
- #build_team(qty_new_members : Int32, **params) : Array(T)
- #copy_and_mix(parent_a, parent_b, delta)
- #counter
- #counter_reset(value = 0)
- #create(**params)
- #cross_breed(team_members : Array(T))
- #estimate_better_delta(error_a : Float64, error_b : Float64)
- #estimate_better_delta(ancestor_a : T, ancestor_b : T)
- #eval_team(team_members, inputs)
- #eval_team_in_parallel(team_members, inputs)
- #eval_team_in_parallel_using_sequence(team_members, inputs_sequence)
- #gen_params
- #log_before_vs_after(beginning, before, i, i_max, verbose)
- #log_correct_guess_stats(tc_size, i, max_hists, team_members, list, recent_hists, verbose)
- #log_summary_info(member, i, j)
- #mix_nested_parts(parent_a_part, parent_b_part, delta)
- #mix_one_part_number(parent_a_part : Number, parent_b_part : Number, delta)
- #mix_one_part_string(parent_a_part : String, parent_b_part : String, delta)
-
#mix_parts(child : T, parent_a : T, parent_b : T, delta)
abstract
- #parts_to_copy(parent_a : T, parent_b : T, delta)
-
#sort_members(team_members)
def pick_to_members(team_members, max_members)
- #sort_purge_replace(max_members, team_members, purge_error_limit, i, tc_size, max_hists, list, recent_hists, verbose)
- #train_team(inputs, outputs, team_members : Array(T), max_members = MAX_MEMBERS_DEFAULT, train_qty = 1, and_cross_breed = true)
- #train_team_in_parallel(inputs, outputs, team_members, train_qty)
- #train_team_using_sequence(inputs_sequence, outputs_sequence, team_members : Array(T), io_set_text_file : Ai4cr::Utils::IoData::Abstract | Nil, max_members = MAX_MEMBERS_DEFAULT, train_qty = 1, and_cross_breed = true, purge_error_limit = -1, verbose = true)
- #update_member_comparisons(io_set_text_file, inputs, outputs, member, tc_size, training_set_seq, mem_seq, verbose)
- #update_member_correct_comparisons(output_str_matches, tc_size, member)
- #update_member_output_comparisons(io_set_text_file, outputs, member)
Constructor Detail
Class Method Detail
Instance Method Detail
def log_correct_guess_stats(tc_size, i, max_hists, team_members, list, recent_hists, verbose)
#
def sort_purge_replace(max_members, team_members, purge_error_limit, i, tc_size, max_hists, list, recent_hists, verbose)
#
def train_team(inputs, outputs, team_members : Array(T), max_members = MAX_MEMBERS_DEFAULT, train_qty = 1, and_cross_breed = true)
#
def train_team_using_sequence(inputs_sequence, outputs_sequence, team_members : Array(T), io_set_text_file : Ai4cr::Utils::IoData::Abstract | Nil, max_members = MAX_MEMBERS_DEFAULT, train_qty = 1, and_cross_breed = true, purge_error_limit = -1, verbose = true)
#
def update_member_comparisons(io_set_text_file, inputs, outputs, member, tc_size, training_set_seq, mem_seq, verbose)
#