onegpy.operators.initializer.RandomInitializer

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

Generate a new solution.

__init__(t_prob, max_depth, problem)[source]
Parameters:
  • 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__(t_prob, max_depth, problem)
param t_prob:float((0, 1]). probability of terminal node.
not_changeable_warning()

Attributes

func_bank
n_in
n_out