GoogleCloudPlatform / automlops

Build MLOps Pipelines in Minutes
Apache License 2.0
194 stars 34 forks source link

Feature/monitoring #52

Closed srastatter closed 7 months ago

srastatter commented 8 months ago

[1.2.9] - 2024-1-18

Added

Changed

Fixed

Akhan221 commented 8 months ago

Overall PR looks good to me! One thing to note, I tried running an example notebook locally and during the generate step it throws an error stating that _generate() got an unexpected keyword argument 'setup_modelmonitoring' despite uninstalling and reinstalling AMO. Let's have someone else pull down the branch and see if it works on their machine.

Akhan221 commented 8 months ago

Resolved prior issue by using pip install .. However, now I get an import error: ImportError from google.cloud import logging. Need to add google-cloud-logging package to requirements.txt.

Also got this error: TypeError: Parameter to MergeFrom() must be instance of same class: expected google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig got ScheduleConfig. .

This seems to be a package conflict issue, need to make sure proper versions are set in requirements.txt.

srastatter commented 7 months ago

AutoMLOps.generate(...setup_model_monitoring=true) will create a directory AutoMLOps/model_monitoring that inside of it has the requirements.txt that you need to install in order to use this feature. I don't want to make these requirements come bundled with AutoMLOps by default.

Regarding the other issue, I think it's a package mismatch issue on your local machine - what version of google-cloud-aiplatform are you running?