phenotypic.analysis.abc_#

Provides the base classes for set analysis operations.

This module imports and exposes the SetAnalyzer class from the internal _set_analyzer module. The SetAnalyzer class is designed for performing various analytical operations on sets. This is a utility module intended for use in applications that require set analysis functionality. Only the SetAnalyzer class is explicitly exposed as part of this module’s public API.

class phenotypic.analysis.abc_.ModelFitter(on: str, groupby: List[str], agg_func: Callable | str | list | dict | None = 'mean', *, num_workers: int = 1)[source]#

Bases: SetAnalyzer, ABC

Parameters:
abstract analyze(data: pandas.DataFrame) pandas.DataFrame#
Parameters:

data (pandas.DataFrame)

Return type:

pandas.DataFrame

abstract static model_func()[source]#

The mathematical model that should be implemented. The first parameter should be the independent variable such as time

abstract results()#
abstract show()#
class phenotypic.analysis.abc_.SetAnalyzer(on: str, groupby: List[str], agg_func: Callable | str | list | dict | None = 'mean', *, num_workers=1)[source]#

Bases: ABC

Parameters:
abstract analyze(data: pandas.DataFrame) pandas.DataFrame[source]#
Parameters:

data (pandas.DataFrame)

Return type:

pandas.DataFrame

abstract results()[source]#
abstract show()[source]#