sagemaker-python-sdk icon indicating copy to clipboard operation
sagemaker-python-sdk copied to clipboard

Sagemaker Session and FeatureGroup describe_feature_metadata() function missing

Open gregcodercw opened this issue 2 years ago • 0 comments

I'm running into a possible bug I don't understand. I have an existing feature group that I'm trying to get the metadata from but the method is missing on the FeatureGroup object.

Using SageMaker Studio and Jupyter Notebooks.

from sagemaker.session import Session
from sagemaker.feature_store.feature_group import FeatureGroup

sagemaker_session = Session()
feature_group = FeatureGroup(name='test-feature-group', sagemaker_session=sagemaker_session)
feature_group.describe()  #works great
feature_group.describe_feature_metadata()  #AttributeError: 'FeatureGroup' object has no attribute 'describe_feature_metadata'

When I dump the class source code using print(inspect.getsource(FeatureGroup)) the function is there but inspecting the object after instantiation the function is missing. The sagemaker_session object is also supposed to have describe_feature_metadata() method which is also missing. The session client does work with sagemaker_session.sagemaker_client.describe_feature_metadata(FeatureGroupName='...', FeatureName='...') which functions as expected and is my work around for now.

Python 3.7.10 Sagemaker-2.103.0

gregcodercw avatar Aug 07 '22 17:08 gregcodercw