gnes.helper module

gnes.helper.get_sys_info()[source]
gnes.helper.get_optimal_sample_size(x)[source]
gnes.helper.get_perm(L, m)[source]
gnes.helper.time_profile(func)[source]
gnes.helper.set_logger(context, verbose=False)[source]
gnes.helper.batch_iterator(data: Union[Iterator[Any], List[Any], numpy.ndarray], batch_size: int, axis: int = 0) → Iterator[Any][source]
gnes.helper.batching(func: Callable[Any, numpy.ndarray] = None, *, batch_size: Union[int, Callable] = None, num_batch=None, iter_axis: int = 0, concat_axis: int = 0, chunk_dim=-1)[source]
gnes.helper.load_contrib_module()[source]
gnes.helper.parse_arg(v: str)[source]
gnes.helper.profiling(func)
class gnes.helper.FileLock(lock_file: str = 'LOCK')[source]

Bases: object

Implements the Posix based file locking (Linux, Ubuntu, MacOS, etc.)

acquire()[source]
is_locked
release()[source]
gnes.helper.train_required(func)[source]
gnes.helper.get_first_available_gpu()[source]
class gnes.helper.PathImporter[source]

Bases: object

static add_modules(*paths)[source]