Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #3

Open
csselo opened this issue Sep 8, 2020 · 2 comments
Open

Bug #3

csselo opened this issue Sep 8, 2020 · 2 comments

Comments

@csselo
Copy link

csselo commented Sep 8, 2020

Traceback (most recent call last):
File "jtest.py", line 751, in
day_trade(config.mode, start_date, end_date, tend_date, ttime, myporset)
File "jtest.py", line 663, in day_trade
test(ts, start_date, end_date, tend_date, por, mode)
File "jtest.py", line 200, in test
chowarr = chow(lastnarr, len(lastnarr2))
File "jtest.py", line 398, in chow
p = chow_test.p_value(y1, x1, y2, x2)
File "C:\Users\Dr.Tekgeçer\AppData\Local\Programs\Python\Python36\lib\site-packages\chow_test_init_.py", line 41, in p_value
F = f_value(y1, x1, y2, x2, **kwargs)
File "C:\Users\Dr.Tekgeçer\AppData\Local\Programs\Python\Python36\lib\site-packages\chow_test_init_.py", line 31, in f_value
rss_total, n_total = find_rss(np.append(y1, y2), np.append(x1, x2))
File "C:\Users\Dr.Tekgeçer\AppData\Local\Programs\Python\Python36\lib\site-packages\chow_test_init_.py", line 26, in find_rss
rss = np.linalg.lstsq(A, y, rcond=None)[1]
File "<array_function internals>", line 6, in lstsq
File "C:\Users\Dr.Tekgeçer\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\linalg\linalg.py", line 2259, in lstsq
x, resids, rank, s = gufunc(a, b, rcond, signature=signature, extobj=extobj)
File "C:\Users\Dr.Tekgeçer\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\linalg\linalg.py", line 109, in _raise_linalgerror_lstsq
raise LinAlgError("SVD did not converge in Linear Least Squares")
numpy.linalg.LinAlgError: SVD did not converge in Linear Least Squares

@jtloong
Copy link
Owner

jtloong commented Oct 18, 2020

Do you have any sample data/code to replicate this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@csselo @jtloong and others