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

Feature/benchmarking #802

Merged
merged 85 commits into from
Nov 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
1dffbc6
Initial commit for benchmarking
qh681248 Oct 9, 2024
54f0daa
Replaced `small_dataset` with `train_data_jax`
qh681248 Oct 10, 2024
055206b
Added copyright and documentation
qh681248 Oct 10, 2024
78cd2e0
added docstring to `__init__.py`
qh681248 Oct 10, 2024
9f799bf
Added documentation on benchmark/__init__.py
qh681248 Oct 10, 2024
5269d1c
Added `main` function on mnist_benchmark.py
qh681248 Oct 10, 2024
b84ff03
Added main() function on mnist_benchmark.py
qh681248 Oct 11, 2024
650fcdc
Added linestyle to custom_misc.txt
qh681248 Oct 14, 2024
41f4f09
Wrapped mnist_benchmark_visualiser.py on the main function
qh681248 Oct 14, 2024
5d0a8e2
feat(benchmark): add main function to all new benchmark scripts
qh681248 Oct 17, 2024
4180f52
feat(benchmark): add main function to all new benchmark scripts
qh681248 Oct 17, 2024
9e7891a
Merge remote-tracking branch 'remotes/origin/main' into feature/bench…
qh681248 Oct 17, 2024
e6baad2
feat: add blobs_benchmark_visualiser.py for benchmark result visualis…
qh681248 Oct 17, 2024
52e7869
feat: Add benchmark/blobs_benchmark_visualiser.py
qh681248 Oct 17, 2024
db3d3ee
feat: renamed json files
qh681248 Oct 17, 2024
b912461
feat: Add docstrings on blobs_benchmark.py and mnist_benchmark.py exp…
qh681248 Oct 17, 2024
e94aed0
Merge remote-tracking branch 'remotes/origin/main' into feature/bench…
qh681248 Oct 18, 2024
1df2237
:build: add pytorch, torchvision to dependencies
qh681248 Oct 23, 2024
09b6077
:docs: fixed docstrings
qh681248 Oct 24, 2024
4cef166
chore: Updated uv.lock after adding additional dependencies.
qh681248 Oct 24, 2024
a86b09f
feat: Added unit/test_benchmark.py
qh681248 Oct 25, 2024
4860981
fix: Fix merge conflict due to uv.lock
qh681248 Oct 25, 2024
4196727
fix: Fix merge conflict due to uv.lock
qh681248 Oct 25, 2024
4b36684
Merge remote-tracking branch 'remotes/origin/main' into feature/bench…
qh681248 Oct 25, 2024
f679a57
ci: remove macos-13 test from continuous integration test
qh681248 Oct 25, 2024
00f069e
refactor: use base directory for json path
qh681248 Oct 25, 2024
6102918
refactor: use base directory for json path
qh681248 Oct 25, 2024
606c2b9
refactor: use base directory for json path
qh681248 Oct 25, 2024
a2f45d3
refactor: use base directory for json path
qh681248 Oct 25, 2024
28fe378
chore: Added `torch` to `library_terms.txt`
qh681248 Oct 30, 2024
880711e
Merge remote-tracking branch 'remotes/origin/main' into feature/bench…
qh681248 Oct 30, 2024
0da26bd
chore: merge main to branch to resolve merge conflict
qh681248 Oct 30, 2024
058e816
feat: increase block size to 128 to run on more powerful machine
qh681248 Oct 30, 2024
65d5ddf
Merge branch 'main' into feature/benchmarking
qh681248 Nov 5, 2024
109a36a
chore: update packages
qh681248 Nov 5, 2024
27a283b
feat: Removed block sizes to run on large gpu instance
qh681248 Nov 6, 2024
7921f7d
chore: obtain mnist benchmark results on large gpu
qh681248 Nov 6, 2024
53bdddb
chore: Added ylabel to custom_misc.txt
qh681248 Nov 8, 2024
6b95f28
docs: Added typehints and changed variable names
qh681248 Nov 8, 2024
dbbc0e2
chore: add delaxes, hspace and wspace to custom_misc.txt
qh681248 Nov 8, 2024
f4eb6f5
chore: Add British spellings
qh681248 Nov 8, 2024
9380d24
feat: Added both time and accuracy plot
qh681248 Nov 8, 2024
e5b482f
Merge remote-tracking branch 'origin/main' into feature/benchmarking
qh681248 Nov 11, 2024
76ae31a
feat: Use log scale for visualisation
qh681248 Nov 11, 2024
4211435
chore: Resolve uv lock error.
qh681248 Nov 11, 2024
6c41219
Merge branch 'main' into feature/benchmarking
qh681248 Nov 11, 2024
fe599e3
chore: fixed pre-commit
qh681248 Nov 11, 2024
91d9a53
chore: fixed (hopefully) uv lock issue
qh681248 Nov 11, 2024
b885c4e
chore: Address comments on mnist_benchmark.py
qh681248 Nov 15, 2024
1419a29
chore: fix documentation
qh681248 Nov 15, 2024
220be8e
chore: fix typehints
qh681248 Nov 15, 2024
b0cbed6
merge main into current branch
qh681248 Nov 15, 2024
9950c7b
chore: fix typehints
qh681248 Nov 15, 2024
be6f710
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
qh681248 Nov 15, 2024
06a06cf
Merge branch 'feature/benchmarking' of github.com:gchq/coreax into fe…
qh681248 Nov 15, 2024
c205a8f
merge main into current branch
qh681248 Nov 18, 2024
0f9c410
merge main into current branch
qh681248 Nov 18, 2024
89d92e4
merge main into current branch
qh681248 Nov 18, 2024
592ccfe
merge main into current branch
qh681248 Nov 18, 2024
a919d69
merge main into current branch
qh681248 Nov 18, 2024
51c10b9
chore: Combine two assert statements into one
qh681248 Nov 18, 2024
3b68414
chore: sync requirements-doc.txt with uv lock and pyproject.toml
qh681248 Nov 18, 2024
48bf42b
feat: Add benchmarking to Changelog
qh681248 Nov 20, 2024
9062820
chore: remove log scale from plots
qh681248 Nov 20, 2024
e04f4c8
chore: add script to generate time taken for coreset generation on gp…
qh681248 Nov 20, 2024
562f9cd
chore: add new words to custom_misc.txt
qh681248 Nov 20, 2024
2b68782
chore: add a new line at the end of the file mnist_time_results.json
qh681248 Nov 20, 2024
fd666ca
Upload mnist_time_results from gpu
qh681248 Nov 20, 2024
22c678e
chore: renamed delete_me.py to mnist_benchmark_coresets_only.py
qh681248 Nov 20, 2024
4ca7640
chore: renamed delete_me.py to mnist_benchmark_coresets_only.py
qh681248 Nov 20, 2024
d807e4e
chore: add new line on mnist_time_results.json
qh681248 Nov 20, 2024
de14425
chore: Add the type of device the benchmark is run on
qh681248 Nov 20, 2024
28ec977
chore: Update docstrings for mnist_benchmark_coresets_only.py
qh681248 Nov 20, 2024
177bc4b
fix: Change numbers of samples for score matching to 300 from 1000
qh681248 Nov 20, 2024
37fae4f
chore: add a new line at the end of the file mnist_time_results.json
qh681248 Nov 25, 2024
4f31ea0
run tests on gpu
qh681248 Nov 25, 2024
66ce9bd
doc: change reference to PCA to reference to UMAP
qh681248 Nov 27, 2024
5d067df
chore: run the coreset generation time script on gpu
qh681248 Nov 27, 2024
33031e2
chore(deps): autoupdate pre-commit hooks
gchq-write-contents-and-pr[bot] Nov 17, 2024
a3f5d2c
chore(deps): autoupdate uv.lock
gchq-write-contents-and-pr[bot] Nov 24, 2024
9220a2c
chore(deps): autoupdate pre-commit hooks
gchq-write-contents-and-pr[bot] Nov 24, 2024
eaf1dd4
chore: add a new line at the end of the file mnist_time_results.json
qh681248 Nov 27, 2024
3b2205c
chore: merge main into current branch
qh681248 Nov 27, 2024
be7cf4f
Merge branch 'main' into feature/benchmarking
qh681248 Nov 27, 2024
d92880d
chore: sync requirements-doc.txt with uv.lock
qh681248 Nov 27, 2024
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
chore: run the coreset generation time script on gpu
qh681248 committed Nov 27, 2024

Verified

This commit was signed with the committer’s verified signature.
commit 5d067df9a48929e7bf13a937f74d3b106b1e1cab
202 changes: 101 additions & 101 deletions benchmark/mnist_time_results.json
Original file line number Diff line number Diff line change
@@ -1,150 +1,150 @@
{
"RandomSample": {
"25": {
"0": 1.392505773999801,
"1": 0.0015812060000826023,
"2": 0.001619336999283405,
"3": 0.0015976189988577971,
"4": 0.0016859780007507652
"0": 1.5215764229997149,
"1": 0.001615036000202963,
"2": 0.0016977929999484331,
"3": 0.0017370190007568453,
"4": 0.0016495150002810988
},
"50": {
"0": 1.1995392270000593,
"1": 0.0014174710004226654,
"2": 0.0014364919989020564,
"3": 0.0016106240000226535,
"4": 0.0014338510009110905
"0": 1.1865117110000938,
"1": 0.0015167020001172205,
"2": 0.001471213000058924,
"3": 0.00159685000016907,
"4": 0.0014185949994498515
},
"100": {
"0": 1.2091070239994224,
"1": 0.001449082999897655,
"2": 0.0014304080013971543,
"3": 0.0014078439999138936,
"4": 0.0014507380001305137
"0": 1.190416921999713,
"1": 0.001415693000126339,
"2": 0.001445034999960626,
"3": 0.001560416000756959,
"4": 0.0014196720003383234
},
"500": {
"0": 1.215688757000862,
"1": 0.0013821610000377405,
"2": 0.0014462159997492563,
"3": 0.0014760940011910861,
"4": 0.0014157660007185768
"0": 1.1969940730000417,
"1": 0.0014159980000840733,
"2": 0.0014652069999101514,
"3": 0.0014559060000465252,
"4": 0.0013854159997208626
},
"1000": {
"0": 1.2138692279995666,
"1": 0.0014102200002525933,
"2": 0.0013754459996562218,
"3": 0.0014254899997467874,
"4": 0.001393546999679529
"0": 1.20574632700027,
"1": 0.0014430999999603955,
"2": 0.0013995819999763626,
"3": 0.0015107440003703232,
"4": 0.0014337950005938183
}
},
"RPCholesky": {
"25": {
"0": 1.396501829999579,
"1": 0.002014231999964977,
"2": 0.002045376999376458,
"3": 0.0020518010005616816,
"4": 0.0020551530014927266
"0": 1.3980586309999126,
"1": 0.001971067999875231,
"2": 0.0020426159999260562,
"3": 0.002098918999763555,
"4": 0.0019817629990939167
},
"50": {
"0": 1.3317310669999642,
"1": 0.0024125410000124248,
"2": 0.0024662649993842933,
"3": 0.0025376930007041665,
"4": 0.0024527589994249865
"0": 1.329528728999776,
"1": 0.002450966000196786,
"2": 0.002407561999916652,
"3": 0.0025540699998600758,
"4": 0.0024392029999944498
},
"100": {
"0": 1.334837277000588,
"1": 0.00618363000012323,
"2": 0.005853943001056905,
"3": 0.005750511001679115,
"4": 0.005971469001451624
"0": 1.3276212349996968,
"1": 0.0057891330002348695,
"2": 0.00594377200013696,
"3": 0.005744803000197862,
"4": 0.005901627000639564
},
"500": {
"0": 1.7593157319997772,
"1": 0.34364331899996614,
"2": 0.34277769300024374,
"3": 0.3426834229994711,
"4": 0.34328302099856955
"0": 1.9051166680001188,
"1": 0.34004028900017147,
"2": 0.33999469499985935,
"3": 0.34010550800030614,
"4": 0.3408227230002012
},
"1000": {
"0": 2.5351826030000666,
"1": 1.2256577170001037,
"2": 1.224200082999232,
"3": 1.223214403999009,
"4": 1.2240106589997595
"0": 2.522816674000296,
"1": 1.2190807510000923,
"2": 1.216899468000065,
"3": 1.215633935000369,
"4": 1.2168376090003221
}
},
"KernelHerding": {
"25": {
"0": 4.525270672999795,
"1": 0.3713706970002022,
"2": 0.37682922299973143,
"3": 0.3753301830001874,
"4": 0.3726817970000411
"0": 4.611737683000229,
"1": 0.37138685099989743,
"2": 0.37333088700006556,
"3": 0.37363806999928784,
"4": 0.37325262000013026
},
"50": {
"0": 4.175073690000318,
"1": 0.19630096699984279,
"2": 0.19823653799903695,
"3": 0.19731811999918136,
"4": 0.19542489699961152
"0": 3.9535803169997052,
"1": 0.19524956099985502,
"2": 0.19619354599990402,
"3": 0.19783811200068158,
"4": 0.1954313500000353
},
"100": {
"0": 3.659911253000246,
"1": 0.1857731630007038,
"2": 0.18861137299973052,
"3": 0.18779335100043681,
"4": 0.1857599710001523
"0": 3.9510098840000865,
"1": 0.18832070500002374,
"2": 0.18669702299985147,
"3": 0.18900510200001008,
"4": 0.1869027909997385
},
"500": {
"0": 4.003342226999848,
"1": 0.23478799699933006,
"2": 0.23840610200022638,
"3": 0.23695323599895346,
"4": 0.23605469199901563
"0": 3.754979469999853,
"1": 0.23399434600014501,
"2": 0.2340401080000447,
"3": 0.23858422699959192,
"4": 0.2348375669998859
},
"1000": {
"0": 3.3162587990000247,
"1": 0.3144971390001956,
"2": 0.3143677249991015,
"3": 0.3148645189994568,
"4": 0.3136204579986952
"0": 3.2994891039998038,
"1": 0.31192064400011077,
"2": 0.30946771800017814,
"3": 0.3112291079996794,
"4": 0.3077905899999678
}
},
"SteinThinning": {
"25": {
"0": 32.24688873299965,
"1": 23.253855488000227,
"2": 23.98247364800045,
"3": 24.454448049000348,
"4": 24.71234319799987
"0": 32.84552058700001,
"1": 23.36532163999982,
"2": 23.79629538800009,
"3": 24.90528073400037,
"4": 24.946374798999386
},
"50": {
"0": 22.937146852000296,
"1": 23.252850885999578,
"2": 23.90985746499973,
"3": 22.254274634999092,
"4": 22.230221510000774
"0": 21.58282834199963,
"1": 21.647645435999948,
"2": 22.063991701000305,
"3": 20.429498262999914,
"4": 20.436032122000142
},
"100": {
"0": 26.83620272400003,
"1": 20.54269424099948,
"2": 20.722100568000315,
"3": 22.53700901999946,
"4": 23.179071141999884
"0": 24.78626846000043,
"1": 20.212115823000204,
"2": 19.087178812000275,
"3": 21.241850555000383,
"4": 21.746380099999442
},
"500": {
"0": 28.752087642999868,
"1": 20.509507128001133,
"2": 21.053236268000546,
"3": 19.15123022899934,
"4": 19.153963827000553
"0": 28.629314329999943,
"1": 18.76713966499983,
"2": 20.139166873999784,
"3": 18.26489885399951,
"4": 18.16690275899964
},
"1000": {
"0": 26.28835465999964,
"1": 20.31632076599999,
"2": 20.212484939000205,
"3": 20.232944244000464,
"4": 20.29244560600091
"0": 24.427439505000166,
"1": 19.43167951400028,
"2": 19.28958952099947,
"3": 19.266749262999838,
"4": 19.204127647999485
}
}
}
}