fdl.VectorFeature

Represents custom features derived from a single vector column.

Input ParameterTypeDefaultDescription
typeCustomFeatureTypeCustomFeatureType.FROM_VECTORIndicates this feature is derived from a single vector column.
source_columnOptional[str]NoneSpecifies the original column if this feature is derived from an embedding.
columnstrNoneThe vector column name.
n_clustersOptional[int]5The number of clusters.
centroidsOptional[List]Centroids of the clusters in the embedded space. Number of centroids equal to n_clustersCentroids of the clusters in the embedded space. Number of centroids equal to n_clusters
vector_feature = fdl.VectorFeature(
    name='vector_feature',
    column='vector_column'
)