Learn R Programming

BKT (version 0.1.0)

save_model: Save

Description

Save a BKT model to a file. This function saves a trained BKT model to a specified file location. The model is stored as an RDS file, which can be loaded back into R using the load_model() function.

Usage

save_model(model, loc)

Value

None. The function saves the model to the specified location.

Arguments

model

A trained BKT model object to be saved.

loc

Character. The file path where the model will be saved, typically with an .rds extension.

Examples

Run this code
# \donttest{
model <- bkt(seed = 42)
fit_model <- fit(model, data_path = "ct.csv")
save_model(fit_model, "bkt_model.rds")
# }

Run the code above in your browser using DataLab