com.spotify.featran.transformers
Transform a collection of categorical features to a single value that is the position of that feature within the complete set of categories.
Missing values are transformed to zeros so may collide with the first position. Rejections can be used to remove this case.
When using aggregated feature summary from a previous session, unseen labels are ignored and FeatureRejection.Unseen rejections are reported.
Create a new PositionEncoder instance.
Transform a collection of categorical features to a single value that is the position of that feature within the complete set of categories.
Missing values are transformed to zeros so may collide with the first position. Rejections can be used to remove this case.
When using aggregated feature summary from a previous session, unseen labels are ignored and FeatureRejection.Unseen rejections are reported.