Skip to content

gene variable name is incorrectly reused #5

Description

@Scooter1337

for gene in tqdm(range(gene_start, gene_end)): #tqdm(range(gt_interv.shape[0])):
model = BICYCLE.load_from_checkpoint(checkpoint_path=OUT_PATH / f"temp_{DATASET}.ckpt", map_location=device, strict=True)
model.optimizer = "adam"
model.lr = 1e-3
if RANDOMIZE == 1:
model.z_loc.data = z_loc_init
model.z_scale.data = z_scale_init
model.train()
for gene in range(61):

There is a nested for gene in range(61) loop that reuses the same variable name as the outer loop, potentially causing unintended behavior.

How were the I-MAE values for the paper calculated?

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