com.spotify.featran.transformers
Transform a collection of weighted categorical features to columns of weight sums, with at most N values.
Weights of the same labels in a row are summed instead of 1.0 as is the case with the normal NHotEncoder.
Missing values are transformed to zero vectors.
When using aggregated feature summary from a previous session, unseen labels are ignored and FeatureRejection.Unseen rejections are reported.
Create a new NHotWeightedEncoder instance.
Transform a collection of weighted categorical features to columns of weight sums, with at most N values.
Weights of the same labels in a row are summed instead of 1.0 as is the case with the normal NHotEncoder.
Missing values are transformed to zero vectors.
When using aggregated feature summary from a previous session, unseen labels are ignored and FeatureRejection.Unseen rejections are reported.