neurolang.probabilistic.cplogic.testing module

class neurolang.probabilistic.cplogic.testing.TestRAPToLaTeXTranslator(cpl_program, graphical_model)

Bases: PatternWalker

Attributes:
patterns

Property holding an iterator of triplets (pattern, guard, action).

Methods

match(expression)

Find the action for a given expression by going through the patterns.

pattern_match(pattern, expression)

Return True if pattern matches expression.

type

naturaljoin

pattern_match_expression

pattern_match_expression_parameters

pattern_match_expression_tuple

pattern_match_tuple

prettify

projection

provenance_algebra_set

rename_column

selection

selection_by_tuple_symbol

union_over_tuples

walk

naturaljoin(op)
prettify(exp)
projection(op)
provenance_algebra_set(prov_set)
rename_column(op)
selection(op)
selection_by_tuple_symbol(op)
type = typing.Any
union_over_tuples(op)
neurolang.probabilistic.cplogic.testing.build_gm(cpl_program)
neurolang.probabilistic.cplogic.testing.build_ra_provenance_set_from_named_ra_set(nas, provenance_column)
neurolang.probabilistic.cplogic.testing.eq_prov_relations(pas1, pas2)
neurolang.probabilistic.cplogic.testing.get_named_relation_tuples(relation)
neurolang.probabilistic.cplogic.testing.inspect_resolution(qpred, cpl_program, tex_out_path=None)
neurolang.probabilistic.cplogic.testing.make_prov_set(iterable, columns)
neurolang.probabilistic.cplogic.testing.rap_expression_to_latex(exp, cpl_program, graphical_model)
neurolang.probabilistic.cplogic.testing.temp_seed(seed)