Skip to content

Instantly share code, notes, and snippets.

@amirziai
Created September 25, 2022 21:48

Revisions

  1. amirziai created this gist Sep 25, 2022.
    11 changes: 11 additions & 0 deletions ch_part2_tokens_run_exp.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    pd.concat([
    run_exp(
    ns=(1, 5, 10),
    experiment_cnt=5,
    ch_cls=functools.partial(
    ConsistentHashingWithTokensNaive,
    k=k,
    ),
    ).assign(k=k)
    for k in (1, 10, 100)
    ])