You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context transfer tutorial (predicting perturbation responses for unseen cell-types), the train set contains the OOD cell-type (B cell):
OOD split
(adata[adata.obs['split_B'] == 'ood'].obs['cell_type'].values == 'B').sum()
# Prints 774
Train split
(adata[adata.obs['split_B'] == 'train'].obs['cell_type'].values == 'B').sum()
# Prints 543
I am interested in the scenario where certain conditions are not available at train time. When I do inference on unseen conditions using a trained CPA model, I get the following error:
ValueError: Category CATEGORY_NAME not found in source registry. Cannot transfer setup without `extend_categories = True`.
How can I set up CPA to generalize to unseen categories?
The text was updated successfully, but these errors were encountered:
rvinas
changed the title
Generalization to unseen conditions
Generalization to unseen categories
Feb 21, 2024
In the context transfer tutorial (predicting perturbation responses for unseen cell-types), the train set contains the OOD cell-type (B cell):
OOD split
Train split
I am interested in the scenario where certain conditions are not available at train time. When I do inference on unseen conditions using a trained CPA model, I get the following error:
How can I set up CPA to generalize to unseen categories?
The text was updated successfully, but these errors were encountered: