ride.utils.utils
¶
Module Contents¶
Functions¶
|
Tests whether x is a shape, i.e. one of |
|
|
|
|
|
|
|
If given a dict, it is converted it to an argparse.AttributeDict. Otherwise, no change is made |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Convert from camel-case to snake-case |
|
|
|
Attributes¶
- ride.utils.utils.is_shape(x: Any)[source]¶
Tests whether x is a shape, i.e. one of - int - List[int] - Tuple[int] - Namedtuple[int]
- Parameters:
x (Any) – instance to check
- ride.utils.utils.attributedict(dict_like: DictLike) pytorch_lightning.utilities.parsing.AttributeDict [source]¶
If given a dict, it is converted it to an argparse.AttributeDict. Otherwise, no change is made
- ride.utils.utils.missing_or_not_in_other(first, other, attrs: Collection[str], must_be_callable=False) Set[str] [source]¶
- ride.utils.utils.camel_to_snake(s: str) str [source]¶
Convert from camel-case to snake-case Source: https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case