cp_factor transpose print

This commit is contained in:
Kaushik Narayan R 2023-10-13 17:33:08 -07:00
parent eb0d50b1cd
commit 8ebf13d597

View File

@ -1260,7 +1260,7 @@ def extract_CP_semantics_from_feature_model(
key=lambda x: x[1], key=lambda x: x[1],
reverse=True, reverse=True,
)[:top_images] )[:top_images]
for latent_semantic in factor_matrices[i] for latent_semantic in factor_matrices[i].T
] ]
print(f"Showing {strs[i]}-weight latent semantic") print(f"Showing {strs[i]}-weight latent semantic")
for idx, latent_semantic in enumerate(displayed_latent_semantics): for idx, latent_semantic in enumerate(displayed_latent_semantics):