Coverage for src/bob/bio/base/pipelines/__init__.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-14 21:41 +0100

1# isort: skip_file 

2from .pipelines import PipelineSimple # noqa: F401 

3from .score_writers import FourColumnsScoreWriter, CSVScoreWriter 

4from .wrappers import ( # noqa: F401 

5 BioAlgCheckpointWrapper, 

6 BioAlgDaskWrapper, 

7 checkpoint_pipeline_simple, 

8 dask_bio_pipeline, 

9 is_biopipeline_checkpointed, 

10 get_bio_alg_tags, 

11) 

12 

13from .abstract_classes import BioAlgorithm, Database, ScoreWriter 

14 

15from .score_post_processor import ( # noqa: F401 

16 PipelineScoreNorm, 

17 ZNormScores, 

18 TNormScores, 

19 CategoricalCalibration, 

20 WeibullCalibration, 

21 LLRCalibration, 

22 GammaCalibration, 

23 BetaCalibration, 

24) 

25 

26from .entry_points import ( # noqa: F401 

27 execute_pipeline_simple, 

28 execute_pipeline_score_norm, 

29 execute_pipeline_train, 

30) 

31 

32 

33# gets sphinx autodoc done right - don't remove it 

34def __appropriate__(*args): 

35 """Says object was actually declared here, and not in the import module. 

36 Fixing sphinx warnings of not being able to find classes, when path is 

37 shortened. 

38 

39 Parameters 

40 ---------- 

41 *args 

42 An iterable of objects to modify 

43 

44 Resolves `Sphinx referencing issues 

45 <https://github.com/sphinx-doc/sphinx/issues/3048>` 

46 """ 

47 

48 for obj in args: 

49 obj.__module__ = __name__ 

50 

51 

52__appropriate__( 

53 PipelineSimple, 

54 FourColumnsScoreWriter, 

55 CSVScoreWriter, 

56 BioAlgCheckpointWrapper, 

57 BioAlgDaskWrapper, 

58 BioAlgorithm, 

59 Database, 

60 ScoreWriter, 

61 PipelineScoreNorm, 

62 ZNormScores, 

63 TNormScores, 

64 CategoricalCalibration, 

65 WeibullCalibration, 

66 LLRCalibration, 

67 GammaCalibration, 

68 BetaCalibration, 

69) 

70 

71__all__ = [_ for _ in dir() if not _.startswith("_")]