Bicop.from_file
- Bicop.from_file(filename: str) pyvinecopulib.core.Bicop
Instantiates from a JSON or CBOR file.
Files ending in
.cborare read as CBOR. All other filenames are read as JSON for backwards compatibility. The input contains four attributes:"fam","rot","par","vt"respectively a string for the family name, an integer for the rotation, and a numeric matrix for the parameters, and a list of two strings for the variable types.- Parameters:
- filenamestr
The name of the file to read.