chainer.testing.condition.repeat_with_success_at_least

chainer.testing.condition.repeat_with_success_at_least(times, min_success)[source]

Decorator for multiple trial of the test case.

The decorated test case is launched multiple times. The case is judged as passed at least specified number of trials. If the number of successful trials exceeds min_success, the remaining trials are skipped.

Parameters
  • times (int) – The number of trials.

  • min_success (int) – Threshold that the decorated test case is regarded as passed.