Embedding categorical fields in Graft
Further information on Categorical fields can be found here
Prerequisites
A data source with at least one categorical field, see creating a categorical data source
Embedding Categorical Fields
To embed the Categorical field we need to create an Entity and use the Categorical Encoder rather than one of our standard Trunk Models.
The following shows the steps to achieve this and can be reviewed alongside the standard entity creation documentation.
Entity Creation
Now that the data source has been created and the categorical field defined we can create an entity in which we will ingest and embed the data.
- Click CREATE ENTITY from the Entities tab
- Enter a suitable name for the entity OPTIONALLY Add a description so your colleagues will know the purpose of the Entity
- Click NEXT
- Select the data source from the Data Source drop down
- Select all the fields you require for the entity
- Click NEXT
- Select the field representing your primary key
- Click NEXT
We do not need to add existing entities to this entity, skip ahead by…
- Clicking NEXT
- Click on the categorical field to be embedded.
DEFAULT MODEL
The default Category Encoder will be selected
- Clicking FINISH to complete the Entity creation workflow
A summary of the created Entity is displayed
The processing jobs may now be started to ingest and embed the categorical data.