Пример #1
0
def _default_root_dir():
    return get_env(_TRACKING_DIR_ENV_VAR) or os.path.abspath("mlruns")
Пример #2
0
def _get_experiment_id():
    return int(
        env.get_env(_EXPERIMENT_ID_ENV_VAR)
        or Experiment.DEFAULT_EXPERIMENT_ID)
Пример #3
0
def is_tracking_uri_set():
    """Returns True if the tracking URI has been set, False otherwise."""
    if _tracking_uri or env.get_env(_TRACKING_URI_ENV_VAR):
        return True
    return False
Пример #4
0
def _default_table_prefix():
    return get_env(_DYNAMODB_TABLE_PREFIX_VAR) or "mlflow"
Пример #5
0
def _default_endpoint_url():
    return get_env(_DYNAMODB_ENDPOINT_URL_VAR)
Пример #6
0
def _default_root_dir():
    return get_env(_TRACKING_DIR_ENV_VAR) or os.path.abspath(
        DEFAULT_LOCAL_FILE_AND_ARTIFACT_PATH)
Пример #7
0
def _get_experiment_id_from_env():
    experiment_name = env.get_env(_EXPERIMENT_NAME_ENV_VAR)
    if experiment_name is not None:
        exp = MlflowClient().get_experiment_by_name(experiment_name)
        return exp.experiment_id if exp else None
    return env.get_env(_EXPERIMENT_ID_ENV_VAR)
Пример #8
0
def _get_experiment_id():
    return int(_active_experiment_id or env.get_env(_EXPERIMENT_ID_ENV_VAR)
               or (env.get_env(_AUTODETECT_EXPERIMENT)
                   and is_in_databricks_notebook() and get_notebook_id())
               or Experiment.DEFAULT_EXPERIMENT_ID)