core.internals.scenario#

Submodule of khiops.core.internals

Classes for creating Khiops scenario files

Classes#

ConfigurableKhiopsScenario

A configurable Khiops scenario

class khiops.core.internals.scenario.ConfigurableKhiopsScenario(template)#

Bases: object

A configurable Khiops scenario

This class encapsulates a template Khiops scenario and its parameters. It allows to replace the template keyword to write an executable scenario.

Parameters:
templatestr

The template scenario.

Attributes:
templatestr

The template scenario file.

check_keyword_completeness(call_keywords)#

Check if a list of keys is exactly that of the template of this scenario

write(writer, scenario_args)#

Writes the de-templatized scenario with the specified arguments

Parameters:
writerKhiopsOutputWriter

The output writer for the scenario file.

scenario_argsdict

Values of the scenario template arguments.