calipy.data
This module provides basic functionality to represent and access data in a way that interacts well with calipy’s basic classes and methods.
- The classes and functions are
- DataTuple: A class for holding tuples of various objects with explicit names.
is the basic object to be used for input variables, observations etc. as it makes explicit the meaning of the tensors passed or produced.
sample:
The DataTuple class is often used to manage and package data, including for the various forward() methods when activating CalipyNodes.
The script is meant solely for educational and illustrative purposes. Written by Dr. Jemil Avers Butt, Atlas optimization GmbH, www.atlasoptimization.com.
Functions
|
Custom collate function that collates ios together by concatenating contained list elements into a longer list aroung which a new new CalipyIO object is built. |
|
Function for preprocessing arguments to forward passes. |
Classes
|
CalipyDataset is a class mimicking the functionality of the Dataset class in torch.utils.data but providing some streamlined prebuilt functions needed in the context of calipy. |
|
A dictionary-like container that can store single or multiple items. |
|
A data container that can store single or multiple dict like containers. |
|
A list-like container that can store single or multiple dict like containers. |
|
Custom class for holding tuples of various objects with explicit names. |