Skip to content

Commit

Permalink
update main
Browse files Browse the repository at this point in the history
  • Loading branch information
xingzhongyu committed Jun 5, 2024
1 parent d0a9325 commit 5aa074a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/tuning/cta_singlecellnet/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import argparse
import os
import pprint
import sys
from pathlib import Path
from typing import get_args

import numpy as np
import wandb

import wandb
from dance import logger
from dance.datasets.singlemodality import CellTypeAnnotationDataset
from dance.modules.single_modality.cell_type_annotation.singlecellnet import SingleCellNet
Expand Down Expand Up @@ -49,6 +50,7 @@
])).resolve()
logger.info(f"\n files is saved in {file_root_path}")
pipeline_planer = PipelinePlaner.from_config_file(f"{file_root_path}/{args.tune_mode}_tuning_config.yaml")
os.environ["WANDB_AGENT_MAX_INITIAL_FAILURES"] = "2000"

def evaluate_pipeline(tune_mode=args.tune_mode, pipeline_planer=pipeline_planer):
wandb.init(settings=wandb.Settings(start_method='thread'))
Expand Down

0 comments on commit 5aa074a

Please sign in to comment.