Class FixedRangeBucketSpec (0.1.2)

FixedRangeBucketSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

If bucket type is FIXED_RANGE, specify how values are bucketized. Use FixedRangeBucketSpec when you want to create multiple buckets with equal granularities. Using integer bucket value as an example, when bucket_start = 0, bucket_granularity = 10, bucket_count = 5, this facet will be aggregated via the following buckets: [-inf, 0), [0, 10), [10, 20), [20, 30), [30, inf). Notably, bucket_count <= 1 is an invalid spec.

Attributes

Name Description
bucket_start google.cloud.visionai_v1alpha1.types.FacetValue
Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.
bucket_granularity google.cloud.visionai_v1alpha1.types.FacetValue
Bucket granularity. NOTE: Only integer type is currently supported for this field.
bucket_count int
Total number of buckets.