Questions

Initialize and setup the Questions tool.

reset(report=<pedal.core.report.Report object>)[source]

Remove all settings for the Questions tool. Seed will be 0.

Parameters:

report – The report object

Returns:

This tool’s data

set_seed(seed_value, report=<pedal.core.report.Report object>)[source]

Sets the seed that will be used in selecting questions.

Parameters:
  • seed_value (int or str or iterable[int]) – The value to use when selecting questions, deterministically. If int, the same index will be used for all questions. If an iterable of ints, each one will serve as the index for the corresponding problem (throws an exception if the iterable isn’t long enough). If a string, it will be hashed to a value (the hash is deterministic across platforms) that will be modulo’d to be in the right range for the pool. Presently, hashing generates values from [0, 256) so you need to limit your questions to 256.

  • report (Report) – The report object to store data and feedback in. If left None, defaults to the global MAIN_REPORT.