functional#

Functions

confidence_interval(judgements[, confidence])

Calculate the confidence interval for a list of binary judgments.

longest_common_substring(s1, s2)

Find the longest common substring between two strings.

confidence_interval(judgements: List[float], confidence: float = 0.95) Tuple[float, float][source]#

Calculate the confidence interval for a list of binary judgments.

Parameters:
  • judgements (List[float]) – List of binary judgments (1/0).

  • confidence (float) – Confidence level (default 0.95).

Returns:

Lower and upper bounds of the confidence interval.

Return type:

tuple

longest_common_substring(s1: str, s2: str) str[source]#

Find the longest common substring between two strings.