Utils-checkpoint

Module Contents

Functions

mix_weights(beta)

create_z_fix(dim_latent_space)

Adapted from https://github.com/bmda-unibas/DeepArchetypeAnalysis/blob/master/AT_lib/lib_at.py

sample_batch(input_matrix, model_matrix, batch_size)

sample_batch_aux(max_value, batch_size)

sample_batch_by_class_aux(max, model_matrix, batch_size)

to_cpu_ot_iterate(x)

detach_or_iterate(x)

find_matching_indexes(input_list, regex_pattern)

select_elements_not_at_indexes(elements, exclude_indexes)

select_elements_at_indexes(elements, include_indexes)

Utils-checkpoint.mix_weights(beta)
Utils-checkpoint.create_z_fix(dim_latent_space)

Adapted from https://github.com/bmda-unibas/DeepArchetypeAnalysis/blob/master/AT_lib/lib_at.py

Utils-checkpoint.sample_batch(input_matrix, model_matrix, batch_size)
Utils-checkpoint.sample_batch_aux(max_value, batch_size)
Utils-checkpoint.sample_batch_by_class_aux(max, model_matrix, batch_size)
Utils-checkpoint.to_cpu_ot_iterate(x)
Utils-checkpoint.detach_or_iterate(x)
Utils-checkpoint.find_matching_indexes(input_list, regex_pattern)
Utils-checkpoint.select_elements_not_at_indexes(elements, exclude_indexes)
Utils-checkpoint.select_elements_at_indexes(elements, include_indexes)