Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 26, 2024
1 parent eeaafef commit 82f16f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/tuning/joint_embedding_scmvae/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import argparse
import gc
import gc
import os
import pprint
import sys
Expand Down Expand Up @@ -111,7 +110,7 @@ def evaluate_pipeline(tune_mode=args.tune_mode, pipeline_planer=pipeline_planer)
train_name=[item for item in data.mod["mod1"].obs_names if item in data.mod["meta1"].obs_names]
train_idx= [data.mod["mod1"].obs_names.get_loc(name) for name in train_name]
test_idx=list(set([i for i in range(data.mod["mod1"].shape[0])]).difference(set(train_idx)))

# train_size=data.mod["meta1"].shape[0]
# test_size=data.mod["mod1"].shape[0]-train_size
data.set_split_idx("train",train_idx)
Expand Down

0 comments on commit 82f16f4

Please sign in to comment.