Skip to content

TrajectoryStoreSelector ​

python
TrajectoryStoreSelector(store_configuration: TrajectoryStoreConfiguration, configuration: TrajectorySelectionConfiguration, utilities: TrajectoryUtilityCatalog, rng: random.Random) -> None

Selector driven by a typed selection strategy configuration.

Source

Methods ​

debug_bucket_weights ​

python
debug_bucket_weights(*, context: TrajectorySamplingContext, filter_fn: Callable[[TrajectoryReferenceRecording], bool] | None = None) -> dict[TrajectoryKey, float]

Source

filtered_bucket_cache_info ​

python
filtered_bucket_cache_info() -> FilteredBucketCacheInfo

Get hit/rebuild statistics for the filtered-bucket cache.

Returns:

  • FilteredBucketCacheInfo – The cumulative cache statistics since construction.

Source

rebuild ​

python
rebuild(buckets: Mapping[TrajectoryKey, TrajectoryBucket]) -> None

Source

sample ​

python
sample(*, context: TrajectorySamplingContext, filter_fn: Callable[[TrajectoryReferenceRecording], bool] | None = None) -> TrajectoryReferenceRecording | None

Source

update_bucket ​

python
update_bucket(store_key: TrajectoryKey, bucket: TrajectoryBucket | None) -> None

Source