"""Constants definitions for tuner sub module."""

# API definition of Cloud AI Platform Optimizer service
OPTIMIZER_API_DOCUMENT_FILE = "api/ml_public_google_rest_v1.json"

# By default, the Tuner worker(s) always requests one trial at a time because
# we would parallelize the tuning loop themselves as opposed to getting multiple
# trial suggestions in one tuning loop.
SUGGESTION_COUNT_PER_REQUEST = 1

# Number of tries to retry getting study if it was already created
NUM_TRIES_FOR_STUDIES = 3


"""Constants definitions for tuner sub module."""

import os

# API definition of Cloud AI Platform Optimizer service
OPTIMIZER_API_DOCUMENT_FILE = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    "api/ml_public_google_rest_v1.json")

# By default, the Tuner worker(s) always requests one trial at a time because
# we would parallelize the tuning loop themselves as opposed to getting multiple
# trial suggestions in one tuning loop.
SUGGESTION_COUNT_PER_REQUEST = 1

# Number of tries to retry getting study if it was already created
NUM_TRIES_FOR_STUDIES = 3


Fix path to API doc
Fix path to API doc

  """Constants definitions for tuner sub module."""
  
+ import os
+ 
  # API definition of Cloud AI Platform Optimizer service
- OPTIMIZER_API_DOCUMENT_FILE = "api/ml_public_google_rest_v1.json"
+ OPTIMIZER_API_DOCUMENT_FILE = os.path.join(
+     os.path.dirname(os.path.abspath(__file__)),
+     "api/ml_public_google_rest_v1.json")
  
  # By default, the Tuner worker(s) always requests one trial at a time because
  # we would parallelize the tuning loop themselves as opposed to getting multiple
  # trial suggestions in one tuning loop.
  SUGGESTION_COUNT_PER_REQUEST = 1
  
  # Number of tries to retry getting study if it was already created
  NUM_TRIES_FOR_STUDIES = 3
  
  
Fix path to API doc
## Code Before:
"""Constants definitions for tuner sub module."""

# API definition of Cloud AI Platform Optimizer service
OPTIMIZER_API_DOCUMENT_FILE = "api/ml_public_google_rest_v1.json"

# By default, the Tuner worker(s) always requests one trial at a time because
# we would parallelize the tuning loop themselves as opposed to getting multiple
# trial suggestions in one tuning loop.
SUGGESTION_COUNT_PER_REQUEST = 1

# Number of tries to retry getting study if it was already created
NUM_TRIES_FOR_STUDIES = 3


## Instruction:
Fix path to API doc
## Code After:
"""Constants definitions for tuner sub module."""

import os

# API definition of Cloud AI Platform Optimizer service
OPTIMIZER_API_DOCUMENT_FILE = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    "api/ml_public_google_rest_v1.json")

# By default, the Tuner worker(s) always requests one trial at a time because
# we would parallelize the tuning loop themselves as opposed to getting multiple
# trial suggestions in one tuning loop.
SUGGESTION_COUNT_PER_REQUEST = 1

# Number of tries to retry getting study if it was already created
NUM_TRIES_FOR_STUDIES = 3

