CVineStructure.from_file
- CVineStructure.from_file(filename: str, check: bool = True) pyvinecopulib.core.RVineStructure
Instantiates an RVineStructure from a JSON or CBOR file.
Files ending in
.cborare read as CBOR. All other filenames are read as JSON for backwards compatibility. The file needs to contain two values:"array"for the structure triangular array and"order"for the order vector.- Parameters:
- filenamestr
The name of the file to read.
- checkbool
Whether to check if the input represents a valid R-vine matrix.