1
+ graph LR
2
+ subgraph Data Sources
3
+ database
4
+ csv
5
+ end
6
+
7
+ database -- > dataframe
8
+ csv -- > dataframe
9
+ dataframe -- > SMT_init
10
+
11
+ subgraph TrainedSupervisedModel
12
+ subgraph TSM_Properties
13
+ algorithm_name
14
+ is_classification
15
+ is_regression
16
+ best_hyperparameters
17
+ model_type
18
+ binary_classification_scores
19
+ metrics
20
+ end
21
+ subgraph TSM_Properties2
22
+ model
23
+ feature_model
24
+ fit_pipeline
25
+ column_names
26
+ _model_type
27
+ grain_column
28
+ prediction_column
29
+ test_set_predictions
30
+ test_set_class_labels
31
+ test_set_actual
32
+ _metric_by_name
33
+ end
34
+
35
+ subgraph TSM_methods
36
+ TSM_init [ __init__ ]
37
+ save
38
+ make_predictions
39
+ prepare_and_subset
40
+ make_factors
41
+ make_predictions_with_k_factors
42
+ make_original_with_predictions_and_features
43
+ create_catalyst_dataframe
44
+ predict_to_catalyst_sam
45
+ predict_to_sqlite
46
+ roc_curve_plot
47
+ roc
48
+ pr_curve_plot
49
+ pr
50
+ validate_classification
51
+ end
52
+ end
53
+
54
+ subgraph SupervisedModelTrainer
55
+ SMT_init -- > ASMT_init
56
+ SMT_init [ __init__ ] -- > full_pipeline
57
+
58
+ knn -- > knn2
59
+ random_forest -- > random_forest_classification_a
60
+ random_forest -- > random_forest_regression_a
61
+ logistic_regression -- > logistic_regression2
62
+ linear_regression -- > linear_regression2
63
+ subgraph AdvancedSupervisedModelTrainer
64
+ ASMT_init [ __init__ ]
65
+ knn2 -- > TSM_init
66
+ random_forest_classification_a -- > TSM_init
67
+ random_forest_regression_a -- > TSM_init
68
+ logistic_regression2 -- > TSM_init
69
+ linear_regression2 -- > TSM_init
70
+ end
71
+ end
72
+
73
+ subgraph toolbox
74
+ subgraph model_eval . py
75
+ compute_roc
76
+ compute_pr
77
+ validate_predictions_and_labels_are_equal_length
78
+ calculate_regression_metrics
79
+ calculate_binary_classification_metrics
80
+ tsm_classification_comparison_plots
81
+ roc_plot_from_thresholds
82
+ pr_plot_from_thresholds
83
+ plot_rf_from_tsm
84
+ plot_random_forest_feature_importance
85
+ get_estimator_from_trained_supervised_model
86
+ get_estimator_from_meta_estimator
87
+ get_hyperparameters_from_meta_estimator
88
+ end
89
+
90
+ subgraph data_preparation . py
91
+ full_pipeline
92
+ end
93
+
94
+ full_pipeline -- > DataFrameImputer
95
+ full_pipeline -- > DataFrameConvertTargetToBinary
96
+ full_pipeline -- > DataFrameCreateDummyVariables
97
+ full_pipeline -- > DataFrameConvertColumnToNumeric
98
+ full_pipeline -- > DataFrameUnderSampling
99
+ full_pipeline -- > DataFrameOverSampling
100
+ full_pipeline -- > DataframeDateTimeColumnSuffixFilter
101
+ full_pipeline -- > DataframeColumnRemover
102
+ full_pipeline -- > DataframeNullValueFilter
103
+
104
+ subgraph transformers . py
105
+ DataFrameImputer
106
+ DataFrameConvertTargetToBinary
107
+ DataFrameCreateDummyVariables
108
+ DataFrameConvertColumnToNumeric
109
+ DataFrameUnderSampling
110
+ DataFrameOverSampling
111
+ end
112
+
113
+ subgraph filters . py
114
+ DataframeDateTimeColumnSuffixFilter
115
+ DataframeColumnRemover
116
+ DataframeNullValueFilter
117
+ end
118
+ end
119
+
120
+ class model_eval pythonModule ;
121
+
122
+ classDef pythonClass fill :#00 ff33 ;
123
+ classDef pythonModule fill :#ff1100;
124
+
125
+ class Trainer pythonClass ;
126
+ class AdvancedTrainer pythonClass ;
127
+ class TSM pythonClass ;
0 commit comments