Skip to content

Commit

Permalink
chore: change leaf_size of MapReduce solver on mnist benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
qh681248 committed Jan 17, 2025
1 parent dc3b72e commit 6f00f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark/mnist_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def _get_thinning_solver(_size: int) -> MapReduce:
sqrt_kernel=sqrt_kernel,
)

return thinning_solver
return MapReduce(thinning_solver, leaf_size=15_000)

def _get_herding_solver(_size: int) -> MapReduce:
"""
Expand All @@ -512,7 +512,7 @@ def _get_herding_solver(_size: int) -> MapReduce:
:return: MapReduce solver with KernelHerding as the base solver.
"""
herding_solver = KernelHerding(_size, kernel)
return MapReduce(herding_solver, leaf_size=3 * _size)
return MapReduce(herding_solver, leaf_size=15_000)

def _get_stein_solver(_size: int) -> MapReduce:
"""
Expand All @@ -534,7 +534,7 @@ def _get_stein_solver(_size: int) -> MapReduce:
stein_solver = SteinThinning(
coreset_size=_size, kernel=stein_kernel, regularise=False
)
return MapReduce(stein_solver, leaf_size=3 * _size)
return MapReduce(stein_solver, leaf_size=15_000)

def _get_random_solver(_size: int) -> RandomSample:
"""
Expand Down

0 comments on commit 6f00f86

Please sign in to comment.