theislab / cpa

The Compositional Perturbation Autoencoder (CPA) is a deep generative framework to learn effects of perturbations at the single-cell level. CPA performs OOD predictions of unseen combinations of drugs, learns interpretable embeddings, estimates dose-response curves, and provides uncertainty estimates.
BSD 3-Clause "New" or "Revised" License
83 stars 17 forks source link

model.predict() error: cannot unpack non-iterable NoneType object #22

Open znavidi opened 1 year ago

znavidi commented 1 year ago

Hi,

I am getting the below error in the model.predict() line when reproducing the Sciplex2 tutorial example with CPA version 0.3.3:

TypeError: cannot unpack non-iterable NoneType object

I used the tutorial code and only changed a few parameter names to be consistent with the updated GitHub version. I would appreciate any guidance on what the source of this error could be.

Thanks!

znavidi commented 1 year ago

I figured out that it was because of the change in the output of predict() function in the updated version of the package.

M0hammadL commented 1 year ago

Hi zeinab there will be a massive code update on Monday, @Naghipourfar