statmike / vertex-ai-mlops

Google Cloud Platform Vertex AI end-to-end workflows for machine learning operations
Apache License 2.0
450 stars 202 forks source link

02c: def pipeline() gives Attribute Error. #53

Closed JonB451 closed 8 months ago

JonB451 commented 10 months ago

AttributeError: module 'google.cloud.aiplatform' has no attribute 'TabularDatasetCreateOp'

JonB451 commented 10 months ago

This comes from dataset = gcc_aip.TabularDatasetCreateOp(
Have tried changing to: dataset = gcc_aip.datasets.TabularDataset.create(

but this gives later error:

TypeError: object of type 'PipelineParameterChannel' has no len() the object in question being display_name.

statmike commented 10 months ago

Hello @JonB451 Apologies for the delay here. I took at look at issue #51 and reopened it to address the update I just pushed that should resolve the import of the components. This was due to a shift in the SDK since I originally made the notebook. This fix should also address the issue you are facing here in #53 .

Thank you for pointing this out! @statmike

JonB451 commented 10 months ago

Thanks @statmike . I've had to move onto something else for now, but will let you know when i get back to this. It's still high enough up my priorities that i hope that should be possible in the coming weeks so i will feedback if it worked here too. Thanks again, loads. You are a brilliant teacher, and generours, in material and in spirit it seems!