Last active
November 16, 2022 19:35
-
-
Save SaschaHeyer/0fee00abdf9a7fd85f2fcddf6bd17cc0 to your computer and use it in GitHub Desktop.
Vertex AI Experiments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
training_data_artifact = aiplatform.Artifact.create( | |
schema_title='system.Dataset', | |
uri='gs://doit-vertex-demo/higgs/training.csv', | |
display_name='data') | |
with aiplatform.start_execution( | |
schema_title="system.ContainerExecution", | |
display_name='training' | |
) as execution: | |
execution.assign_input_artifacts([training_data_artifact]) | |
# do the training and store the model as output artifact | |
model_artifact = aiplatform.Artifact.create( | |
schema_title='system.Model', | |
uri='gs://doit-vertex-demo/higgs/model', | |
display_name='model') | |
execution.assign_output_artifacts([model_artifact]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment