calipy.utils
This module provides support functionality related to logging, data organization, preprocessing and other functions not directly related to calipy core domains.
- The classes are
- CalipyRegistry: Dictionary type class that is used for tracking identity
and uniqueness of objects created during a run and outputs warnings.
The script is meant solely for educational and illustrative purposes. Written by Dr. Jemil Avers Butt, Atlas optimization GmbH, www.atlasoptimization.com.
Functions
|
Example schema validation function: |
|
Context manager to handle multiple nested pyro.plate contexts. |
|
dim_assignment dynamically assigns dimension objects to names and returns them as a DimTuple. |
|
Ensures the input is a tuple. |
|
|
|
|
|
|
|
|
|
|
|
Ensures that meshgrid also works for empty inputs [] of sizes. |
|
Classes
|
CalipyDim class contains information useful to manage dimensions and is the prime ingredient to DimTuple class which implements arithmentics on dimensions. |
|
DimTuple is a custom subclass of Python's tuple designed to manage and manipulate tuples of dimension objects, such as those from CalipyDim. |
|
|
|
TorchdimTuple is a subclass of the Tuple class that allows esy handling of tuples build from functorchdim.dim.Dim objects. |