Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: scib-autotune #3168

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: scib-autotune #3168

wants to merge 1 commit into from

Conversation

ori-kron-wis
Copy link
Collaborator

re open the scib-autotune branch
see: #2593
#2517

@ori-kron-wis ori-kron-wis added the on-merge: backport to 1.2.x on-merge: backport to 1.2.x label Jan 28, 2025
@ori-kron-wis ori-kron-wis added this to the scvi-tools 1.2 milestone Jan 28, 2025
@ori-kron-wis ori-kron-wis self-assigned this Jan 28, 2025
from lightning.pytorch.callbacks import Callback, ModelCheckpoint
from lightning.pytorch.callbacks.early_stopping import EarlyStopping
from lightning.pytorch.utilities import rank_zero_info
from scib_metrics.benchmark import ( # TODO: Need to be installed by default if we put it here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to go into the CallBack. Don’t make it default.

batch = outputs["batch"].numpy()
labels = outputs["labels"].numpy()

adata = AnnData(X=x, obs={"batch": batch, "labels": labels}, obsm={"z": z})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn’t need X. We should be able to run it on some custom indices. It’s otherwise to expensive quickly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just an initial draft. No need to review yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-merge: backport to 1.2.x on-merge: backport to 1.2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants