MCPcopy Index your code
hub / github.com/numpy/numpy / test_bad_conditioned_fit

Function test_bad_conditioned_fit

numpy/polynomial/tests/test_classes.py:139–147  ·  view source on GitHub ↗
(Poly)

Source from the content-addressed store, hash-verified

137
138
139def test_bad_conditioned_fit(Poly):
140
141 x = [0., 0., 1.]
142 y = [1., 2., 3.]
143
144 # check RankWarning is raised
145 with pytest.warns(RankWarning) as record:
146 Poly.fit(x, y, 2)
147 assert record[0].message.args[0] == "The fit may be poorly conditioned"
148
149
150def test_fit(Poly):

Callers

nothing calls this directly

Calls 1

fitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…