Minimum Requirements for Datasets and Schema

In the following sections, we show the minimum requirements for your datasets and schemas.

Dataset Type Required Fields Examples

Interactions

user_id(string) 4757
item_id(integer) 10053
event_date(timestamp) 2022-01-25 00:00:00
event_type(string) “quantity” | “duration”
event_value(float, null) 14 | 115.42
Users user_id(string) 4012
created_dt(timestamp) 2022-02-14 00:00:00
Items item_id (string) 10177
created_dt(timestamp) 2022-03-05 00:00:00
Example Minimum Requirement Interactions Schema
{
	"name": "user_item_interaction",
	"namespace": "com.xineoh.recommender.schema",
	"fields": [
		{
			"name": "user_id",
			"type": "string"
		},
		{
			"name": "item_id",
			"type": "integer"
		},
		{
			"name": "event_type",
			"type": "string",
		},
		{
			"name": "event_value",
			"type": "float"
		},
		{
			"name": "event_date",
			"type": "timestamp"
		}
	],
	"version": "1.0"
}
Example Minimum Requirement Users Schema
{
	"name": "user_meta_data",
	"namespace": "com.xineoh.recommender.schema",
	"fields": [
		{
			"name": "user_id",
			"label": "user",
			"type": "integer"
		},
		{
			"name": "created_dt",
			"type": "timestamp"
		}
	],
	"version": "1.0"
}
Example Minimum Requirement Items Schema

The following is the default Media application schema for Items datasets.

{
	"name": "item_meta_data",
	"namespace": "com.xineoh.recommender.schema",
	"fields": [
		{
			"name": "item_id",
			"label": "item",
			"type": "integer"
		},
		{
			"name": "created_dt",
			"type": "timestamp"
		}
	],
	"version": "1.0"
}