reno.ops#
Classes for math operations, these are used to build up symbolic equations, similar in principle to what something like PyTensor is doing.
Functions
|
Extract any dunder variables in the refs passed from pymc.py for setting up parameters for the pymc converted distribution. |
|
Compute the shape/dimensions needed to populate the passed distribution |
Classes
|
Discrete single event probability (p is probability of eval == 1) |
|
Random categorical distribution - you specify the probability per category, and the output is a set of category indices. |
|
Low is inclusive, high is exclusive. |
|
Tile passed list to the sample size so each value is hit roughly equally (dependent on exact sample size) and deterministically |
|
|
|
Represents a Normal distribution around an observed value. |
|
|
|
|a| (absolute value) |
|
a + b |
|
This is to handle the weird seek_refs issues when you just set a tracked ref's equation to another tracked ref. |
|
a and b |
|
a or b |
|
Simultaneously apply upper and lower bound constraint (element-wise). |
|
|
|
|
|
a / b |
|
a == b |
|
a > b |
|
a >= b |
|
Get a previous value in the time series at specified index, only works for tracked references inside of equations for metrics. |
|
Given a dataset of x -> y datapoints, interpolate any new data along the line formed by the points. |
|
ln(a) (natural log, naming it log because this is pytensor's and numpy's default) |
|
a < b |
|
a <= b |
|
Element-wise maximum of array elements between two arrays or values, same as np.maximum. |
|
Element-wise minimum of array elements between two arrays or values, same as np.minimum. |
|
a % b |
|
a * b |
|
a != b |
Get the full data of a component/equation as an array over time, allowing aggregate operations to operate across the full timeseries, e.g. for metric equations. |
|
|
Return a '1' signal for |
|
Return a '1' signal for |
|
Maximum value throughout time series. |
|
Minimum value throughout time series. |
|
|
|
Can be applied along with timeseries op in metrics for getting specific time segments, or can be applied generally in equations when dealing with vector data. |
|
An information delay, material isn't necessarily preserved but the range is? |
|
Return a specified value after a specified number of timesteps, otherwise 0. |
|
a - b |
|
Series-wise sum (e.g. row-wise if a matrix). |