stanbkt.utils.validate_data#
- stanbkt.utils.validate_data(data, col_mapping, check_groups=False, additional_required_cols=None)#
Validate input data for BKT model fitting.
- Parameters:
data (
DataFrame) – Input data containing student interactions.col_mapping (
dict[str,str]) – Mapping of expected column names. Keys should be ‘student_id’, ‘problem_id’, ‘correct’, and ‘kc_id’. If None, default column names are used.check_groups (
bool) – Whether to check for group column in the data.
- Raises:
ValueError – If required columns are missing or if correctness values are not binary.
- Return type: