Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add param for multi-label per user's feedback #887

Merged
merged 5 commits into from Dec 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -24,6 +24,7 @@ def create_training_pipeline_image_classification_sample(
display_name: str,
dataset_id: int,
model_display_name: Optional[str] = None,
multi_label: bool = False,
dandhlee marked this conversation as resolved.
Show resolved Hide resolved
training_fraction_split: float = 0.8,
validation_fraction_split: float = 0.1,
test_fraction_split: float = 0.1,
Expand All @@ -33,7 +34,10 @@ def create_training_pipeline_image_classification_sample(
):
aiplatform.init(project=project, location=location)

job = aiplatform.AutoMLImageTrainingJob(display_name=display_name)
job = aiplatform.AutoMLImageTrainingJob(display_name=display_name,
prediction_type='classification',
multi_label=multi_label
)
dandhlee marked this conversation as resolved.
Show resolved Hide resolved

my_image_ds = aiplatform.ImageDataset(dataset_id)

Expand Down