コード例 #1
0
ファイル: tasks.py プロジェクト: t4rhony4/pytext
 class Config(Task.Config):
     model: Union[BaggingDocEnsemble.Config, BaggingIntentSlotEnsemble.Config]
     trainer: EnsembleTrainer.Config = EnsembleTrainer.Config()
     labels: List[TargetConfigBase]
     data_handler: JointModelDataHandler.Config = JointModelDataHandler.Config()
     metric_reporter: Union[
         ClassificationMetricReporter.Config, IntentSlotMetricReporter.Config
     ]
コード例 #2
0
 class Config(NewTask.Config):
     model: EnsembleModel.Config
     trainer: EnsembleTrainer.Config = EnsembleTrainer.Config()
     metric_reporter: Union[ClassificationMetricReporter.Config,
                            IntentSlotMetricReporter.
                            Config] = ClassificationMetricReporter.Config()
コード例 #3
0
 class Config(NewTask.Config):
     model: BaggingDocEnsemble.Config
     trainer: EnsembleTrainer.Config = EnsembleTrainer.Config()
     metric_reporter: ClassificationMetricReporter.Config = (
         ClassificationMetricReporter.Config())