We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8136a4d commit 80205bcCopy full SHA for 80205bc
chebai/cli.py
@@ -1,7 +1,8 @@
1
-from typing import Dict, Set
+from typing import Dict, Set, Type
2
3
from lightning.pytorch.cli import LightningArgumentParser, LightningCLI
4
5
+from chebai.preprocessing.datasets import XYBaseDataModule
6
from chebai.trainer.CustomTrainer import CustomTrainer
7
8
@@ -39,7 +40,7 @@ def add_arguments_to_parser(self, parser: LightningArgumentParser):
39
40
parser (LightningArgumentParser): Argument parser instance.
41
"""
42
- def call_data_methods(data):
43
+ def call_data_methods(data: Type[XYBaseDataModule]):
44
if data._num_of_labels is None:
45
data.prepare_data()
46
data.setup()
0 commit comments