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.

Deprecated since version 0.10.0: BinaryQuadraticModel.from_coo() will be removed in dimod 0.12.0. Use load() or loads() instead.