dimod.binary.BinaryQuadraticModel.from_coo

classmethod BinaryQuadraticModel.from_coo(obj, vartype=None)[source]

Deserialize a BQM from a Coordinate format encoding.

Parameters

obj – (str/file): Either a string or a .read()-supporting file object that represents linear and quadratic biases for a binary quadratic model.

Note

This method is deprecated, use load() or loads() instead.