celldisect.CellDISECT.add_perturbation_embedding
- CellDISECT.add_perturbation_embedding(name: str, embedding: numpy.ndarray) None[source]
Register an embedding vector for an unseen atomic perturbation.
After calling this method the model can predict counterfactuals for the new perturbation (or combinatorial perturbations that include it).
- Parameters:
name – Atomic perturbation name (e.g.
"GeneC").embedding – Vector representation with the same dimensionality as the predefined embeddings used during training.