neurolang.probabilistic.expressions module

class neurolang.probabilistic.expressions.Condition(conditioned, conditioning)

Bases: ProbabilisticBinaryLogicOperator

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

type = typing.Any
class neurolang.probabilistic.expressions.Grounding(expression, relation)

Bases: Definition

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

type = typing.Any
class neurolang.probabilistic.expressions.ProbabilisticBinaryLogicOperator(*args, **kwargs)

Bases: BinaryLogicOperator

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

type = typing.Any
class neurolang.probabilistic.expressions.ProbabilisticChoice(probability, body)

Bases: ProbabilisticPredicate

Attributes:
args
functor

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

type = typing.Any
class neurolang.probabilistic.expressions.ProbabilisticChoiceGrounding(expression, relation)

Bases: Grounding

Class used to differentiate the grounding of a probabilistic choice from the grounding of other choices.

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

type = typing.Any
class neurolang.probabilistic.expressions.ProbabilisticFact(probability, body)

Bases: ProbabilisticPredicate

Attributes:
args
functor

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

type = typing.Any
class neurolang.probabilistic.expressions.ProbabilisticPredicate(probability, body)

Bases: Definition

Attributes:
args
functor

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

property args
property functor
type = typing.Any
class neurolang.probabilistic.expressions.ProbabilisticQuery(functor, args, kwargs=None, validate_arguments=False, verify_type=True)

Bases: FunctionApplication

Attributes:
function

Methods

__call__(*args, **kwargs)

Call self as a function.

apply(*args)

Builds a new expression using a tuple of its parameters

type

unapply()

Returns a tuple of parameters used to build the expression.

cast

change_type

get_wrapped_attribute

type = typing.Any