-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
component: feature storeRelates to the SageMaker Feature Store PlatformRelates to the SageMaker Feature Store Platformcontributions welcometype: bug
Description
Describe the bug
When calling FeatureGroup.create (and other) method the SDK fails with the following exception:
Traceback (most recent call last):
File "test.py", line 15, in <module>
fg.create(
File "/home/guillem/miniconda3/envs/jk-nb/lib/python3.8/site-packages/sagemaker/feature_store/feature_group.py", line 521, in create
return self.sagemaker_session.create_feature_group(**create_feature_store_args)
TypeError: create_feature_group() missing 1 required positional argument: 'self'
To reproduce
import sagemaker
from sagemaker.feature_store.feature_group import FeatureDefinition, FeatureGroup, FeatureTypeEnum
sagemaker_sess = sagemaker.Session()
fds = [
FeatureDefinition(feature_name="label", feature_type=FeatureTypeEnum.INTEGRAL),
FeatureDefinition(feature_name="test", feature_type=FeatureTypeEnum.INTEGRAL),
FeatureDefinition(feature_name="message_id", feature_type=FeatureTypeEnum.STRING),
FeatureDefinition(feature_name="date", feature_type=FeatureTypeEnum.STRING),
]
fg = FeatureGroup(name="test-fs", feature_definitions=fds)
fg.create(
f"s3://{sagemaker_sess.default_bucket()}/test-store",
record_identifier_name="message_id",
event_time_feature_name="date",
role_arn=sagemaker.get_execution_role(sagemaker_sess),
)
System information
A description of your system. Please provide:
- SageMaker Python SDK version: 2.88.1
- Python version: Python 3.8.12
- CPU or GPU: CPU
- Custom Docker image (Y/N): N
athewsey
Metadata
Metadata
Assignees
Labels
component: feature storeRelates to the SageMaker Feature Store PlatformRelates to the SageMaker Feature Store Platformcontributions welcometype: bug