saealib.Individual#

class saealib.Individual(population, index)[source]#

Bases: Generic[T_Population]

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

Parameters:
  • 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)[source]#
Parameters:
  • population (T_Population)

  • index (int)

Individual.get_readonly_value(key)[source]#

Retrieve the value of the specified key.

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

Parameters:

key (str)

Return type:

Any

Individual.update_value(key, value)[source]#

Update value in place and bump the value version.

Parameters:
  • key (str)

  • value (Any)

Return type:

None