- QuadraticModel.is_almost_equal(other: Union[QuadraticModel, BinaryQuadraticModel, int, float, numpy.number], places: int = 7) bool ¶
Test if the given quadratic model’s biases are almost equal.
Test whether each bias in the binary quadratic model is approximately equal to each bias in
other. Approximate equality is calculated by passing the difference to
placesdetermines the number of decimal places.