scenic.core.sample_checking

The SampleChecker class and it’s implementations.

Summary of Module Members

Classes

BasicChecker

Basic requirement checker.

SampleChecker

WeightedAcceptanceChecker

Picks the requirement with the lowest time-weighted acceptance chance.

Member Details

class BasicChecker(initialCollisionCheck)[source]

Bases: SampleChecker

Basic requirement checker.

Evaluates requirements in order, with a tiny bit of tuning.

class WeightedAcceptanceChecker(bufferSize=10)[source]

Bases: SampleChecker

Picks the requirement with the lowest time-weighted acceptance chance.

Incentivizes exploration by initializing all buffer values to 0.

Parameters:

bufferSize – Max samples to use when calculating time-weighted rejection chance.

sortedRequirements()[source]

Return the list of requirements in sorted order

updateMetrics(req, new_metrics)[source]

Update the metrics for a given requirement