arthurai.util#

Functions

format_timestamp(timestamp[, tz])

Check if timestamp is time aware and convert to ISO8601 conventioned string.

format_timestamps(inferences[, tz, ...])

Checks list of json inferences to ensure their timestamps have been converted to ISO8601 conventions.

generate_timestamps(total[, duration, end, ...])

Generates timestamps over a period of time, defaulting to daily timestamps over the last week.

is_valid_datetime_string(dt_obj)

"

normal_random_ints_fixed_sum(num_values, ...)

Return num_values roughly normally-distributed integers summing to total_sum.

value_type_to_python_type(value_type)

rtype

Type