mlrl.testbed.models module¶
Author: Michael Rapp (michael.rapp.ml@gmail.com)
Provides classes for printing textual representations of models. The models can be written to one or several outputs, e.g., to the console or to a file.
- class mlrl.testbed.models.ModelWriter(sinks: List[Sink])¶
Bases:
OutputWriter
,ABC
An abstract base class for all classes that allow to write textual representations of models to one or several sinks.
- class mlrl.testbed.models.RuleModelWriter(sinks: List[Sink])¶
Bases:
ModelWriter
Allows to write textual representations of rule-based models to one or several sinks.
- class RuleModelFormattable(meta_data: MetaData, model: RuleModel)¶
Bases:
RuleModelVisitor
,Formattable
Allows to create textual representations of the rules in a RuleModel.
- visit_complete_head(head: CompleteHead)¶
See
mlrl.common.cython.rule_model.RuleModelVisitor.visit_complete_head()
- visit_conjunctive_body(body: ConjunctiveBody)¶
See
mlrl.common.cython.rule_model.RuleModelVisitor.visit_conjunctive_body()
- visit_empty_body(_: EmptyBody)¶
See
mlrl.common.cython.rule_model.RuleModelVisitor.visit_empty_body()
- visit_partial_head(head: PartialHead)¶
See
mlrl.common.cython.rule_model.RuleModelVisitor.visit_partial_head()