smarts.benchmark.driving_smarts.v2023.metric_formula_platoon module
- class smarts.benchmark.driving_smarts.v2023.metric_formula_platoon.Formula[source]
Sets the (i) cost function parameters, and (ii) score computation formula, for an environment.
- params() Params [source]
Return parameters to configure and initialize cost functions.
- Returns:
Cost function parameters.
- Return type:
- score(records: Dict[str, Dict[str, Record]]) Score [source]
Computes several sub-component scores and one total combined score named “Overall” on the wrapped environment.
- Parameters:
records (Dict[str, Dict[str, Record]]) – Records.
- Returns:
“Overall” score and other sub-component scores.
- Return type:
Score
- smarts.benchmark.driving_smarts.v2023.metric_formula_platoon.costs_to_score(costs: Costs) Score [source]
Compute score from costs.
Range
Remarks
Overall
[0, 1]
Total score. The higher, the better.
DistToDestination
[0, 1]
Remaining distance to destination. The lower, the better.
VehicleGap
[0, 1]
Gap between vehicles in a convoy. The lower, the better.
HumannessError
[0, 1]
Humanness indicator. The lower, the better.
RuleViolation
[0, 1]
Traffic rules compliance. The lower, the better.
- Parameters:
costs (Costs) – Costs.
- Returns:
Score.
- Return type:
Score