3 Commits

+2 -3
View File
@@ -986,9 +986,8 @@ def _run_clustering_pipeline(run, store, entity_ds_id, feature_columns, algorith
profiles = [] profiles = []
cr_cache = {} cr_cache = {}
for i, row in enumerate(df_umap.iter_rows(named=True)): for i, row in enumerate(df_umap.iter_rows(named=True)):
ev = str(row.get(ent_col, '')) ev = str(row.get(ent_col, '')) or 'entity'
if not ev: ev = f'{ev}_{i}'
continue
lbl = labels_list[i] if i < len(labels_list) else -1 lbl = labels_list[i] if i < len(labels_list) else -1
cache_key = f'{run.id}_{lbl}' cache_key = f'{run.id}_{lbl}'
if cache_key not in cr_cache: if cache_key not in cr_cache: