Skip to content

Commit d4800bc

Browse files
ywh555hhhclaude
andauthored
adjust dimension bucket granularity from //3 to //4 (#660)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cdfdd5f commit d4800bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sqlite/graph_net_sample_bucket_generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def __len__(self):
5757

5858

5959
def get_default_dimension_bucket(dim: int) -> int:
60-
"""Default bucket function: log2(dim) // 3"""
61-
return -1 if dim <= 0 else int(math.log2(dim)) // 3
60+
"""Default bucket function: log2(dim) // 4"""
61+
return -1 if dim <= 0 else int(math.log2(dim)) // 4
6262

6363

6464
def generate_sample_buckets(
@@ -70,7 +70,7 @@ def generate_sample_buckets(
7070
7171
Args:
7272
session: SQLAlchemy session
73-
get_dimension_bucket: bucket function, defaults to log2(dim) // 3
73+
get_dimension_bucket: bucket function, defaults to log2(dim) // 4
7474
7575
Returns:
7676
sample_type_results: List[SampleTypeBucketResult], results grouped by sample_type

0 commit comments

Comments
 (0)