New GitHub issue #118884 from Yuhang-Zhang:<br>

<hr>

<pre>
### Bug description:

```python
# Add a code block here, if required
```
import numpy as np
from sklearn.linear_model import TheilSenRegressor

a = np.random.rand(141)
b = np.random.rand(141)
a = a.reshape(-1,1)

for i in range(5):
    t = TheilSenRegressor()
    t.fit(a,b)
    print(t.coef_)
 print(t.intercept_)

c = np.random.rand(142)
d = np.random.rand(142)
c = c.reshape(-1,1)

for i in range(5):
    t = TheilSenRegressor()
    t.fit(c,d)
    print(t.coef_)
 print(t.intercept_)


### CPython versions tested on:

3.9

### Operating systems tested on:

Linux
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/118884">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>