class_docstr: The MAP-ELITES algorithm.
class_docstr_tok: ["The","MAP-ELITES","algorithm","."]
code: def tell(self, fitness: Union[np.ndarray, jnp.ndarray]) -> None:
      unique_bins = jnp.unique(self.bin_idx)
      fitness_lattice, params_lattice = self._update_lattices(
          unique_bins,
          self.bin_idx,
          fitness,
          self.fitness_lattice,
          self.population,
          self.params_lattice,
      )
      self.occupancy_lattice = self.occupancy_lattice.at[
          unique_bins
      ].set(1)
      self.fitness_lattice = self.fitness_lattice.at[unique_bins].set(
          fitness_lattice
      )
      self.params_lattice = self.params_lattice.at[unique_bins].set(
          params_lattice
      )
  
file_path: evojax/evojax/algo/map_elites.py
imports: import logging
  import numpy
  from typing import Optional
  from typing import Union
  import jax
  import jax.numpy
  from evojax.algo.base import QualityDiversityMethod
  from evojax.task.base import TaskState
  from evojax.task.base import BDExtractor
  from evojax.util import create_logger
label_desc: Use image node_id 4 for calling the MAPElites obj's underlying member method code with example usage: obj.tell(fitness) without return types