pycmtensor.expressions#

PyCMTensor expressions module

Module Contents#

class pycmtensor.expressions.ExpressionParser[source]#

Base class for the Expression Parser object

parse(expression)[source]#

Returns a list of str words found in expression

Parameters

expression – The symbolic Tensor object to parse

class pycmtensor.expressions.Expressions[source]#

Base class for expression objects

class pycmtensor.expressions.Beta(name, value=0.0, lowerbound=None, upperbound=None, status=0)[source]#

Bases: Expressions

Class object for Beta parameters

name[source]#

Name of the Beta

Type

str

init_value[source]#

The inital value of the Beta when created

Type

float

status[source]#

The status of the Beta. Not modifiable

Type

int

shared_var#

The shared variable object of the Beta parameter to be updated on. Can be accessed with a call function

Type

aet.TensorSharedVariable

Constructor for Beta class object

Parameters
  • name (str) – Name of the Beta class object

  • value (float) – Initial starting value. Defaults to 0

  • lowerbound (float) – lowerbound value. Defaults to None

  • upperbound (float) – upperbound value. Defaults to None

  • status (int) – Whether to estimate (0) this Beta expression or not (1).

property name[source]#
property init_value[source]#
property status[source]#
get_value()[source]#

Returns the numpy representation of the Beta value

reset_value()[source]#

Resets the value of the shared variable to the initial value

class pycmtensor.expressions.Weights(name, size, status, random_init=True)[source]#

Bases: Expressions

Base class for expression objects

reset_value()[source]#

Resets the value of the shared variable to the initial value

get_value()[source]#

Returns the numpy representation of the Weights