MCPcopy Create free account
hub / github.com/numpy/numpy / test_bad_conditioned_fit

Function test_bad_conditioned_fit

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

Source from the content-addressed store, hash-verified

131
132
133def test_bad_conditioned_fit(Poly):
134
135 x = [0., 0., 1.]
136 y = [1., 2., 3.]
137
138 # check RankWarning is raised
139 with pytest.warns(RankWarning) as record:
140 Poly.fit(x, y, 2)
141 assert record[0].message.args[0] == "The fit may be poorly conditioned"
142
143
144def test_fit(Poly):

Callers

nothing calls this directly

Calls 1

fitMethod · 0.80

Tested by

no test coverage detected