9.2.10. On-the-fly#
This package provides functions for quick transform operations on stored data.
Provide imports for onthefly sub-package.
- junifer.onthefly.read_transform(storage, feature_name, transform, transform_args=None, transform_kw_args=None)#
Read stored feature and transform to specific statistical output.
- Parameters:
- storagestorage-like
The storage class, for example, SQLiteFeatureStorage.
- feature_name
str
Name of the feature to read.
- transform
str
The kind of transform formatted as
<package>_<function>
, for example,bctpy_degrees_und
.- transform_args
tuple
, optional The positional arguments for the callable of
transform
(default None).- transform_kw_args
dict
, optional The keyword arguments for the callable of
transform
(default None).
- Returns:
pandas.DataFrame
The transformed feature as a dataframe.
Notes
This function has been only tested for:
bct.degrees_und
bct.strengths_und
bct.clustering_coef_wu
bct.eigenvector_centrality_und
Using other functions may fail and require tweaking.