alpaca/alpacka/utils/mrunner_client.py
def configure_neptune(specification):
    """Configures the Neptune experiment, then returns the Neptune logger."""
    if 'NEPTUNE_API_TOKEN' not in os.environ:
        raise KeyError('NEPTUNE_API_TOKEN environment variable is not set!')

    git_info = specification.get('git_info', None)
    if git_info:
        git_info.commit_date = datetime.datetime.now()

    neptune.init(project_qualified_name=specification['project'])
    # Set pwd property with path to experiment.
    properties = {'pwd': os.getcwd()}
    neptune.create_experiment(name=specification['name'],
                              tags=specification['tags'],
                              params=specification['parameters'],
                              properties=properties,
                              git_info=git_info)
    atexit.register(neptune.stop)

    return NeptuneLogger(neptune.get_experiment())
Configures the Neptune experiment, then returns the Neptune logger.
Configures the Neptune experiment, then returns the Neptune logger.
Configures the Neptune experiment then returns the Neptune logger .
def configure_neptune(specification):
    if 'NEPTUNE_API_TOKEN' not in os.environ:
        raise KeyError('NEPTUNE_API_TOKEN environment variable is not set!')
    git_info = specification.get('git_info', None)
    if git_info:
        git_info.commit_date = datetime.datetime.now()
    neptune.init(project_qualified_name=specification['project'])
    properties = {'pwd': os.getcwd()}
    neptune.create_experiment(name=specification['name'],
                              tags=specification['tags'],
                              params=specification['parameters'],
                              properties=properties,
                              git_info=git_info)
    atexit.register(neptune.stop)
    return NeptuneLogger(neptune.get_experiment())
def configure_neptune ( specification ) : if 'NEPTUNE_API_TOKEN' not in os . environ : raise KeyError ( 'NEPTUNE_API_TOKEN environment variable is not set!' ) git_info = specification . get ( 'git_info' , None ) if git_info : git_info . commit_date = datetime . datetime . now ( ) neptune . init ( project_qualified_name = specification [ 'project' ] ) properties = { 'pwd' : os . getcwd ( ) } neptune . create_experiment ( name = specification [ 'name' ] , tags = specification [ 'tags' ] , params = specification [ 'parameters' ] , properties = properties , git_info = git_info ) atexit . register ( neptune . stop ) return NeptuneLogger ( neptune . get_experiment ( ) )
Configures the Neptune experiment, then returns the Neptune logger.
Configures the Neptune experiment then returns the Neptune logger .
"""Configures the Neptune experiment, then returns the Neptune logger.""" # Set pwd property with path to experiment.
specification