SuperModelingFactory 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ExcelMaster/ExcelFormatTool.py +487 -0
- ExcelMaster/ExcelMaster.py +917 -0
- ExcelMaster/Template.py +525 -0
- ExcelMaster/Utility.py +233 -0
- ExcelMaster/__init__.py +3 -0
- Modeling_Tool/Core/Binning_Tool.py +1608 -0
- Modeling_Tool/Core/Binning_Tool.pyi +48 -0
- Modeling_Tool/Core/Check_DuckDB_Compatibility.py +835 -0
- Modeling_Tool/Core/Json_Data_Converter.py +621 -0
- Modeling_Tool/Core/Model_Registry_Tool.py +199 -0
- Modeling_Tool/Core/ODPS_Tool.py +284 -0
- Modeling_Tool/Core/Slope_Tool.py +356 -0
- Modeling_Tool/Core/Slope_Tool.pyi +31 -0
- Modeling_Tool/Core/XOR_Encryptor.py +207 -0
- Modeling_Tool/Core/XOR_Encryptor.pyi +26 -0
- Modeling_Tool/Core/__init__.py +99 -0
- Modeling_Tool/Core/kDataFrame.py +228 -0
- Modeling_Tool/Core/kDataFrame.pyi +43 -0
- Modeling_Tool/Core/sample_weight_utils.py +77 -0
- Modeling_Tool/Core/utils.py +2672 -0
- Modeling_Tool/Eval/Evaluation_Tool.py +1452 -0
- Modeling_Tool/Eval/Evaluation_Tool.pyi +47 -0
- Modeling_Tool/Eval/Model_Eval_Tool.py +2548 -0
- Modeling_Tool/Eval/Model_Eval_Tool.pyi +37 -0
- Modeling_Tool/Eval/__init__.py +54 -0
- Modeling_Tool/Eval/evaluate_model.py +2008 -0
- Modeling_Tool/Eval/evaluate_model.pyi +50 -0
- Modeling_Tool/Eval/weighted_eval_utils.py +326 -0
- Modeling_Tool/Explainability/Coalition_Structure.py +305 -0
- Modeling_Tool/Explainability/Model_Explainer.py +743 -0
- Modeling_Tool/Explainability/__init__.py +24 -0
- Modeling_Tool/Feature/Distribution_Tool.py +509 -0
- Modeling_Tool/Feature/Distribution_Tool.pyi +42 -0
- Modeling_Tool/Feature/Feature_Insights.py +762 -0
- Modeling_Tool/Feature/Feature_Insights.pyi +33 -0
- Modeling_Tool/Feature/PSI_Tool.py +1195 -0
- Modeling_Tool/Feature/PSI_Tool.pyi +29 -0
- Modeling_Tool/Feature/WOE_Engine_Feature_Patch.py +355 -0
- Modeling_Tool/Feature/__init__.py +40 -0
- Modeling_Tool/Model/Backward_Tool.py +778 -0
- Modeling_Tool/Model/Backward_Tool.pyi +45 -0
- Modeling_Tool/Model/GBM_Search_Tool.py +251 -0
- Modeling_Tool/Model/GBM_Tool.py +1610 -0
- Modeling_Tool/Model/GBM_Tool.pyi +90 -0
- Modeling_Tool/Model/LRM_Tool.py +1198 -0
- Modeling_Tool/Model/LRM_Tool.pyi +47 -0
- Modeling_Tool/Model/__init__.py +61 -0
- Modeling_Tool/Sample/Distribution_Adaptation.py +131 -0
- Modeling_Tool/Sample/Distribution_Adaptation.pyi +30 -0
- Modeling_Tool/Sample/Reject_Infer.py +413 -0
- Modeling_Tool/Sample/Reject_Infer.pyi +43 -0
- Modeling_Tool/Sample/Sample_Split.py +520 -0
- Modeling_Tool/Sample/Sample_Split.pyi +43 -0
- Modeling_Tool/Sample/__init__.py +31 -0
- Modeling_Tool/UAT/UAT_Consistency_Checker.py +1180 -0
- Modeling_Tool/UAT/__init__.py +19 -0
- Modeling_Tool/WOE/WOE_Adapter.py +204 -0
- Modeling_Tool/WOE/WOE_Adapter.pyi +21 -0
- Modeling_Tool/WOE/WOE_Master.py +491 -0
- Modeling_Tool/WOE/WOE_Master.pyi +40 -0
- Modeling_Tool/WOE/WOE_Monotone_Binner.py +3324 -0
- Modeling_Tool/WOE/WOE_Monotone_Binner.pyi +71 -0
- Modeling_Tool/WOE/WOE_Plot_Tool.py +919 -0
- Modeling_Tool/WOE/WOE_Plot_Tool.pyi +46 -0
- Modeling_Tool/WOE/WOE_Report_Builder.py +214 -0
- Modeling_Tool/WOE/WOE_Report_Builder.pyi +24 -0
- Modeling_Tool/WOE/WOE_Tool.py +1094 -0
- Modeling_Tool/WOE/WOE_Tool.pyi +41 -0
- Modeling_Tool/WOE/__init__.py +86 -0
- Modeling_Tool/WOE/plot_woe_tool.py +290 -0
- Modeling_Tool/WOE/plot_woe_tool.pyi +25 -0
- Modeling_Tool/__init__.py +176 -0
- Report/Report_Tool.py +380 -0
- Report/__init__.py +3 -0
- supermodelingfactory-0.2.0.dist-info/METADATA +268 -0
- supermodelingfactory-0.2.0.dist-info/RECORD +79 -0
- supermodelingfactory-0.2.0.dist-info/WHEEL +5 -0
- supermodelingfactory-0.2.0.dist-info/licenses/LICENSE +102 -0
- supermodelingfactory-0.2.0.dist-info/top_level.txt +3 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# Modeling_Tool.Model.GBM_Tool
|
|
3
|
+
# -----------------------------------------------------------------------------
|
|
4
|
+
# Copyright (c) 2026 Kyle Sun <github.com/Kyle-J-Sun>. All rights reserved.
|
|
5
|
+
# SuperModelingFactory — Licensed under the Business Source License 1.1.
|
|
6
|
+
#
|
|
7
|
+
# This stub describes the public API of a closed-source module compiled to a
|
|
8
|
+
# native extension (.so / .pyd). The original source is not distributed.
|
|
9
|
+
# Production / commercial use requires a separate commercial license.
|
|
10
|
+
#
|
|
11
|
+
# FINGERPRINT: SMF-GBMTOOL-3641af20
|
|
12
|
+
# (Unique trace marker. Do not remove or alter — used for plagiarism
|
|
13
|
+
# detection across the public internet.)
|
|
14
|
+
# =============================================================================
|
|
15
|
+
|
|
16
|
+
import pandas as pd
|
|
17
|
+
from Modeling_Tool.Core.utils import load_model, save_model
|
|
18
|
+
from sklearn.calibration import CalibratedClassifierCV, calibration_curve
|
|
19
|
+
from sklearn.metrics import brier_score_loss, roc_auc_score
|
|
20
|
+
def set_num_leaves(max_depth = 5, wgt = 1): ...
|
|
21
|
+
def lgb_model(x, y, valx, valy, params_dict, wgt = None, init_score = None): ...
|
|
22
|
+
def lgb_varimp(model): ...
|
|
23
|
+
def lgbm_quick_train(train_data, validation_data, x, y, params, wgt_col = None, cat_x_train = None): ...
|
|
24
|
+
def xgb_model(x, y, valx, valy, params_dict, sample_weight = None, sample_weight_eval_set = None, base_margin = None): ...
|
|
25
|
+
def xgb_varimp(model): ...
|
|
26
|
+
def xgbm_quick_train(train_data, validation_data, x, y, wgt_col, params, sample_weight_eval_set = None): ...
|
|
27
|
+
def catboost_model(x, y, valx, valy, params_dict, sample_weight = None): ...
|
|
28
|
+
def catboost_varimp(model): ...
|
|
29
|
+
def catboost_quick_train(train_data, validation_data, x, y, params, wgt_col = None, cat_features = None): ...
|
|
30
|
+
|
|
31
|
+
class LightGBMModel:
|
|
32
|
+
def __init__(self, params, model = None): ...
|
|
33
|
+
def fit(self, x, y, valx, valy, wgt = None, init_score = None): ...
|
|
34
|
+
def predict(self, x): ...
|
|
35
|
+
def get_feature_importance(self, importance_type = 'gain'): ...
|
|
36
|
+
def save(self, path): ...
|
|
37
|
+
def load(self, path): ...
|
|
38
|
+
def calibrate(self, x, y, method = 'sigmoid', cv = 'prefit'): ...
|
|
39
|
+
def calibration_curve(self, x, y, n_bins = 10): ...
|
|
40
|
+
def brier_score(self, x, y): ...
|
|
41
|
+
def roc_auc(self, x, y): ...
|
|
42
|
+
|
|
43
|
+
class XGBoostModel:
|
|
44
|
+
def __init__(self, params, model = None): ...
|
|
45
|
+
def fit(self, x, y, valx, valy, sample_weight = None, sample_weight_eval_set = None, base_margin = None): ...
|
|
46
|
+
def predict(self, x): ...
|
|
47
|
+
def get_feature_importance(self, importance_type = 'gain'): ...
|
|
48
|
+
def save(self, path): ...
|
|
49
|
+
def load(self, path): ...
|
|
50
|
+
def calibrate(self, x, y, method = 'sigmoid', cv = 'prefit'): ...
|
|
51
|
+
def calibration_curve(self, x, y, n_bins = 10): ...
|
|
52
|
+
def brier_score(self, x, y): ...
|
|
53
|
+
def roc_auc(self, x, y): ...
|
|
54
|
+
|
|
55
|
+
class CatBoostModel:
|
|
56
|
+
def __init__(self, params, model = None): ...
|
|
57
|
+
def fit(self, x, y, valx, valy, sample_weight = None): ...
|
|
58
|
+
def predict(self, x): ...
|
|
59
|
+
def get_feature_importance(self, importance_type = 'gain'): ...
|
|
60
|
+
def save(self, path): ...
|
|
61
|
+
def load(self, path): ...
|
|
62
|
+
def calibrate(self, x, y, method = 'sigmoid', cv = 'prefit'): ...
|
|
63
|
+
def calibration_curve(self, x, y, n_bins = 10): ...
|
|
64
|
+
def brier_score(self, x, y): ...
|
|
65
|
+
def roc_auc(self, x, y): ...
|
|
66
|
+
|
|
67
|
+
class GradientBoostingModel:
|
|
68
|
+
best_params_: dict
|
|
69
|
+
search_results_: pd.DataFrame
|
|
70
|
+
def __init__(self, model_type, params): ...
|
|
71
|
+
@staticmethod
|
|
72
|
+
def _detect_model_type(estimator): ...
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_fitted(cls, model, model_type = None, params = None): ...
|
|
75
|
+
def __getattr__(self, name): ...
|
|
76
|
+
def __getstate__(self) -> dict: ...
|
|
77
|
+
def __setstate__(self, state: dict) -> None: ...
|
|
78
|
+
@staticmethod
|
|
79
|
+
def _sigmoid(z): ...
|
|
80
|
+
def fit(self, x, y, valx, valy, init_score = None, **kwargs): ...
|
|
81
|
+
def get_base_margin(self, x): ...
|
|
82
|
+
def predict_with_base_margin(self, x, base_margin, return_prob = True): ...
|
|
83
|
+
def param_search(self, data, varlist, tgt_name, eval_sets, search_space, engine = 'grid', objective = 'oot_gap_penalized', primary_set = None, gap_ref_sets = None, metric = 'auc', validation_set = None, n_trials = 50, refit = True, verbose = True, fit_kwargs = None, random_state = None): ...
|
|
84
|
+
def predict(self, x): ...
|
|
85
|
+
def get_feature_importance(self, importance_type = 'gain'): ...
|
|
86
|
+
def save(self, path): ...
|
|
87
|
+
def load(self, path): ...
|
|
88
|
+
def calibrate(self, x, y, method = 'sigmoid', cv = 'prefit'): ...
|
|
89
|
+
def brier_score(self, x, y): ...
|
|
90
|
+
def roc_auc(self, x, y): ...
|