Are non-categorical fields used for training in Amazon Personalize with User Personalization recipe?

0

For example, if I have the following User schema:

{
	"name": "USER_ID",
	"type": "string"
},
{
	"name": "AGE",
	"type": [
	  "null",
	  "int"
	],
        "categorical": true
},
{
	"name": "GENDER",
	"type": [
          "null",
	  "string"
	],
},
{
        "name": "USER_DESCRIPTION",
        "type": "string"
}

Will the "GENDER" field be used for training or will only the "AGE" be used for training?

Also, what are the differences between contextual & categorial metadata?

Is this applicable for Users, Item, and User-Item interactions?

I am new to Amazon Personalize, so I apologize if this is trivial.

질문됨 2년 전319회 조회
1개 답변
0

Hi & thanks for asking!

As mentioned in the "Metadata fields" section of the Custom Datasets and Schemas developer guide page:

If you add your own metadata field of type string, it must include the categorical attribute or the textual attribute (only Items schemas support fields with the textual attribute). Otherwise, Amazon Personalize won't use the field when training a model.

...So you must explicitly specify string fields as either categorical or textual, otherwise Personalize will ignore them in model training (which can also be useful - if you'd like to include a field for filtering purpose but not have it affect the model). Since you're building a user metadata schema, not item - it'll need to be categorical.

However - I think you'll also need to remove the categorical flag from your "AGE" field there: since it's a numeric rather than string. You can also refer to this example user metadata schema.

AWS
전문가
Alex_T
답변함 2년 전
  • To expand on what Alex said, numerical fields are always used model training (for the recipes and recommenders that use that data). You can have the AGE field as categorical field if you want to define your own categories, for instance "child", "teen", "adult". You should do this if you have particular categories that make sense for your use-case rather than relying on Amazon Personalize to process the data. Non categorical/non numerical fields can be added to be used for filtering and numerical fields can be used for optimizing on an additional objective.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠