scvi-tools icon indicating copy to clipboard operation
scvi-tools copied to clipboard

bug for custom classifier in adversarial training plan

Open SabrinaRichter opened this issue 1 year ago • 1 comments

When trying to use a custom classifier in the adversarial training plan, i get an scvi 'AdversarialTrainingPlan' object has no attribute 'n_output_classifier' error, I think because it's not set here https://github.com/scverse/scvi-tools/blob/dcadecbc26979af916b92ba07c979535a4a32a48/src/scvi/train/_trainingplans.py#L526 similar to the case above, but it's used 6 lines further down.

SabrinaRichter avatar May 27 '24 13:05 SabrinaRichter

Hi, thanks for trying to build on top of scVI-tools. To give a reasonable response, we will need more background than ‚custom classifier‘. What are you trying to do and how do you define it? The easiest would be to add an additional batch key for adversarial training and I can share code for this.

canergen avatar May 27 '24 16:05 canergen

Closed due to inactivity.

canergen avatar Jul 05 '24 19:07 canergen