Skip to content

model.predict(adata) behavior, what is exactly obsm['CPA_pred'] ?  #59

Description

@aidenOwlen

Hi,

Regarding the tutorial on OOD perturbation prediction on Kang: https://colab.research.google.com/github/theislab/cpa/blob/master/docs/tutorials/Kang.ipynb

I don't get model.predict(adata) behavior, what is exactly saved in obsm['CPA_pred'] ? because afterwards R2 is computed between obsm["CPA_pred"] and layers["counts"]:
x_true = cat_adata.layers['counts']
x_pred = cat_adata.obsm['CPA_pred']

In the notebook tutorial x_true and x_pred have the same shape. Shouldn't the expected behavior be to take control cells and stimulate them ? In that case x_pred should have same number of samples as control cells for a particular cell_type, not the same number as stimulated cells. What am I missing ?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions