InsurAutoML 0.2.6__tar.gz → 0.2.7__tar.gz

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.

Potentially problematic release.


This version of InsurAutoML might be problematic. Click here for more details.

Files changed (82) hide show
  1. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/__init__.py +262 -262
  2. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/balancing/__init__.py +80 -80
  3. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/balancing/base.py +61 -61
  4. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/balancing/mixed_sampling.py +215 -215
  5. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/balancing/over_sampling.py +284 -284
  6. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/balancing/under_sampling.py +705 -705
  7. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/base.py +269 -269
  8. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/constant.py +285 -284
  9. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/datasets/__init__.py +151 -151
  10. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/datasets/image.py +96 -96
  11. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/datasets/tabular.py +2338 -2338
  12. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/datasets/text.py +137 -137
  13. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/encoding/__init__.py +45 -45
  14. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/encoding/base.py +55 -55
  15. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/encoding/encoding.py +276 -279
  16. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/__init__.py +184 -184
  17. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/autosklearn.py +0 -0
  18. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/base.py +76 -76
  19. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/embed.py +422 -422
  20. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/filter.py +315 -315
  21. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/hybrid.py +823 -823
  22. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/sklearn.py +905 -905
  23. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/feature_selection/wrapper.py +576 -576
  24. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hpo/DL.py +85 -85
  25. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hpo/ML.py +841 -841
  26. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hpo/__init__.py +53 -53
  27. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hpo/base.py +2049 -2051
  28. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hpo/ensemble.py +492 -492
  29. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hpo/utils.py +555 -555
  30. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/__init__.py +139 -139
  31. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/__init__.py +47 -47
  32. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/_balancing_hyperparameter.py +105 -105
  33. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/_classifier_hyperparameter.py +269 -269
  34. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/_encoder_hyperparameter.py +42 -42
  35. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/_feature_selection_hyperparameter.py +272 -272
  36. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/_imputer_hyperparameter.py +74 -74
  37. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/_regressor_hyperparameter.py +282 -282
  38. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/hyperparameters/_hyperopt/_scaling_hyperparameter.py +55 -55
  39. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/imputation/__init__.py +82 -82
  40. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/imputation/base.py +267 -267
  41. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/imputation/clustering.py +1113 -1113
  42. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/imputation/multiple.py +549 -549
  43. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/imputation/nn.py +782 -782
  44. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/FNN.py +520 -520
  45. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/ML.py +39 -39
  46. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/RNN.py +632 -632
  47. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/__init__.py +320 -320
  48. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/autosklearn.py +1552 -1552
  49. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/base.py +142 -142
  50. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/clustering.py +69 -69
  51. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/gam.py +139 -139
  52. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/lightgbm.py +451 -451
  53. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/sklearn_classifiers.py +1356 -1356
  54. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/sklearn_regressors.py +1275 -1275
  55. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/model/xgboost.py +288 -288
  56. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/scaling/__init__.py +77 -77
  57. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/scaling/base.py +37 -37
  58. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/scaling/scaling.py +868 -868
  59. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/__init__.py +81 -81
  60. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/_c/__init__.py +53 -53
  61. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/_c/_base.pyx +154 -154
  62. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/_c/_stat.pyx +41 -41
  63. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/base.py +374 -375
  64. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/data.py +860 -860
  65. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/eda.py +218 -218
  66. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/file.py +118 -118
  67. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/metadata.py +433 -432
  68. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/optimize.py +1832 -1832
  69. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/stats.py +509 -509
  70. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/utils/tensor.py +263 -263
  71. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML/version.py +52 -52
  72. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML.egg-info/PKG-INFO +250 -229
  73. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML.egg-info/not-zip-safe +1 -1
  74. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML.egg-info/requires.txt +0 -2
  75. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/LICENSE +21 -21
  76. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/PKG-INFO +250 -229
  77. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/README.md +46 -24
  78. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/setup.cfg +4 -4
  79. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/setup.py +484 -483
  80. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML.egg-info/SOURCES.txt +0 -0
  81. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML.egg-info/dependency_links.txt +0 -0
  82. {InsurAutoML-0.2.6 → InsurAutoML-0.2.7}/InsurAutoML.egg-info/top_level.txt +0 -0
@@ -1,262 +1,262 @@
1
- """
2
- File Name: __init__.py
3
- Author: Panyi Dong
4
- GitHub: https://github.com/PanyiDong/
5
- Mathematics Department, University of Illinois at Urbana-Champaign (UIUC)
6
-
7
- Project: InsurAutoML
8
- Latest Version: 0.2.5
9
- Relative Path: /InsurAutoML/__init__.py
10
- File Created: Wednesday, 16th November 2022 7:23:10 pm
11
- Author: Panyi Dong (panyid2@illinois.edu)
12
-
13
- -----
14
- Last Modified: Thursday, 25th May 2023 11:04:19 am
15
- Modified By: Panyi Dong (panyid2@illinois.edu)
16
-
17
- -----
18
- MIT License
19
-
20
- Copyright (c) 2022 - 2022, Panyi Dong
21
-
22
- Permission is hereby granted, free of charge, to any person obtaining a copy
23
- of this software and associated documentation files (the "Software"), to deal
24
- in the Software without restriction, including without limitation the rights
25
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- copies of the Software, and to permit persons to whom the Software is
27
- furnished to do so, subject to the following conditions:
28
-
29
- The above copyright notice and this permission notice shall be included in all
30
- copies or substantial portions of the Software.
31
-
32
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
- SOFTWARE.
39
- """
40
-
41
-
42
- from .version import _get_version
43
- from .base import no_processing, load_data, set_seed
44
- from .hpo import (
45
- AutoTabular,
46
- AutoTabularClassifier,
47
- AutoTabularRegressor,
48
- # AutoTextClassifier,
49
- # AutoNextWordPrediction,
50
- )
51
- from .utils import (
52
- # random_guess,
53
- # random_index,
54
- # random_list,
55
- # is_date,
56
- # feature_rounding,
57
- train_test_split,
58
- # minloc,
59
- # maxloc,
60
- # True_index,
61
- # nan_cov,
62
- # class_means,
63
- # empirical_covariance,
64
- # class_cov,
65
- # Pearson_Corr,
66
- # MI,
67
- # t_score,
68
- # ANOVA,
69
- # as_dataframe,
70
- type_of_task,
71
- # formatting,
72
- # Timer,
73
- # unify_nan,
74
- # remove_index_columns,
75
- # get_missing_matrix,
76
- EDA,
77
- )
78
-
79
- __version__ = _get_version()
80
-
81
- # read version from file
82
-
83
-
84
- # from ._encoding import DataEncoding
85
-
86
- # from ._imputation import (
87
- # SimpleImputer,
88
- # DummyImputer,
89
- # JointImputer,
90
- # ExpectationMaximization,
91
- # KNNImputer,
92
- # MissForestImputer,
93
- # MICE,
94
- # GAIN,
95
- # AAI_kNN,
96
- # KMI,
97
- # CMI,
98
- # k_Prototype_NN,
99
- # )
100
-
101
- # from ._balancing import (
102
- # SimpleRandomOverSampling,
103
- # SimpleRandomUnderSampling,
104
- # TomekLink,
105
- # EditedNearestNeighbor,
106
- # CondensedNearestNeighbor,
107
- # OneSidedSelection,
108
- # CNN_TomekLink,
109
- # Smote,
110
- # Smote_TomekLink,
111
- # Smote_ENN,
112
- # )
113
-
114
- # from ._scaling import (
115
- # MinMaxScale,
116
- # Standardize,
117
- # Normalize,
118
- # RobustScale,
119
- # PowerTransformer,
120
- # QuantileTransformer,
121
- # Winsorization,
122
- # Feature_Manipulation,
123
- # Feature_Truncation,
124
- # )
125
-
126
- # from ._feature_selection import (
127
- # PCA_FeatureSelection,
128
- # LDASelection,
129
- # FeatureFilter,
130
- # RBFSampler,
131
- # ASFFS,
132
- # GeneticAlgorithm,
133
- # )
134
-
135
- # extracted from sklearn
136
- # not all used in the pipeline
137
- # from ._feature_selection import (
138
- # Densifier,
139
- # ExtraTreesPreprocessorClassification,
140
- # ExtraTreesPreprocessorRegression,
141
- # FastICA,
142
- # FeatureAgglomeration,
143
- # KernelPCA,
144
- # RandomKitchenSinks,
145
- # LibLinear_Preprocessor,
146
- # Nystroem,
147
- # PCA,
148
- # PolynomialFeatures,
149
- # RandomTreesEmbedding,
150
- # SelectPercentileClassification,
151
- # SelectPercentileRegression,
152
- # SelectClassificationRates,
153
- # SelectRegressionRates,
154
- # TruncatedSVD,
155
- # )
156
-
157
-
158
- # from ._model import classifiers, regressors
159
-
160
- # base = {"load_data": load_data}
161
-
162
- # encoders = {"DataEncoding": DataEncoding}
163
-
164
- # model_selection = {
165
- # "AutoTabular": AutoTabular,
166
- # "AutoTabularClassifier": AutoTabularClassifier,
167
- # "AutoTabularRegressor": AutoTabularRegressor,
168
- # "AutoTextClassifier": AutoTextClassifier,
169
- # "AutoNextWordPrediction": AutoNextWordPrediction,
170
- # }
171
-
172
- __all__ = [
173
- "load_data", # _base
174
- "no_processing",
175
- "random_guess", # _utils
176
- "random_index",
177
- "random_list",
178
- "is_date",
179
- "feature_rounding",
180
- "train_test_split",
181
- "minloc",
182
- "maxloc",
183
- "True_index",
184
- "nan_cov",
185
- "class_means",
186
- "empirical_covariance",
187
- "class_cov",
188
- "Pearson_Corr",
189
- "MI",
190
- "t_score",
191
- "ANOVA",
192
- "as_dataframe",
193
- "type_of_task",
194
- "formatting",
195
- "Timer",
196
- "unify_nan",
197
- "remove_index_columns",
198
- "get_missing_matrix",
199
- "SimpleImputer", # _missing
200
- "DummyImputer",
201
- "JointImputer",
202
- "ExpectationMaximization",
203
- "KNNImputer",
204
- "MissForestImputer",
205
- "MICE",
206
- "GAIN",
207
- "AAI_kNN",
208
- "KMI",
209
- "CMI",
210
- "k_Prototype_NN",
211
- "DataEncoding", # _encoding
212
- "MinMaxScale", # _scaling
213
- "Standardize",
214
- "Normalize",
215
- "RobustScale",
216
- "PowerTransformer",
217
- "QuantileTransformer",
218
- "Winsorization",
219
- "Feature_Manipulation",
220
- "Feature_Truncation",
221
- "SimpleRandomOverSampling", # _imbalance
222
- "SimpleRandomUnderSampling",
223
- "TomekLink",
224
- "EditedNearestNeighbor",
225
- "CondensedNearestNeighbor",
226
- "OneSidedSelection",
227
- "CNN_TomekLink",
228
- "Smote",
229
- "Smote_TomekLink",
230
- "Smote_ENN",
231
- "LDASelection", # _feature_selection
232
- "PCA_FeatureSelection",
233
- "RBFSampler",
234
- "FeatureFilter",
235
- "ASFFS",
236
- "GeneticAlgorithm",
237
- "densifier", # from sklearn
238
- "extra_trees_preproc_for_classification",
239
- "extra_trees_preproc_for_regression",
240
- "fast_ica",
241
- "feature_agglomeration",
242
- "kernel_pca",
243
- "kitchen_sinks",
244
- "liblinear_svc_preprocessor",
245
- "nystroem_sampler",
246
- "pca",
247
- "polynomial",
248
- "random_trees_embedding",
249
- # 'select_percentile',
250
- "select_percentile_classification",
251
- "select_percentile_regression",
252
- "select_rates_classification",
253
- "select_rates_regression",
254
- "truncatedSVD",
255
- "classifiers", # _model
256
- "regressors",
257
- "AutoTabular", # _model_selection
258
- "AutoTabularClassifier",
259
- "AutoTabularRegressor",
260
- "AutoTextClassifier",
261
- "AutoNextWordPrediction",
262
- ]
1
+ """
2
+ File Name: __init__.py
3
+ Author: Panyi Dong
4
+ GitHub: https://github.com/PanyiDong/
5
+ Mathematics Department, University of Illinois at Urbana-Champaign (UIUC)
6
+
7
+ Project: InsurAutoML
8
+ Latest Version: 0.2.5
9
+ Relative Path: /InsurAutoML/__init__.py
10
+ File Created: Wednesday, 16th November 2022 7:23:10 pm
11
+ Author: Panyi Dong (panyid2@illinois.edu)
12
+
13
+ -----
14
+ Last Modified: Thursday, 25th May 2023 11:04:19 am
15
+ Modified By: Panyi Dong (panyid2@illinois.edu)
16
+
17
+ -----
18
+ MIT License
19
+
20
+ Copyright (c) 2022 - 2022, Panyi Dong
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy
23
+ of this software and associated documentation files (the "Software"), to deal
24
+ in the Software without restriction, including without limitation the rights
25
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
+ copies of the Software, and to permit persons to whom the Software is
27
+ furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in all
30
+ copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
+ SOFTWARE.
39
+ """
40
+
41
+
42
+ from .version import _get_version
43
+ from .base import no_processing, load_data, set_seed
44
+ from .hpo import (
45
+ AutoTabular,
46
+ AutoTabularClassifier,
47
+ AutoTabularRegressor,
48
+ # AutoTextClassifier,
49
+ # AutoNextWordPrediction,
50
+ )
51
+ from .utils import (
52
+ # random_guess,
53
+ # random_index,
54
+ # random_list,
55
+ # is_date,
56
+ # feature_rounding,
57
+ train_test_split,
58
+ # minloc,
59
+ # maxloc,
60
+ # True_index,
61
+ # nan_cov,
62
+ # class_means,
63
+ # empirical_covariance,
64
+ # class_cov,
65
+ # Pearson_Corr,
66
+ # MI,
67
+ # t_score,
68
+ # ANOVA,
69
+ # as_dataframe,
70
+ type_of_task,
71
+ # formatting,
72
+ # Timer,
73
+ # unify_nan,
74
+ # remove_index_columns,
75
+ # get_missing_matrix,
76
+ EDA,
77
+ )
78
+
79
+ __version__ = _get_version()
80
+
81
+ # read version from file
82
+
83
+
84
+ # from ._encoding import DataEncoding
85
+
86
+ # from ._imputation import (
87
+ # SimpleImputer,
88
+ # DummyImputer,
89
+ # JointImputer,
90
+ # ExpectationMaximization,
91
+ # KNNImputer,
92
+ # MissForestImputer,
93
+ # MICE,
94
+ # GAIN,
95
+ # AAI_kNN,
96
+ # KMI,
97
+ # CMI,
98
+ # k_Prototype_NN,
99
+ # )
100
+
101
+ # from ._balancing import (
102
+ # SimpleRandomOverSampling,
103
+ # SimpleRandomUnderSampling,
104
+ # TomekLink,
105
+ # EditedNearestNeighbor,
106
+ # CondensedNearestNeighbor,
107
+ # OneSidedSelection,
108
+ # CNN_TomekLink,
109
+ # Smote,
110
+ # Smote_TomekLink,
111
+ # Smote_ENN,
112
+ # )
113
+
114
+ # from ._scaling import (
115
+ # MinMaxScale,
116
+ # Standardize,
117
+ # Normalize,
118
+ # RobustScale,
119
+ # PowerTransformer,
120
+ # QuantileTransformer,
121
+ # Winsorization,
122
+ # Feature_Manipulation,
123
+ # Feature_Truncation,
124
+ # )
125
+
126
+ # from ._feature_selection import (
127
+ # PCA_FeatureSelection,
128
+ # LDASelection,
129
+ # FeatureFilter,
130
+ # RBFSampler,
131
+ # ASFFS,
132
+ # GeneticAlgorithm,
133
+ # )
134
+
135
+ # extracted from sklearn
136
+ # not all used in the pipeline
137
+ # from ._feature_selection import (
138
+ # Densifier,
139
+ # ExtraTreesPreprocessorClassification,
140
+ # ExtraTreesPreprocessorRegression,
141
+ # FastICA,
142
+ # FeatureAgglomeration,
143
+ # KernelPCA,
144
+ # RandomKitchenSinks,
145
+ # LibLinear_Preprocessor,
146
+ # Nystroem,
147
+ # PCA,
148
+ # PolynomialFeatures,
149
+ # RandomTreesEmbedding,
150
+ # SelectPercentileClassification,
151
+ # SelectPercentileRegression,
152
+ # SelectClassificationRates,
153
+ # SelectRegressionRates,
154
+ # TruncatedSVD,
155
+ # )
156
+
157
+
158
+ # from ._model import classifiers, regressors
159
+
160
+ # base = {"load_data": load_data}
161
+
162
+ # encoders = {"DataEncoding": DataEncoding}
163
+
164
+ # model_selection = {
165
+ # "AutoTabular": AutoTabular,
166
+ # "AutoTabularClassifier": AutoTabularClassifier,
167
+ # "AutoTabularRegressor": AutoTabularRegressor,
168
+ # "AutoTextClassifier": AutoTextClassifier,
169
+ # "AutoNextWordPrediction": AutoNextWordPrediction,
170
+ # }
171
+
172
+ __all__ = [
173
+ "load_data", # _base
174
+ "no_processing",
175
+ "random_guess", # _utils
176
+ "random_index",
177
+ "random_list",
178
+ "is_date",
179
+ "feature_rounding",
180
+ "train_test_split",
181
+ "minloc",
182
+ "maxloc",
183
+ "True_index",
184
+ "nan_cov",
185
+ "class_means",
186
+ "empirical_covariance",
187
+ "class_cov",
188
+ "Pearson_Corr",
189
+ "MI",
190
+ "t_score",
191
+ "ANOVA",
192
+ "as_dataframe",
193
+ "type_of_task",
194
+ "formatting",
195
+ "Timer",
196
+ "unify_nan",
197
+ "remove_index_columns",
198
+ "get_missing_matrix",
199
+ "SimpleImputer", # _missing
200
+ "DummyImputer",
201
+ "JointImputer",
202
+ "ExpectationMaximization",
203
+ "KNNImputer",
204
+ "MissForestImputer",
205
+ "MICE",
206
+ "GAIN",
207
+ "AAI_kNN",
208
+ "KMI",
209
+ "CMI",
210
+ "k_Prototype_NN",
211
+ "DataEncoding", # _encoding
212
+ "MinMaxScale", # _scaling
213
+ "Standardize",
214
+ "Normalize",
215
+ "RobustScale",
216
+ "PowerTransformer",
217
+ "QuantileTransformer",
218
+ "Winsorization",
219
+ "Feature_Manipulation",
220
+ "Feature_Truncation",
221
+ "SimpleRandomOverSampling", # _imbalance
222
+ "SimpleRandomUnderSampling",
223
+ "TomekLink",
224
+ "EditedNearestNeighbor",
225
+ "CondensedNearestNeighbor",
226
+ "OneSidedSelection",
227
+ "CNN_TomekLink",
228
+ "Smote",
229
+ "Smote_TomekLink",
230
+ "Smote_ENN",
231
+ "LDASelection", # _feature_selection
232
+ "PCA_FeatureSelection",
233
+ "RBFSampler",
234
+ "FeatureFilter",
235
+ "ASFFS",
236
+ "GeneticAlgorithm",
237
+ "densifier", # from sklearn
238
+ "extra_trees_preproc_for_classification",
239
+ "extra_trees_preproc_for_regression",
240
+ "fast_ica",
241
+ "feature_agglomeration",
242
+ "kernel_pca",
243
+ "kitchen_sinks",
244
+ "liblinear_svc_preprocessor",
245
+ "nystroem_sampler",
246
+ "pca",
247
+ "polynomial",
248
+ "random_trees_embedding",
249
+ # 'select_percentile',
250
+ "select_percentile_classification",
251
+ "select_percentile_regression",
252
+ "select_rates_classification",
253
+ "select_rates_regression",
254
+ "truncatedSVD",
255
+ "classifiers", # _model
256
+ "regressors",
257
+ "AutoTabular", # _model_selection
258
+ "AutoTabularClassifier",
259
+ "AutoTabularRegressor",
260
+ "AutoTextClassifier",
261
+ "AutoNextWordPrediction",
262
+ ]
@@ -1,80 +1,80 @@
1
- """
2
- File Name: __init__.py
3
- Author: Panyi Dong
4
- GitHub: https://github.com/PanyiDong/
5
- Mathematics Department, University of Illinois at Urbana-Champaign (UIUC)
6
-
7
- Project: InsurAutoML
8
- Latest Version: 0.2.5
9
- Relative Path: /InsurAutoML/balancing/__init__.py
10
- File Created: Monday, 24th October 2022 11:56:57 pm
11
- Author: Panyi Dong (panyid2@illinois.edu)
12
-
13
- -----
14
- Last Modified: Thursday, 1st June 2023 9:25:57 am
15
- Modified By: Panyi Dong (panyid2@illinois.edu)
16
-
17
- -----
18
- MIT License
19
-
20
- Copyright (c) 2022 - 2022, Panyi Dong
21
-
22
- Permission is hereby granted, free of charge, to any person obtaining a copy
23
- of this software and associated documentation files (the "Software"), to deal
24
- in the Software without restriction, including without limitation the rights
25
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- copies of the Software, and to permit persons to whom the Software is
27
- furnished to do so, subject to the following conditions:
28
-
29
- The above copyright notice and this permission notice shall be included in all
30
- copies or substantial portions of the Software.
31
-
32
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
- SOFTWARE.
39
- """
40
-
41
- from .over_sampling import SimpleRandomOverSampling, Smote
42
- from .under_sampling import (
43
- SimpleRandomUnderSampling,
44
- TomekLink,
45
- EditedNearestNeighbor,
46
- CondensedNearestNeighbor,
47
- OneSidedSelection,
48
- CNN_TomekLink,
49
- )
50
- from .mixed_sampling import Smote_TomekLink, Smote_ENN
51
- from ..base import no_processing
52
-
53
- balancings = {
54
- "no_processing": no_processing,
55
- "SimpleRandomOverSampling": SimpleRandomOverSampling,
56
- "SimpleRandomUnderSampling": SimpleRandomUnderSampling,
57
- "TomekLink": TomekLink,
58
- "EditedNearestNeighbor": EditedNearestNeighbor,
59
- "CondensedNearestNeighbor": CondensedNearestNeighbor,
60
- "OneSidedSelection": OneSidedSelection,
61
- "CNN_TomekLink": CNN_TomekLink,
62
- "Smote": Smote,
63
- "Smote_TomekLink": Smote_TomekLink,
64
- "Smote_ENN": Smote_ENN,
65
- }
66
-
67
-
68
- __all__ = [
69
- "no_processing",
70
- "SimpleRandomOverSampling",
71
- "SimpleRandomUnderSampling",
72
- "TomekLink",
73
- "EditedNearestNeighbor",
74
- "CondensedNearestNeighbor",
75
- "OneSidedSelection",
76
- "CNN_TomekLink",
77
- "Smote",
78
- "Smote_TomekLink",
79
- "Smote_ENN",
80
- ]
1
+ """
2
+ File Name: __init__.py
3
+ Author: Panyi Dong
4
+ GitHub: https://github.com/PanyiDong/
5
+ Mathematics Department, University of Illinois at Urbana-Champaign (UIUC)
6
+
7
+ Project: InsurAutoML
8
+ Latest Version: 0.2.5
9
+ Relative Path: /InsurAutoML/balancing/__init__.py
10
+ File Created: Monday, 24th October 2022 11:56:57 pm
11
+ Author: Panyi Dong (panyid2@illinois.edu)
12
+
13
+ -----
14
+ Last Modified: Thursday, 1st June 2023 9:25:57 am
15
+ Modified By: Panyi Dong (panyid2@illinois.edu)
16
+
17
+ -----
18
+ MIT License
19
+
20
+ Copyright (c) 2022 - 2022, Panyi Dong
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy
23
+ of this software and associated documentation files (the "Software"), to deal
24
+ in the Software without restriction, including without limitation the rights
25
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
+ copies of the Software, and to permit persons to whom the Software is
27
+ furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in all
30
+ copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
+ SOFTWARE.
39
+ """
40
+
41
+ from .over_sampling import SimpleRandomOverSampling, Smote
42
+ from .under_sampling import (
43
+ SimpleRandomUnderSampling,
44
+ TomekLink,
45
+ EditedNearestNeighbor,
46
+ CondensedNearestNeighbor,
47
+ OneSidedSelection,
48
+ CNN_TomekLink,
49
+ )
50
+ from .mixed_sampling import Smote_TomekLink, Smote_ENN
51
+ from ..base import no_processing
52
+
53
+ balancings = {
54
+ "no_processing": no_processing,
55
+ "SimpleRandomOverSampling": SimpleRandomOverSampling,
56
+ "SimpleRandomUnderSampling": SimpleRandomUnderSampling,
57
+ "TomekLink": TomekLink,
58
+ "EditedNearestNeighbor": EditedNearestNeighbor,
59
+ "CondensedNearestNeighbor": CondensedNearestNeighbor,
60
+ "OneSidedSelection": OneSidedSelection,
61
+ "CNN_TomekLink": CNN_TomekLink,
62
+ "Smote": Smote,
63
+ "Smote_TomekLink": Smote_TomekLink,
64
+ "Smote_ENN": Smote_ENN,
65
+ }
66
+
67
+
68
+ __all__ = [
69
+ "no_processing",
70
+ "SimpleRandomOverSampling",
71
+ "SimpleRandomUnderSampling",
72
+ "TomekLink",
73
+ "EditedNearestNeighbor",
74
+ "CondensedNearestNeighbor",
75
+ "OneSidedSelection",
76
+ "CNN_TomekLink",
77
+ "Smote",
78
+ "Smote_TomekLink",
79
+ "Smote_ENN",
80
+ ]