sourced.ml.core.utils

Package Contents

sourced.ml.core.utils.install_bigartm(args=None, target='./bigartm', tempdir=None)[source]

Deploys bigartm/bigartm at the specified path.

Parameters:
  • argsargparse.Namespace with “output” and “tmpdir”. “output” sets the target directory, “tmpdir” sets the temporary directory which is used to clone bigartm/bigartm and build it.
  • target – The path to the built executable. If args is not None, it becomes overridden.
  • tempdir – The temporary directory where to clone and build bigartm/bigartm. If args is not None, it becomes overridden.
Returns:

None if successful; otherwise, the error code (can be 0!).

class sourced.ml.core.utils.PickleableLogger(log_level=logging.INFO)[source]

Base class which provides the logging features through self._log.

Can be safely pickled.