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

Easily compare the effects of cache and permutation with flags #205

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2f37855
added experiment.py & added useCacheP, usePerm, cacheMultiplier as pa…
Oct 9, 2022
b2856db
added instructions to run the experiemnts to readme
Oct 9, 2022
8968292
fixed typos in readme
Oct 9, 2022
bf03f17
completed experiment.py
lukeleeai Oct 10, 2022
896161d
completed experiment.py
lukeleeai Oct 10, 2022
ffbf00c
updated README
lukeleeai Oct 10, 2022
3647577
added an instruction to install the package first in README
lukeleeai Oct 10, 2022
c5c5bc9
made the experiment results more readable
lukeleeai Oct 10, 2022
f60b0da
updated README with new experiment results
lukeleeai Oct 10, 2022
0e11458
updated README with new experiment results
lukeleeai Oct 10, 2022
c56dd2d
added scripts/reproduce_results.sh
lukeleeai Oct 10, 2022
fdae883
added one-line command to reproduce the results to README
lukeleeai Oct 10, 2022
9545bae
added flags for cpp code
lukeleeai Nov 2, 2022
d33c56c
added flags to BanditPAM to toggle cache and perm
lukeleeai Nov 3, 2022
3bfdb14
count number of samples/cache and experiment with array instead of ha…
lukeleeai Nov 3, 2022
b9de8c1
reset to original code
Nov 8, 2022
e76bc34
changed default seed
Nov 8, 2022
a3a44fb
changed to original code
Nov 8, 2022
01dfc7f
removed unnecessary files
lukeleeai Dec 23, 2022
7a3c968
added small datasets
lukeleeai Dec 23, 2022
f13bdc1
removed print statements
lukeleeai Dec 23, 2022
aed3a53
Updated readme and added comments to experiments.py
lukeleeai Dec 23, 2022
bd22dd1
Create README.md
lukeleeai Dec 23, 2022
6ebc6cc
Update README.md
lukeleeai Dec 23, 2022
d3c6ec5
Update README.md
lukeleeai Dec 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated README with new experiment results
  • Loading branch information
lukeleeai committed Oct 10, 2022
commit 0e114582393eb2fd5ae8b9ce5bc2c5bdb0bbb859
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -44,10 +44,10 @@ $ python scripts/experiment.py -k 3 -n "[1000, 3000]"

Cache (X) Perm (X) Cache (O) Perm (X) Cache (O) Perm (O)

[mnist : 1000 | k: 3]
[mnist: 1000 | k: 3]
0.535 (0.041) 0.149 (0.003) 0.146 (0.00565)

[mnist : 3000 | k: 3]
[mnist: 3000 | k: 3]
1.71 (0.107) 0.738 (0.0476) 0.743 (0.0518)
```

2 changes: 1 addition & 1 deletion scripts/utils/experiment_utils.py
Original file line number Diff line number Diff line change
@@ -17,5 +17,5 @@ def get_stat_format(stats):
return "{:30}".format("{:4.3} ({:4.3})".format(mean, std))

def print_summary(stats, dataset_name, n_data, n_medoids):
print(f"\n[{dataset_name} : {n_data} | k: {n_medoids}]")
print(f"\n[{dataset_name}: {n_data} | k: {n_medoids}]")
print("".join(get_stat_format(stat) for stat in stats))