Crystal Space Embedding Module

Crystal Space Embedding Module#

Utility functions for plotting dimension reduced embeddings using plotly.

smact.utils.crystal_space.plot_embedding.plot_reducers_embeddings(df_label: pd.DataFrame, reducers: list[str], embedding_names: list[str], embedding_dir: Path, save_path: Path, symbol: str = 'circle', title: str = 'Embedding Visualization') go.Figure[source]#

Plot dimension reduction plots.

smact.utils.crystal_space.plot_embedding.update_layout(fig: Figure, title: str, num_row: int = 6, num_col: int = 3, width: float = 1200, height: float = 1800) Figure[source]#

Update layout of a plotly figure.