torchsig.utils.verifyΒΆ

Data verification and error checking utils

Functions

verify_bounds

Verifies if the value a is within the specified bounds (low, high).

verify_dict

Verifies that the value d is a dictionary and optionally checks for required keys and their types.

verify_distribution_list

Verifies and normalizes a given distribution list.

verify_float

Verifies that the value f is a float and within the specified bounds.

verify_int

Verifies that the value a is an integer and within the specified bounds.

verify_list

Verifies that the value list_check is a list and optionally checks for duplicates or verifies item types.

verify_metadata_transforms

Verifies that the value tt is a valid target transform, which can be a single target transform or a list of transforms.

verify_numpy_array

Verifies that the value n is a NumPy array and optionally checks its length or item types.

verify_str

Verifies that the value s is a string and optionally formats it according to the specified format.

verify_transforms

Verifies that the value t is a valid transform, which can be a single transform or a list of transforms.