Creating schema with type "null" for genres throws error on AWS Console for Amazon Personalize

0

Using a web console for Amazon Personalize for creating item datasets, it throws an error "GENRES field cannot be of type null" when trying to create an item schema with GENRES that contains type "null". But the documentation https://docs.aws.amazon.com/personalize/latest/dg/how-it-works-dataset-schema.html has GENRES with type null for imperfect data. Also, it throws an error "schema is missing required field [genres]" if it's not included in the schema, which is odd, because the documentation says that the item schema requires ITEM_ID, CREATION_TIMESTAMP, and 1 metadata field where the table doesn't even mention genres. https://docs.aws.amazon.com/personalize/latest/dg/custom-datasets-and-schemas.html#dataset-requirements

However, we could create the schema without genres when using the AWS SDK. Is this a bug in AWS console? or is it a new requirement that hasn't been updated on SDK?

質問済み 2年前362ビュー
2回答
1
承認された回答

Solved the issue, we were using "Video-On-Demand" instead of custom model, and the requirements were different.

回答済み 2年前
0

If you are using a Custom Dataset Group you can define your own schema and allow for null values in a "GENRES" column:

{
  "name": "GENRES",
  "type": [
    "null",
    "string"
  ],
  "categorical": true
}

There is no requirement to have a "GENRES" metadata field in Custom Dataset Groups.

However, if you created a Domain Dataset Group, for instance:

response = personalize.create_dataset_group( 
    name='personalize_vod_ds_group',
    domain='VIDEO_ON_DEMAND'
)

In the 'VIDEO_ON_DEMAND' domain "GENRES" is a required field (Documentation) and will give an error if not provided.

AWS
Anna_G
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ