stanbkt.utils.ColumnNames#

class stanbkt.utils.ColumnNames(*values)#

Bases: StrEnum

Enumeration of standard column names for BKT data.

Variables:
  • STUDENT_ID (str) – Unique student identifier column name.

  • PROBLEM_ID (str) – Unique problem identifier column name.

  • CORRECTNESS (str) – Binary correctness column (1=correct, 0=incorrect).

  • ORDER (str) – The order in which the students attempted the problems.

  • KC_ID (str) – Knowledge component identifier column name.

  • GROUP (str) – Student or problem group identifier (optional).

CORRECTNESS = 'correct'#
GROUP = 'group_id'#
KC_ID = 'kc_id'#
ORDER = 'timestamp'#
PROBLEM_ID = 'problem_id'#
STUDENT_ID = 'student_id'#
static apply_default_mapping(col_mapping=None)#

Apply default mapping to fill missing column name mappings.

For any standard column not in the provided mapping, uses the default (column name maps to itself).

Parameters:

col_mapping (Union[Mapping[ColumnNames, str], Mapping[str, str], Mapping[ColumnNames | str, str], None]) – User-provided column name mapping. If None, treated as empty dict.

Returns:

Complete column mapping with defaults applied.

Return type:

dict[str, str]

static get_default_mapping()#

Get default column name mapping.

Returns:

Mapping where all standard column names map to themselves.

Return type:

dict[str, str]