pymer4.io#
Functions to load and save models and datasets
- pymer4.io.load_model(filepath)[source]#
Function for loading pymer4 models. A file path ending in .joblib should be provided. For Lmer models an additional filepath.robj should be located in the same directory.
- Parameters:
model (pymer4.models) – an instance of a pymer4 model
filepath (str) – full filepath string ending with .joblib
- pymer4.io.save_model(model, filepath, **kwargs)[source]#
Function for saving pymer4 models. All models are saved using joblib.dump files so filepath extensions should end with .joblib. For Lmer models an additional filepath.robj file will be created to retain all R objects.
- Parameters:
model (pymer4.models) – an instance of a pymer4 model
filepath (str) – full filepath string ending .joblib
kwargs – optional keyword arguments to joblib.dump