saealib.Individual#

class saealib.Individual(population, index)[ソース]#

ベースクラス: Generic[T_Population]

Live view of one population row; structural changes invalidate it.

パラメータ:
  • population (T_Population)

  • index (int)

Methods

__init__

get_readonly_value

Retrieve the value of the specified key.

update_value

Update value in place and bump the value version.

Method Details

Individual.__init__(population, index)[ソース]#
パラメータ:
  • population (T_Population)

  • index (int)

Individual.get_readonly_value(key)[ソース]#

Retrieve the value of the specified key.

If the value is a NumPy array, return a read-only view.

パラメータ:

key (str)

戻り値の型:

Any

Individual.update_value(key, value)[ソース]#

Update value in place and bump the value version.

パラメータ:
  • key (str)

  • value (Any)

戻り値の型:

None