Skip to content

Commit

Permalink
similarity
Browse files Browse the repository at this point in the history
  • Loading branch information
demotu committed Aug 8, 2023
1 parent 2dff992 commit 17ac8df
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion functions/simila.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def similarity(y: np.ndarray, axis1: int = 0, axis2: int = 1, threshold: float =
>>> ysn, ikeptn, inotkeptn, scoresn = similarity(y, repeat=False)
>>> fig, axs = plt.subplots(3, 1, sharex=True, figsize=(8, 8))
>>> axs[0].plot(y, label=list(range(n)))
>>> axs[0].legend(loc=(1.01, 0))
>>> axs[0].legend(loc=(1.01, 0), ncol=2)
>>> axs[0].set_title(f'Original vectors (n={n})')
>>> axs[1].plot(ysr, label= ikeptr.tolist())
>>> axs[1].set_title(f'Vectors maintained with repeat selection (n={len(ikeptr)})')
Expand Down
138 changes: 69 additions & 69 deletions notebooks/Similarity.ipynb

Large diffs are not rendered by default.

0 comments on commit 17ac8df

Please sign in to comment.