SuperModelingFactory 0.1.0__cp310-cp310-win_amd64.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.
- Modeling_Tool/Core/Binning_Tool.cp310-win_amd64.pyd +0 -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/ODPS_Tool.py +284 -0
- Modeling_Tool/Core/Slope_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Core/Slope_Tool.pyi +31 -0
- Modeling_Tool/Core/XOR_Encryptor.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Core/XOR_Encryptor.pyi +26 -0
- Modeling_Tool/Core/__init__.py +100 -0
- Modeling_Tool/Core/kDataFrame.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Core/kDataFrame.pyi +43 -0
- Modeling_Tool/Core/utils.py +2646 -0
- Modeling_Tool/Eval/Evaluation_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Eval/Evaluation_Tool.pyi +47 -0
- Modeling_Tool/Eval/Model_Eval_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Eval/Model_Eval_Tool.pyi +37 -0
- Modeling_Tool/Eval/__init__.py +64 -0
- Modeling_Tool/Eval/evaluate_model.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Eval/evaluate_model.pyi +50 -0
- Modeling_Tool/Feature/Distribution_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Feature/Distribution_Tool.pyi +42 -0
- Modeling_Tool/Feature/Feature_Insights.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Feature/Feature_Insights.pyi +32 -0
- Modeling_Tool/Feature/PSI_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Feature/PSI_Tool.pyi +29 -0
- Modeling_Tool/Feature/__init__.py +37 -0
- Modeling_Tool/Model/Backward_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Model/Backward_Tool.pyi +45 -0
- Modeling_Tool/Model/GBM_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Model/GBM_Tool.pyi +64 -0
- Modeling_Tool/Model/LRM_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Model/LRM_Tool.pyi +53 -0
- Modeling_Tool/Model/__init__.py +81 -0
- Modeling_Tool/Sample/Distribution_Adaptation.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Sample/Distribution_Adaptation.pyi +30 -0
- Modeling_Tool/Sample/Reject_Infer.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Sample/Reject_Infer.pyi +43 -0
- Modeling_Tool/Sample/Sample_Split.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/Sample/Sample_Split.pyi +43 -0
- Modeling_Tool/Sample/__init__.py +31 -0
- Modeling_Tool/UAT/UAT_Consistency_Checker.py +1088 -0
- Modeling_Tool/UAT/__init__.py +19 -0
- Modeling_Tool/WOE/WOE_Master.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/WOE/WOE_Master.pyi +40 -0
- Modeling_Tool/WOE/WOE_Monotone_Binner.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/WOE/WOE_Monotone_Binner.pyi +71 -0
- Modeling_Tool/WOE/WOE_Plot_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/WOE/WOE_Plot_Tool.pyi +46 -0
- Modeling_Tool/WOE/WOE_Report_Builder.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/WOE/WOE_Report_Builder.pyi +24 -0
- Modeling_Tool/WOE/WOE_Tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/WOE/WOE_Tool.pyi +41 -0
- Modeling_Tool/WOE/__init__.py +78 -0
- Modeling_Tool/WOE/plot_woe_tool.cp310-win_amd64.pyd +0 -0
- Modeling_Tool/WOE/plot_woe_tool.pyi +25 -0
- Modeling_Tool/__init__.py +170 -0
- supermodelingfactory-0.1.0.dist-info/METADATA +260 -0
- supermodelingfactory-0.1.0.dist-info/RECORD +62 -0
- supermodelingfactory-0.1.0.dist-info/WHEEL +5 -0
- supermodelingfactory-0.1.0.dist-info/licenses/LICENSE +102 -0
- supermodelingfactory-0.1.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# Modeling_Tool.Core.Binning_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-BINNINGTOOL-c62e0857
|
|
12
|
+
# (Unique trace marker. Do not remove or alter — used for plagiarism
|
|
13
|
+
# detection across the public internet.)
|
|
14
|
+
# =============================================================================
|
|
15
|
+
|
|
16
|
+
import logging
|
|
17
|
+
import pandas as pd
|
|
18
|
+
import numpy as np
|
|
19
|
+
from scipy.stats import chi2_contingency, chi2
|
|
20
|
+
def get_max_nbins(data, nbins, min_bin_prop = 0.05): ...
|
|
21
|
+
def get_decision_tree_binning_edges(feature, target, max_leaf_nodes = 5, min_samples_leaf = 0.05, random_state = 42, missing_ref_value = None, spec_values = []): ...
|
|
22
|
+
|
|
23
|
+
class NumVarBinning:
|
|
24
|
+
def __init__(self, var_name, spec_values = None, spec_digit = 3): ...
|
|
25
|
+
def calc_equi_cutpoints(self, df, bins = 10, equi_method = 'equif'): ...
|
|
26
|
+
def modify_cutpoints(self, df, points): ...
|
|
27
|
+
def apt_binning(self, df, points, modify = True): ...
|
|
28
|
+
def equi_binning(self, df, bins = 10, equi_method = 'equif'): ...
|
|
29
|
+
def apply_binning(self, df): ...
|
|
30
|
+
def auto_binning(self, df, tgt_name, max_bins = 10, min_prop_in_bin = 0.05, equi_bins = 200, equi_method = 'equif', init_points = None, binning_criteria = 'chi2', chi2_p = 0.95): ...
|
|
31
|
+
def cre_pvt(df, var_name, tgt_name): ...
|
|
32
|
+
def merge_bins(df_pvt, ilocs): ...
|
|
33
|
+
def observed_laplace(observed, digit = 6): ...
|
|
34
|
+
def cat_2_list(bin_series): ...
|
|
35
|
+
def get_bin_range(edges, precision = 5, ascending = False, left_sign = '(', right_sign = ']'): ...
|
|
36
|
+
def get_bin_range_list(data, col = '_bin_range'): ...
|
|
37
|
+
def chi2_auto_binning(df_pvt, max_bins, min_cnt_in_bin, p = 0.95): ...
|
|
38
|
+
def quick_binning(data, column, labels = None, nbins = 10, precision = 5, equal_freq = True, right = True, include_lowest = False, min_bin_prop = 0.05, ascending = True, include_missing = False, tree_binning = False, target = None, random_state = 42, fillna = -999999, spec_values = []): ...
|
|
39
|
+
|
|
40
|
+
class Binning:
|
|
41
|
+
def __init__(self, data, column, tgt_name = None, nbins = 10, precision = 5, min_bin_prop = 0.05, include_missing = True, equal_freq = True, bin_colnames = ('_bin_num', '_bin_range'), ascending = True, right = True, include_lowest = False, tree_binning = False, chi2_method = False, chi2_p = 0.95, init_equi_bins = 200, fillna = -999999, spec_values = [], random_state = 42): ...
|
|
42
|
+
def run_quick_binning(self): ...
|
|
43
|
+
def run_chi2_binning(self, init_points = None): ...
|
|
44
|
+
def run(self): ...
|
|
45
|
+
def get_result(self, return_edges = True): ...
|
|
46
|
+
def chi2_binning(data, column, nbins = 10, precision = 5, min_bin_prop = 0.05, tgt_name = None, include_missing = True, equal_freq = True, bin_colnames = ('_bin_num', '_bin_range'), ascending = True, chi2_p = 0.95, init_equi_bins = 100, fillna = -999999, spec_values = [], init_points = None): ...
|
|
47
|
+
def run_binning(data, column, nbins = 10, precision = 5, min_bin_prop = 0.05, include_missing = True, equal_freq = True, bin_colnames = ('bin_num', 'bin_range'), ascending = False, right = True, include_lowest = False, tree_binning = False, target = None, random_state = 42, spec_values = []): ...
|
|
48
|
+
def super_binning(data, score, dep, nbins = 10, precision = 5, min_bin_prop = 0.05, include_missing = True, equal_freq = True, chi2_method = False, chi2_p = 0.95, init_equi_bins = 2000, fillna = -999999, spec_values = [], tree_binning = False, random_state = 42, return_edges = False, ascending = True, bin_colnames = ('_bin_num', '_bin_range')): ...
|