individual

class AnnotatedIndividual(trajectory, *, observations, categories, background_category)

Bases: Individual, AnnotatedSampleableMixin

Annotated individual.

Parameters:
  • trajectory (Trajectory) – The trajectory of the individual.

  • observations (DataFrame) – The observations corresponding to the trajectory.

  • categories (tuple[str, ...]) – Categories of the observations.

  • background_category (str) – The background category of the observations.

class Individual(trajectory)

Bases: BaseSampleable

An individual is a sampleable that holds one trajectory.

Parameters:

trajectory (Trajectory) – The trajectory of the individual.

annotate(observations, *, categories, background_category)

Annotates the individual with the given observations.

Parameters:
  • observations (DataFrame) – The observations.

  • categories (tuple[str, ...]) – Categories of the observations.

  • background_category (str) – The background category of the observations.

Return type:

AnnotatedIndividual

Returns:

The annotated individual.