KeyError: ‘success_rate’


I got this error message when submitting: KeyError: ‘success_rate’

What does this mean? The model passed local evaluation.



Hi, I have the same problem. I think it is bug probably and it is happening when your agent finishes race completely. Hope that somebody can help.


Thanks for confirming. Yeah, I suspect it’s a bug too. I could also finish the race completely in local environment.

@jyotish Do you mind taking a look? Thanks.


@denis9 @boliu0 Thanks for reporting this. Can you check if this fixes the issue?

If this commit doesn’t fix the issue, it would help us pinpoint the problem if you can share the traceback for when this exception is raised.

1 Like

I checked, the problem still exists.

1 Like

Hi @jyotish

Just to be clear, we don’t see this error when running evaluation locally via python It successfully finished evaluation. But we get the KeyError: ‘success_rate’ when submitting. I don’t see a trackback in the submission error message.

The commit above was on, which is part of the local evaluation. I think the bug is probably in the submission evaluation? (i.e. the code that is different between local and leaderboard evaluation that we cannot see)


@jyotish I don’t think ignoring the absence of the key is going to do any good.

Let’s say success rate is meant to be 100%, which is the case for my agent and it shows in my own logs, the key is missing and it is replaced with 0 giving a false positive result for that run.

This issue is likely the cause of not one vehicle completing the track 100% on the leader board.

I’m currently trying to figure out what the issue could be but I’m afraid I don’t have access to the files responsible for this.


+1 We are having the same issues - seems to be tied with getting 100.0 success rate


Hi @jyotish,

Could you please have a look at this problem, this error occurred today for my submission. The agent likely completed the entire course.

2022-02-04 07:46:05.823 | INFO | main:run_evaluation:81 - Starting evaluation on Thruxton racetrack
2022-02-04 07:46:09.866 | INFO | aicrowd_gym.clients.base_oracle_client:register_agent:210 - Registering agent with oracle…
2022-02-04 07:46:09.868 | SUCCESS | aicrowd_gym.clients.base_oracle_client:register_agent:226 - Registered agent with oracle
/home/miniconda/lib/python3.9/site-packages/numpy/core/ RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
/home/miniconda/lib/python3.9/site-packages/numpy/core/ RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)


Hello all!

The way we register lap wise metrics had a bug that was causing the evaluator to skip registering a few metrics if the lap was completed by the end of the first episode. This issue is fixed and all the effected submissions were re-evaluated. Please let us know if you are still facing this issue or any of your submissions did not get re-evaluated.

1 Like