Skip to content

Commit 94a63b8

Browse files
jaycee-licopybara-github
authored andcommitted
feat: enable experiment tracking in CustomJob
PiperOrigin-RevId: 523222632
1 parent 6dff577 commit 94a63b8

File tree

6 files changed

+535
-23
lines changed

6 files changed

+535
-23
lines changed

google/cloud/aiplatform/constants/base.py

+14
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
# limitations under the License.
1616
#
1717

18+
from google.cloud.aiplatform import version as aiplatform_version
19+
20+
1821
DEFAULT_REGION = "us-central1"
1922
SUPPORTED_REGIONS = frozenset(
2023
{
@@ -108,3 +111,14 @@
108111

109112
# Needed for Endpoint.raw_predict
110113
DEFAULT_AUTHED_SCOPES = ["https://www.googleapis.com/auth/cloud-platform"]
114+
115+
# Used in CustomJob.from_local_script for experiments integration in training
116+
AIPLATFORM_DEPENDENCY_PATH = (
117+
"google-cloud-aiplatform[metadata,tensorboard]"
118+
+ f"=={aiplatform_version.__version__}"
119+
)
120+
121+
AIPLATFORM_AUTOLOG_DEPENDENCY_PATH = (
122+
"google-cloud-aiplatform[metadata,tensorboard,autologging]"
123+
+ f"=={aiplatform_version.__version__}"
124+
)

0 commit comments

Comments
 (0)