Skip to content

Commit

Permalink
change thread default
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Weber authored and Lucas Weber committed Aug 15, 2024
1 parent 6b34c81 commit f5d4607
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions changepoynt/algorithms/esst.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ESST(Algorithm):

def __init__(self, window_length: int, n_windows: int = None, lag: int = None, rank: int = 5,
scale: bool = True, method: str = 'fbrsvd', random_rank: int = None, scoring_step: int = 1,
parallel: bool = False, use_fast_hankel: bool = False, threads: int = 2) -> None:
parallel: bool = False, use_fast_hankel: bool = False, threads: int = 6) -> None:
"""
Experimental change point detection method evaluation the prevalence of change points within a signal
by comparing the difference in eigenvectors between to points in time.
Expand Down Expand Up @@ -293,7 +293,7 @@ def _main():
x += np.random.rand(x.size)

# create the method
esst_recognizer = ESST(960, method='rsvd', parallel=False, use_fast_hankel=False)
esst_recognizer = ESST(960, method='rsvd', parallel=False, use_fast_hankel=True, threads=6)

# compute the score
start = time()
Expand Down
2 changes: 1 addition & 1 deletion changepoynt/utils/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,4 +964,4 @@ def examples():

if __name__ == '__main__':
timing_tests()
# examples()
examples()

0 comments on commit f5d4607

Please sign in to comment.