onegpy.operators.initializer.PopulationRandomInitializer

class onegpy.operators.initializer.PopulationRandomInitializer(k, t_prob, max_depth, problem)[source]

Generate solutions using random initializer.

__init__(k, t_prob, max_depth, problem)[source]
Parameters:
  • k – int. the number of solutions to generate.
  • t_prob – float((0, 1]). probability of terminal node.
  • max_depth – int. The limit of depth of the solution.
  • problem – problem object. problem to solve.

Methods

__init__(k, t_prob, max_depth, problem)
param k:int. the number of solutions to generate.
not_changeable_warning()

Attributes

func_bank
n_in
n_out