pyprob.util

Functions

address_id_to_int(address_id)

check_gnu_dbm()

chunks(l, n)

Yield successive n-sized chunks from l.

clamp_probs(probs)

create_path(path[, directory])

days_hours_mins_secs_str(total_seconds)

distribution_short_name(dist_name)

drop_items(l, num_items_to_drop)

effective_sample_size(log_weights)

empirical_to_categorical(empirical_dist[, …])

eval_print(*expressions)

fast_np_random_choice(values, probs_cumsum)

float_to_string(number)

get_source(obj)

get_time_stamp()

get_time_str()

has_nan_or_inf(value)

init_distributed_print(rank, world_size[, …])

is_hashable(v)

is_sorted(lst)

one_hot(dim, i)

open_shelf(file_name, flag[, writeback])

prod(iterable)

progress_bar(i, len)

progress_bar_end([message])

progress_bar_init(message, num_iters[, …])

progress_bar_update(iter)

replace_inf(value[, replace_message])

replace_negative_inf(value[, replace_message])

rgb_to_hex(rgb)

safe_log(value)

seed([seed])

set_compression([level])

set_device([device])

set_verbosity([v])

sqlite_decode(o)

sqlite_encode(o)

temp_file_name()

tile_rows_cols(num_items)

time_seed()

to_numpy(value)

to_size(value)

to_tensor(value[, dtype])

truncate_str(s[, length])

Classes

InferenceEngine(value)

An enumeration.

InferenceNetwork(value)

An enumeration.

LearningRateScheduler(value)

An enumeration.

ObserveEmbedding(value)

An enumeration.

Optimizer(value)

An enumeration.

PriorInflation(value)

An enumeration.

TraceMode(value)

An enumeration.