pylibmgm.io.parse_dd_file
- pylibmgm.io.parse_dd_file(dd_file: os.PathLike, unary_constant: float = 0.0) pylibmgm.MgmModel
Parse a .dd file containing an MGM model.
- Parameters:
dd_file (os.PathLike) – Path to the .dd file to parse.
unary_constant (float, optional) – Constant value to add to all unary costs. Default is 0.0.
- Returns:
The parsed MGM model.
- Return type: