aidflow 3.0.7__tar.gz → 3.0.9__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.
Files changed (344) hide show
  1. aidflow-3.0.9/.github/workflows/publish.yml +29 -0
  2. aidflow-3.0.9/CONTRIBUTING.md +54 -0
  3. aidflow-3.0.9/LICENSE +56 -0
  4. aidflow-3.0.9/PKG-INFO +299 -0
  5. aidflow-3.0.9/README.md +187 -0
  6. aidflow-3.0.9/docs/api/data-interface/DataLoaderWorker/fit.mdx +32 -0
  7. aidflow-3.0.9/docs/api/data-interface/DataLoaderWorker/index.mdx +175 -0
  8. aidflow-3.0.9/docs/api/data-interface/DataLoaderWorker/transform.mdx +22 -0
  9. aidflow-3.0.9/docs/api/data-interface/FeatureCleanerWorker/fit.mdx +32 -0
  10. aidflow-3.0.9/docs/api/data-interface/FeatureCleanerWorker/index.mdx +189 -0
  11. aidflow-3.0.9/docs/api/data-interface/FeatureCleanerWorker/transform.mdx +25 -0
  12. aidflow-3.0.9/docs/api/data-interface/FeatureCleanerWorker/transform_dual.mdx +24 -0
  13. aidflow-3.0.9/docs/api/data-interface/FeatureStabilizerWorker/fit.mdx +32 -0
  14. aidflow-3.0.9/docs/api/data-interface/FeatureStabilizerWorker/index.mdx +190 -0
  15. aidflow-3.0.9/docs/api/data-interface/FeatureStabilizerWorker/transform.mdx +22 -0
  16. aidflow-3.0.9/docs/api/data-interface/FeatureStabilizerWorker/update.mdx +28 -0
  17. aidflow-3.0.9/docs/api/data-interface/ObservationStabilizerWorker/fit.mdx +32 -0
  18. aidflow-3.0.9/docs/api/data-interface/ObservationStabilizerWorker/index.mdx +191 -0
  19. aidflow-3.0.9/docs/api/data-interface/ObservationStabilizerWorker/transform.mdx +22 -0
  20. aidflow-3.0.9/docs/api/data-interface/ObservationStabilizerWorker/update.mdx +28 -0
  21. aidflow-3.0.9/docs/api/encoding-interface/CatEncoderWorker/fit.mdx +33 -0
  22. aidflow-3.0.9/docs/api/encoding-interface/CatEncoderWorker/index.mdx +196 -0
  23. aidflow-3.0.9/docs/api/encoding-interface/CatEncoderWorker/transform.mdx +28 -0
  24. aidflow-3.0.9/docs/api/encoding-interface/DataEncoderWorker/fit.mdx +31 -0
  25. aidflow-3.0.9/docs/api/encoding-interface/DataEncoderWorker/index.mdx +213 -0
  26. aidflow-3.0.9/docs/api/encoding-interface/DataEncoderWorker/transform.mdx +41 -0
  27. aidflow-3.0.9/docs/api/encoding-interface/IxnEncoderWorker/fit.mdx +32 -0
  28. aidflow-3.0.9/docs/api/encoding-interface/IxnEncoderWorker/index.mdx +201 -0
  29. aidflow-3.0.9/docs/api/encoding-interface/IxnEncoderWorker/transform.mdx +28 -0
  30. aidflow-3.0.9/docs/api/encoding-interface/NumEncoderWorker/fit.mdx +33 -0
  31. aidflow-3.0.9/docs/api/encoding-interface/NumEncoderWorker/index.mdx +198 -0
  32. aidflow-3.0.9/docs/api/encoding-interface/NumEncoderWorker/transform.mdx +28 -0
  33. aidflow-3.0.9/docs/api/encoding-interface/WoeEncoderWorker/fit.mdx +32 -0
  34. aidflow-3.0.9/docs/api/encoding-interface/WoeEncoderWorker/index.mdx +200 -0
  35. aidflow-3.0.9/docs/api/encoding-interface/WoeEncoderWorker/transform.mdx +29 -0
  36. aidflow-3.0.9/docs/api/encoding-interface/WoeStabilizerWorker/fit.mdx +33 -0
  37. aidflow-3.0.9/docs/api/encoding-interface/WoeStabilizerWorker/index.mdx +206 -0
  38. aidflow-3.0.9/docs/api/encoding-interface/WoeStabilizerWorker/transform.mdx +27 -0
  39. aidflow-3.0.9/docs/api/encoding-interface/WoeStabilizerWorker/update.mdx +30 -0
  40. aidflow-3.0.9/docs/api/execution-interface/ExecutionContext/get_worker.mdx +22 -0
  41. aidflow-3.0.9/docs/api/execution-interface/ExecutionContext/help.mdx +10 -0
  42. aidflow-3.0.9/docs/api/execution-interface/ExecutionContext/index.mdx +106 -0
  43. aidflow-3.0.9/docs/api/execution-interface/ExecutionContext/process.mdx +19 -0
  44. aidflow-3.0.9/docs/api/execution-interface/Parameters/index.mdx +184 -0
  45. aidflow-3.0.9/docs/api/execution-interface/ProjectContext/genesis.mdx +26 -0
  46. aidflow-3.0.9/docs/api/execution-interface/ProjectContext/get_setup.mdx +11 -0
  47. aidflow-3.0.9/docs/api/execution-interface/ProjectContext/index.mdx +58 -0
  48. aidflow-3.0.9/docs/api/execution-interface/ProjectContext/params.mdx +29 -0
  49. aidflow-3.0.9/docs/api/inference-interface/Predictor/agent1_predict.mdx +25 -0
  50. aidflow-3.0.9/docs/api/inference-interface/Predictor/agent2_predict.mdx +25 -0
  51. aidflow-3.0.9/docs/api/inference-interface/Predictor/agent3_predict.mdx +25 -0
  52. aidflow-3.0.9/docs/api/inference-interface/Predictor/agent4_predict.mdx +25 -0
  53. aidflow-3.0.9/docs/api/inference-interface/Predictor/cat_encode.mdx +25 -0
  54. aidflow-3.0.9/docs/api/inference-interface/Predictor/champion_predict.mdx +29 -0
  55. aidflow-3.0.9/docs/api/inference-interface/Predictor/data_encode.mdx +28 -0
  56. aidflow-3.0.9/docs/api/inference-interface/Predictor/fe_clean.mdx +30 -0
  57. aidflow-3.0.9/docs/api/inference-interface/Predictor/fe_stabilize.mdx +29 -0
  58. aidflow-3.0.9/docs/api/inference-interface/Predictor/get_model.mdx +22 -0
  59. aidflow-3.0.9/docs/api/inference-interface/Predictor/get_predictor.mdx +22 -0
  60. aidflow-3.0.9/docs/api/inference-interface/Predictor/get_schema.mdx +21 -0
  61. aidflow-3.0.9/docs/api/inference-interface/Predictor/index.mdx +86 -0
  62. aidflow-3.0.9/docs/api/inference-interface/Predictor/ixn_encode.mdx +25 -0
  63. aidflow-3.0.9/docs/api/inference-interface/Predictor/num_encode.mdx +25 -0
  64. aidflow-3.0.9/docs/api/inference-interface/Predictor/obs_stabilize.mdx +28 -0
  65. aidflow-3.0.9/docs/api/inference-interface/Predictor/woe_encode.mdx +28 -0
  66. aidflow-3.0.9/docs/api/inference-interface/Predictor/woe_stabilize.mdx +28 -0
  67. aidflow-3.0.9/docs/api/inference-interface/ProductionExporter/export_airflow_dag.mdx +27 -0
  68. aidflow-3.0.9/docs/api/inference-interface/ProductionExporter/export_all.mdx +22 -0
  69. aidflow-3.0.9/docs/api/inference-interface/ProductionExporter/export_pickle.mdx +26 -0
  70. aidflow-3.0.9/docs/api/inference-interface/ProductionExporter/index.mdx +33 -0
  71. aidflow-3.0.9/docs/api/selection-interface/AgentPredictorWorker/fit.mdx +34 -0
  72. aidflow-3.0.9/docs/api/selection-interface/AgentPredictorWorker/index.mdx +208 -0
  73. aidflow-3.0.9/docs/api/selection-interface/AgentPredictorWorker/preprocess.mdx +42 -0
  74. aidflow-3.0.9/docs/api/selection-interface/AgentPredictorWorker/score.mdx +30 -0
  75. aidflow-3.0.9/docs/api/selection-interface/AgentPredictorWorker/transform.mdx +34 -0
  76. aidflow-3.0.9/docs/api/selection-interface/AgentPredictorWorker/transform_dual.mdx +28 -0
  77. aidflow-3.0.9/docs/api/selection-interface/AgentSelectorWorker/fit.mdx +40 -0
  78. aidflow-3.0.9/docs/api/selection-interface/AgentSelectorWorker/index.mdx +191 -0
  79. aidflow-3.0.9/docs/api/selection-interface/AgentSelectorWorker/transform.mdx +41 -0
  80. aidflow-3.0.9/docs/api/selection-interface/AgentsComparatorWorker/fit.mdx +39 -0
  81. aidflow-3.0.9/docs/api/selection-interface/AgentsComparatorWorker/index.mdx +182 -0
  82. aidflow-3.0.9/docs/api/selection-interface/AgentsComparatorWorker/transform.mdx +45 -0
  83. aidflow-3.0.9/docs/api/selection-interface/AgentsPredictorWorker/fit.mdx +30 -0
  84. aidflow-3.0.9/docs/api/selection-interface/AgentsPredictorWorker/index.mdx +168 -0
  85. aidflow-3.0.9/docs/api/selection-interface/AgentsPredictorWorker/transform.mdx +38 -0
  86. aidflow-3.0.9/docs/api/selection-interface/AgentsTransitionWorker/fit.mdx +38 -0
  87. aidflow-3.0.9/docs/api/selection-interface/AgentsTransitionWorker/index.mdx +183 -0
  88. aidflow-3.0.9/docs/api/selection-interface/AgentsTransitionWorker/transform.mdx +40 -0
  89. aidflow-3.0.9/docs/api/training-interface/Agent1PredictorWorker/fit.mdx +33 -0
  90. aidflow-3.0.9/docs/api/training-interface/Agent1PredictorWorker/index.mdx +193 -0
  91. aidflow-3.0.9/docs/api/training-interface/Agent1PredictorWorker/transform.mdx +22 -0
  92. aidflow-3.0.9/docs/api/training-interface/Agent2PredictorWorker/fit.mdx +33 -0
  93. aidflow-3.0.9/docs/api/training-interface/Agent2PredictorWorker/index.mdx +193 -0
  94. aidflow-3.0.9/docs/api/training-interface/Agent2PredictorWorker/transform.mdx +22 -0
  95. aidflow-3.0.9/docs/api/training-interface/Agent3PredictorWorker/fit.mdx +33 -0
  96. aidflow-3.0.9/docs/api/training-interface/Agent3PredictorWorker/index.mdx +193 -0
  97. aidflow-3.0.9/docs/api/training-interface/Agent3PredictorWorker/transform.mdx +22 -0
  98. aidflow-3.0.9/docs/api/training-interface/Agent4PredictorWorker/fit.mdx +33 -0
  99. aidflow-3.0.9/docs/api/training-interface/Agent4PredictorWorker/index.mdx +194 -0
  100. aidflow-3.0.9/docs/api/training-interface/Agent4PredictorWorker/transform.mdx +22 -0
  101. aidflow-3.0.9/docs/assets/aidflow-preview.gif +0 -0
  102. aidflow-3.0.9/docs/assets/aidflow.png +0 -0
  103. aidflow-3.0.9/docs/commercial/licensing.md +56 -0
  104. aidflow-3.0.9/docs/css/custom.css +259 -0
  105. aidflow-3.0.9/docs/docs.json +319 -0
  106. aidflow-3.0.9/docs/getting-started/core-concepts.md +90 -0
  107. aidflow-3.0.9/docs/getting-started/installation.md +52 -0
  108. aidflow-3.0.9/docs/getting-started/overview.md +81 -0
  109. aidflow-3.0.9/docs/getting-started/quickstart.md +225 -0
  110. aidflow-3.0.9/docs/user-guides/data-phase.md +84 -0
  111. aidflow-3.0.9/docs/user-guides/encoding-phase.md +85 -0
  112. aidflow-3.0.9/docs/user-guides/inference-phase.md +149 -0
  113. aidflow-3.0.9/docs/user-guides/selection-phase.md +110 -0
  114. aidflow-3.0.9/docs/user-guides/training-phase.md +103 -0
  115. aidflow-3.0.9/pyproject.toml +92 -0
  116. aidflow-3.0.9/src/aidflow/__init__.py +23 -0
  117. aidflow-3.0.9/src/aidflow/assets/__init__.py +17 -0
  118. aidflow-3.0.9/src/aidflow/assets/datasets.py +391 -0
  119. aidflow-3.0.9/src/aidflow/assets/files/aidflow.ipynb +1691 -0
  120. aidflow-3.0.9/src/aidflow/assets/files/console.py +244 -0
  121. aidflow-3.0.9/src/aidflow/assets/ui.py +115 -0
  122. aidflow-3.0.9/src/aidflow/cli.py +295 -0
  123. aidflow-3.0.9/src/aidflow/core/__init__.py +66 -0
  124. aidflow-3.0.9/src/aidflow/core/accessor.py +54 -0
  125. aidflow-3.0.9/src/aidflow/core/base/__init__.py +48 -0
  126. aidflow-3.0.9/src/aidflow/core/base/adapter.py +242 -0
  127. aidflow-3.0.9/src/aidflow/core/base/fitted/__init__.py +89 -0
  128. aidflow-3.0.9/src/aidflow/core/base/fitted/base.py +602 -0
  129. aidflow-3.0.9/src/aidflow/core/base/fitted/fitted.py +250 -0
  130. aidflow-3.0.9/src/aidflow/core/base/fitted/offload.py +101 -0
  131. aidflow-3.0.9/src/aidflow/core/base/fitted/relay.py +112 -0
  132. aidflow-3.0.9/src/aidflow/core/base/fitted/result.py +127 -0
  133. aidflow-3.0.9/src/aidflow/core/base/fitter.py +393 -0
  134. aidflow-3.0.9/src/aidflow/core/base/model.py +1553 -0
  135. aidflow-3.0.9/src/aidflow/core/base/model_ui.py +1102 -0
  136. aidflow-3.0.9/src/aidflow/core/base/worker.py +1103 -0
  137. aidflow-3.0.9/src/aidflow/core/config/__init__.py +14 -0
  138. aidflow-3.0.9/src/aidflow/core/config/config.py +652 -0
  139. aidflow-3.0.9/src/aidflow/core/config/css.py +1506 -0
  140. aidflow-3.0.9/src/aidflow/core/config/state.py +179 -0
  141. aidflow-3.0.9/src/aidflow/core/datanode.py +336 -0
  142. aidflow-3.0.9/src/aidflow/core/display/__init__.py +18 -0
  143. aidflow-3.0.9/src/aidflow/core/display/confirm.py +94 -0
  144. aidflow-3.0.9/src/aidflow/core/display/dash.py +1391 -0
  145. aidflow-3.0.9/src/aidflow/core/display/display.py +149 -0
  146. aidflow-3.0.9/src/aidflow/core/display/panel.py +400 -0
  147. aidflow-3.0.9/src/aidflow/core/display/repr.py +280 -0
  148. aidflow-3.0.9/src/aidflow/core/execution/__init__.py +21 -0
  149. aidflow-3.0.9/src/aidflow/core/execution/manager.py +434 -0
  150. aidflow-3.0.9/src/aidflow/core/execution/parallel.py +791 -0
  151. aidflow-3.0.9/src/aidflow/core/execution/process.py +409 -0
  152. aidflow-3.0.9/src/aidflow/core/factory.py +1313 -0
  153. aidflow-3.0.9/src/aidflow/core/foundation.py +1325 -0
  154. aidflow-3.0.9/src/aidflow/core/interop/__init__.py +16 -0
  155. aidflow-3.0.9/src/aidflow/core/interop/arrow.py +628 -0
  156. aidflow-3.0.9/src/aidflow/core/interop/containers.py +103 -0
  157. aidflow-3.0.9/src/aidflow/core/interop/merger.py +232 -0
  158. aidflow-3.0.9/src/aidflow/core/interop/pandas.py +1195 -0
  159. aidflow-3.0.9/src/aidflow/core/interop/standard.py +606 -0
  160. aidflow-3.0.9/src/aidflow/core/io/__init__.py +7 -0
  161. aidflow-3.0.9/src/aidflow/core/io/cleaner.py +36 -0
  162. aidflow-3.0.9/src/aidflow/core/io/io.py +1531 -0
  163. aidflow-3.0.9/src/aidflow/core/io/temp.py +355 -0
  164. aidflow-3.0.9/src/aidflow/core/logging.py +450 -0
  165. aidflow-3.0.9/src/aidflow/core/parameters.py +1192 -0
  166. aidflow-3.0.9/src/aidflow/core/protocol.py +159 -0
  167. aidflow-3.0.9/src/aidflow/core/registry.py +1320 -0
  168. aidflow-3.0.9/src/aidflow/core/standard.py +283 -0
  169. aidflow-3.0.9/src/aidflow/core/structure.py +348 -0
  170. aidflow-3.0.9/src/aidflow/core/validation/__init__.py +3 -0
  171. aidflow-3.0.9/src/aidflow/core/validation/data.py +69 -0
  172. aidflow-3.0.9/src/aidflow/core/validation/params.py +468 -0
  173. aidflow-3.0.9/src/aidflow/ctx/interface.py +336 -0
  174. aidflow-3.0.9/src/aidflow/ctx/pipeline.py +93 -0
  175. aidflow-3.0.9/src/aidflow/ctx/project.py +299 -0
  176. aidflow-3.0.9/src/aidflow/ctx/steps.py +578 -0
  177. aidflow-3.0.9/src/aidflow/data/__init__.py +0 -0
  178. aidflow-3.0.9/src/aidflow/data/encode/__init__.py +34 -0
  179. aidflow-3.0.9/src/aidflow/data/encode/cat_encoder.py +575 -0
  180. aidflow-3.0.9/src/aidflow/data/encode/fitters/__init__.py +17 -0
  181. aidflow-3.0.9/src/aidflow/data/encode/fitters/cat_standardizer.py +879 -0
  182. aidflow-3.0.9/src/aidflow/data/encode/fitters/ixn_extractor.py +898 -0
  183. aidflow-3.0.9/src/aidflow/data/encode/fitters/num_discretizor.py +1037 -0
  184. aidflow-3.0.9/src/aidflow/data/encode/fitters/woe_analyzer.py +633 -0
  185. aidflow-3.0.9/src/aidflow/data/encode/fitters/woe_transformer.py +1704 -0
  186. aidflow-3.0.9/src/aidflow/data/encode/ixn_encoder.py +646 -0
  187. aidflow-3.0.9/src/aidflow/data/encode/num_encoder.py +576 -0
  188. aidflow-3.0.9/src/aidflow/data/encode/reports/__init__.py +5 -0
  189. aidflow-3.0.9/src/aidflow/data/encode/reports/cat_encoding.py +229 -0
  190. aidflow-3.0.9/src/aidflow/data/encode/reports/ixn_encoding.py +149 -0
  191. aidflow-3.0.9/src/aidflow/data/encode/reports/num_encoding.py +243 -0
  192. aidflow-3.0.9/src/aidflow/data/encode/reports/woe_encoding.py +235 -0
  193. aidflow-3.0.9/src/aidflow/data/encode/reports/woe_stability.py +1095 -0
  194. aidflow-3.0.9/src/aidflow/data/encode/woe_encoder.py +794 -0
  195. aidflow-3.0.9/src/aidflow/data/encode/woe_stabilizer.py +951 -0
  196. aidflow-3.0.9/src/aidflow/data/interface.py +2080 -0
  197. aidflow-3.0.9/src/aidflow/data/load/__init__.py +6 -0
  198. aidflow-3.0.9/src/aidflow/data/load/data_loader.py +627 -0
  199. aidflow-3.0.9/src/aidflow/data/load/importer.py +440 -0
  200. aidflow-3.0.9/src/aidflow/data/load/processor.py +582 -0
  201. aidflow-3.0.9/src/aidflow/data/load/report.py +156 -0
  202. aidflow-3.0.9/src/aidflow/data/load/utils_ui.py +114 -0
  203. aidflow-3.0.9/src/aidflow/data/screen/__init__.py +21 -0
  204. aidflow-3.0.9/src/aidflow/data/screen/fe_cleaner.py +683 -0
  205. aidflow-3.0.9/src/aidflow/data/screen/fe_stabilizer.py +797 -0
  206. aidflow-3.0.9/src/aidflow/data/screen/fitters/__init__.py +3 -0
  207. aidflow-3.0.9/src/aidflow/data/screen/fitters/fe_analyzer.py +927 -0
  208. aidflow-3.0.9/src/aidflow/data/screen/fitters/fe_standardizer.py +1189 -0
  209. aidflow-3.0.9/src/aidflow/data/screen/fitters/obs_analyzer.py +525 -0
  210. aidflow-3.0.9/src/aidflow/data/screen/obs_stabilizer.py +641 -0
  211. aidflow-3.0.9/src/aidflow/data/screen/reports/__init__.py +3 -0
  212. aidflow-3.0.9/src/aidflow/data/screen/reports/fe_quality.py +189 -0
  213. aidflow-3.0.9/src/aidflow/data/screen/reports/fe_stability.py +1023 -0
  214. aidflow-3.0.9/src/aidflow/data/screen/reports/obs_stability.py +261 -0
  215. aidflow-3.0.9/src/aidflow/data/screen/utils_ui.py +53 -0
  216. aidflow-3.0.9/src/aidflow/data/transform/__init__.py +7 -0
  217. aidflow-3.0.9/src/aidflow/data/transform/data_encoder.py +540 -0
  218. aidflow-3.0.9/src/aidflow/data/transform/processor.py +529 -0
  219. aidflow-3.0.9/src/aidflow/deps/__init__.py +27 -0
  220. aidflow-3.0.9/src/aidflow/deps/cli.py +13 -0
  221. aidflow-3.0.9/src/aidflow/deps/common.py +84 -0
  222. aidflow-3.0.9/src/aidflow/deps/data.py +46 -0
  223. aidflow-3.0.9/src/aidflow/deps/data_view.py +50 -0
  224. aidflow-3.0.9/src/aidflow/deps/display.py +41 -0
  225. aidflow-3.0.9/src/aidflow/deps/exceptions.py +20 -0
  226. aidflow-3.0.9/src/aidflow/deps/execution.py +39 -0
  227. aidflow-3.0.9/src/aidflow/deps/ml/__init__.py +27 -0
  228. aidflow-3.0.9/src/aidflow/deps/ml/base.py +15 -0
  229. aidflow-3.0.9/src/aidflow/deps/ml/diag.py +20 -0
  230. aidflow-3.0.9/src/aidflow/deps/ml/dim.py +23 -0
  231. aidflow-3.0.9/src/aidflow/deps/ml/gbm.py +24 -0
  232. aidflow-3.0.9/src/aidflow/deps/ml/glm.py +24 -0
  233. aidflow-3.0.9/src/aidflow/deps/ml/stats.py +38 -0
  234. aidflow-3.0.9/src/aidflow/deps/plots.py +18 -0
  235. aidflow-3.0.9/src/aidflow/deps/struct.py +34 -0
  236. aidflow-3.0.9/src/aidflow/deps/types.py +63 -0
  237. aidflow-3.0.9/src/aidflow/deps/weakref.py +304 -0
  238. aidflow-3.0.9/src/aidflow/display/__init__.py +0 -0
  239. aidflow-3.0.9/src/aidflow/display/css.py +903 -0
  240. aidflow-3.0.9/src/aidflow/display/format.py +845 -0
  241. aidflow-3.0.9/src/aidflow/display/plots.py +462 -0
  242. aidflow-3.0.9/src/aidflow/display/rgb.py +546 -0
  243. aidflow-3.0.9/src/aidflow/display/spinner.py +385 -0
  244. aidflow-3.0.9/src/aidflow/display/style.py +713 -0
  245. aidflow-3.0.9/src/aidflow/display/verbosity.py +51 -0
  246. aidflow-3.0.9/src/aidflow/learner/__init__.py +0 -0
  247. aidflow-3.0.9/src/aidflow/learner/agents/__init__.py +24 -0
  248. aidflow-3.0.9/src/aidflow/learner/agents/agent1_predictor.py +562 -0
  249. aidflow-3.0.9/src/aidflow/learner/agents/agent2_predictor.py +625 -0
  250. aidflow-3.0.9/src/aidflow/learner/agents/agent3_predictor.py +560 -0
  251. aidflow-3.0.9/src/aidflow/learner/agents/agent4_predictor.py +573 -0
  252. aidflow-3.0.9/src/aidflow/learner/agents/fitters/__init__.py +12 -0
  253. aidflow-3.0.9/src/aidflow/learner/agents/fitters/gbm_selector.py +873 -0
  254. aidflow-3.0.9/src/aidflow/learner/agents/fitters/glm_selector.py +956 -0
  255. aidflow-3.0.9/src/aidflow/learner/agents/reports/__init__.py +8 -0
  256. aidflow-3.0.9/src/aidflow/learner/agents/reports/base.py +248 -0
  257. aidflow-3.0.9/src/aidflow/learner/agents/reports/gbm_report.py +42 -0
  258. aidflow-3.0.9/src/aidflow/learner/agents/reports/glm_report.py +77 -0
  259. aidflow-3.0.9/src/aidflow/learner/agents/utils_fes.py +44 -0
  260. aidflow-3.0.9/src/aidflow/learner/features/__init__.py +0 -0
  261. aidflow-3.0.9/src/aidflow/learner/features/estimator.py +203 -0
  262. aidflow-3.0.9/src/aidflow/learner/features/importance.py +1359 -0
  263. aidflow-3.0.9/src/aidflow/learner/features/pruning.py +1240 -0
  264. aidflow-3.0.9/src/aidflow/learner/features/sampling.py +135 -0
  265. aidflow-3.0.9/src/aidflow/learner/features/selection.py +863 -0
  266. aidflow-3.0.9/src/aidflow/learner/interface.py +814 -0
  267. aidflow-3.0.9/src/aidflow/learner/optimization/__init__.py +0 -0
  268. aidflow-3.0.9/src/aidflow/learner/optimization/optuna.py +455 -0
  269. aidflow-3.0.9/src/aidflow/ml/__init__.py +0 -0
  270. aidflow-3.0.9/src/aidflow/ml/features/__init__.py +62 -0
  271. aidflow-3.0.9/src/aidflow/ml/features/binning.py +1139 -0
  272. aidflow-3.0.9/src/aidflow/ml/features/interaction.py +671 -0
  273. aidflow-3.0.9/src/aidflow/ml/features/pca.py +313 -0
  274. aidflow-3.0.9/src/aidflow/ml/features/reduction.py +611 -0
  275. aidflow-3.0.9/src/aidflow/ml/features/stability.py +1081 -0
  276. aidflow-3.0.9/src/aidflow/ml/features/woe.py +1224 -0
  277. aidflow-3.0.9/src/aidflow/ml/metrics.py +1423 -0
  278. aidflow-3.0.9/src/aidflow/ml/models/__init__.py +51 -0
  279. aidflow-3.0.9/src/aidflow/ml/models/ablation.py +887 -0
  280. aidflow-3.0.9/src/aidflow/ml/models/calibration.py +525 -0
  281. aidflow-3.0.9/src/aidflow/ml/models/callbacks.py +252 -0
  282. aidflow-3.0.9/src/aidflow/ml/models/models.py +1730 -0
  283. aidflow-3.0.9/src/aidflow/ml/models/pls.py +944 -0
  284. aidflow-3.0.9/src/aidflow/ml/models/prediction.py +111 -0
  285. aidflow-3.0.9/src/aidflow/ml/models/psi.py +895 -0
  286. aidflow-3.0.9/src/aidflow/ml/models/selection.py +872 -0
  287. aidflow-3.0.9/src/aidflow/ml/models/transition.py +319 -0
  288. aidflow-3.0.9/src/aidflow/ml/sampling/__init__.py +45 -0
  289. aidflow-3.0.9/src/aidflow/ml/sampling/dataset.py +434 -0
  290. aidflow-3.0.9/src/aidflow/ml/sampling/sampling.py +1298 -0
  291. aidflow-3.0.9/src/aidflow/ml/sampling/subsampling.py +872 -0
  292. aidflow-3.0.9/src/aidflow/ml/tests.py +419 -0
  293. aidflow-3.0.9/src/aidflow/models/__init__.py +10 -0
  294. aidflow-3.0.9/src/aidflow/models/dashboards.py +51 -0
  295. aidflow-3.0.9/src/aidflow/models/fitters.py +64 -0
  296. aidflow-3.0.9/src/aidflow/models/models.py +97 -0
  297. aidflow-3.0.9/src/aidflow/predictor/__init__.py +25 -0
  298. aidflow-3.0.9/src/aidflow/predictor/predictor.py +687 -0
  299. aidflow-3.0.9/src/aidflow/production/__init__.py +10 -0
  300. aidflow-3.0.9/src/aidflow/production/exporter.py +305 -0
  301. aidflow-3.0.9/src/aidflow/selector/__init__.py +0 -0
  302. aidflow-3.0.9/src/aidflow/selector/base/__init__.py +0 -0
  303. aidflow-3.0.9/src/aidflow/selector/base/processor.py +169 -0
  304. aidflow-3.0.9/src/aidflow/selector/compare/__init__.py +6 -0
  305. aidflow-3.0.9/src/aidflow/selector/compare/agents_comparator.py +613 -0
  306. aidflow-3.0.9/src/aidflow/selector/compare/processor.py +1495 -0
  307. aidflow-3.0.9/src/aidflow/selector/compare/report.py +112 -0
  308. aidflow-3.0.9/src/aidflow/selector/interface.py +990 -0
  309. aidflow-3.0.9/src/aidflow/selector/predict/__init__.py +5 -0
  310. aidflow-3.0.9/src/aidflow/selector/predict/adapter.py +69 -0
  311. aidflow-3.0.9/src/aidflow/selector/predict/agents_predictor.py +488 -0
  312. aidflow-3.0.9/src/aidflow/selector/predict/processor.py +375 -0
  313. aidflow-3.0.9/src/aidflow/selector/select/__init__.py +8 -0
  314. aidflow-3.0.9/src/aidflow/selector/select/agent/__init__.py +11 -0
  315. aidflow-3.0.9/src/aidflow/selector/select/agent/champion_predictor.py +794 -0
  316. aidflow-3.0.9/src/aidflow/selector/select/agent/fitter.py +555 -0
  317. aidflow-3.0.9/src/aidflow/selector/select/agent/report.py +466 -0
  318. aidflow-3.0.9/src/aidflow/selector/select/agent/stats.py +1444 -0
  319. aidflow-3.0.9/src/aidflow/selector/select/agent_selector.py +723 -0
  320. aidflow-3.0.9/src/aidflow/selector/select/processor.py +1345 -0
  321. aidflow-3.0.9/src/aidflow/selector/select/report.py +102 -0
  322. aidflow-3.0.9/src/aidflow/selector/select/utils_ui.py +289 -0
  323. aidflow-3.0.9/src/aidflow/selector/transition/__init__.py +6 -0
  324. aidflow-3.0.9/src/aidflow/selector/transition/agents_transition.py +565 -0
  325. aidflow-3.0.9/src/aidflow/selector/transition/processor.py +1221 -0
  326. aidflow-3.0.9/src/aidflow/selector/transition/report.py +73 -0
  327. aidflow-3.0.9/src/aidflow/storage/__init__.py +0 -0
  328. aidflow-3.0.9/src/aidflow/storage/export.py +175 -0
  329. aidflow-3.0.9/src/aidflow/storage/file.py +615 -0
  330. aidflow-3.0.9/src/aidflow/storage/folder.py +195 -0
  331. aidflow-3.0.9/src/aidflow/storage/thread.py +107 -0
  332. aidflow-3.0.9/src/aidflow/ui.py +36 -0
  333. aidflow-3.0.9/src/aidflow/utils/__init__.py +0 -0
  334. aidflow-3.0.9/src/aidflow/utils/_version.py +4 -0
  335. aidflow-3.0.9/src/aidflow/utils/builtins.py +268 -0
  336. aidflow-3.0.9/src/aidflow/utils/ignore.py +43 -0
  337. aidflow-3.0.9/src/aidflow/utils/memory.py +868 -0
  338. aidflow-3.0.9/src/aidflow/utils/platform.py +99 -0
  339. aidflow-3.0.9/src/aidflow/utils/stats.py +145 -0
  340. aidflow-3.0.7/PKG-INFO +0 -176
  341. aidflow-3.0.7/README.md +0 -157
  342. aidflow-3.0.7/publish.txt +0 -6
  343. aidflow-3.0.7/pyproject.toml +0 -27
  344. {aidflow-3.0.7/aidflow → aidflow-3.0.9/src/aidflow/ctx}/__init__.py +0 -0
@@ -0,0 +1,29 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ id-token: write
9
+ contents: read
10
+
11
+ jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ environment: pypi
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: '3.12'
22
+
23
+ - name: Build
24
+ run: |
25
+ pip install build
26
+ python -m build
27
+
28
+ - name: Publish
29
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,54 @@
1
+ # Contributing
2
+
3
+ Thank you for your interest in AIDflow.
4
+
5
+ ## Reporting Issues
6
+
7
+ - Use the [GitHub Issue Tracker](https://github.com/aigensys-labs/aidflow/issues)
8
+ - Include: Python version, AIDflow version, minimal reproducible example
9
+ - For bugs: a short script that reproduces the issue is ideal
10
+
11
+ ## Submitting Pull Requests
12
+
13
+ 1. Fork the repository and create a feature branch from `main`
14
+ 2. Follow the existing code style (Black-formatted)
15
+ 3. Add or update docstrings for any new public-facing code
16
+ 4. Keep PRs focused — one feature or fix per PR
17
+ 5. Open a PR against `main` with a clear description of what changed and why
18
+
19
+ ## Code Style
20
+
21
+ - **Formatter**: [Black](https://black.readthedocs.io/)
22
+ - **Docstrings**: NumPy style (consistent with the existing codebase)
23
+ - **Type hints**: Required on all public methods
24
+
25
+ ## Licensing
26
+
27
+ "AIGENSYS" means **AIGENSYS s.r.o.**, a limited liability company
28
+ organized and existing under the laws of the Czech Republic,
29
+ with its registered office at Bilkova 855/19, Prague 1, Czech Republic,
30
+ Company VAT ID Number: **CZ23450924**.
31
+
32
+ By submitting a contribution to this project, you agree that:
33
+
34
+ 1. Your contribution is licensed under the project's
35
+ [FSL-1.1-Apache-2.0](LICENSE) terms and becomes part of the Software.
36
+
37
+ 2. You grant AIGENSYS a perpetual, irrevocable, worldwide,
38
+ royalty-free license to use, modify, reproduce, and distribute
39
+ your contribution in the Software or any other product or service
40
+ that AIGENSYS offers.
41
+
42
+ 3. To the extent your contribution would necessarily infringe any
43
+ patents you own or control, you grant AIGENSYS a perpetual,
44
+ irrevocable, worldwide, royalty-free license under those patents
45
+ for the same purposes.
46
+
47
+ 4. You represent and warrant that you have the right to grant the
48
+ licenses above and that your contribution does not infringe any
49
+ third-party intellectual property rights.
50
+
51
+ ## Questions?
52
+
53
+ Open a [Discussion](https://github.com/aigensys-labs/aidflow/discussions)
54
+ or reach out via the issue tracker.
aidflow-3.0.9/LICENSE ADDED
@@ -0,0 +1,56 @@
1
+ # Functional Source License, Version 1.1, Apache 2.0 Future License
2
+
3
+ ## Abbreviation
4
+ FSL-1.1-Apache-2.0
5
+
6
+ ## License Notice
7
+ Copyright 2026 AIGENSYS s.r.o., Michal Ricar, Ph.D. and AIDflow contributors
8
+
9
+ ## Terms and Conditions
10
+
11
+ ### Licensor ("We")
12
+ The party offering the Software under these Terms and Conditions.
13
+
14
+ ### The Software
15
+ The "Software" is each version of the software that we make available under these Terms and Conditions, as indicated by our inclusion of these Terms and Conditions with the Software.
16
+
17
+ ### License Grant
18
+ Subject to your compliance with this License Grant and the Patents, Redistribution and Trademark clauses below, we hereby grant you the right to use, copy, modify, create derivative works, publicly perform, publicly display and redistribute the Software for any Permitted Purpose identified below.
19
+
20
+ ### Permitted Purpose
21
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use means making the Software available to others in a commercial product or service that:
22
+ 1. substitutes for the Software;
23
+ 2. substitutes for any other product or service we offer using the Software that exists as of the date we make the Software available; or
24
+ 3. offers the same or substantially similar functionality as the Software.
25
+
26
+ Permitted Purposes specifically include using the Software:
27
+ 1. for your internal use and access;
28
+ 2. for non-commercial education;
29
+ 3. for non-commercial research; and
30
+ 4. in connection with professional services that you provide to a licensee using the Software in accordance with these Terms and Conditions.
31
+
32
+ ### Patents
33
+ To the extent your use for a Permitted Purpose would necessarily infringe our patents, the license grant above includes a license under our patents. If you make a claim against any party that the Software infringes or contributes to the infringement of any patent, then your patent license to the Software ends immediately.
34
+
35
+ ### Redistribution
36
+ The Terms and Conditions apply to all copies, modifications and derivatives of the Software.
37
+
38
+ If you redistribute any copies, modifications or derivatives of the Software, you must include a copy of or a link to these Terms and Conditions and not remove any copyright notices provided in or with the Software.
39
+
40
+ ### Disclaimer
41
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
42
+
43
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
44
+
45
+ ### Trademarks
46
+ Except for displaying the License Notice and identifying us as the origin of the Software, you have no right under these Terms and Conditions to use our trademarks, trade names, service marks or product names.
47
+
48
+ ## Grant of Future License
49
+
50
+ We hereby irrevocably grant you an additional license to use the Software under the Apache License, Version 2.0 that is effective on the second anniversary of the date we make the Software available. On or after that date, you may use the Software under the Apache License, Version 2.0, in which case the following will apply:
51
+
52
+ > Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
53
+ >
54
+ > http://www.apache.org/licenses/LICENSE-2.0
55
+ >
56
+ > Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
aidflow-3.0.9/PKG-INFO ADDED
@@ -0,0 +1,299 @@
1
+ Metadata-Version: 2.5
2
+ Name: aidflow
3
+ Version: 3.0.9
4
+ Summary: Automated Interactive Development Framework | Scorecard DEV
5
+ Project-URL: Homepage, https://github.com/aigensys-labs/aidflow
6
+ Project-URL: Repository, https://github.com/aigensys-labs/aidflow
7
+ Project-URL: Documentation, https://aidflow.aigensys.com/
8
+ Author-email: AIGENSYS <info@aigensys.com>, Michal Ricar <michal.ricar@aigensys.com>
9
+ License: # Functional Source License, Version 1.1, Apache 2.0 Future License
10
+
11
+ ## Abbreviation
12
+ FSL-1.1-Apache-2.0
13
+
14
+ ## License Notice
15
+ Copyright 2026 AIGENSYS s.r.o., Michal Ricar, Ph.D. and AIDflow contributors
16
+
17
+ ## Terms and Conditions
18
+
19
+ ### Licensor ("We")
20
+ The party offering the Software under these Terms and Conditions.
21
+
22
+ ### The Software
23
+ The "Software" is each version of the software that we make available under these Terms and Conditions, as indicated by our inclusion of these Terms and Conditions with the Software.
24
+
25
+ ### License Grant
26
+ Subject to your compliance with this License Grant and the Patents, Redistribution and Trademark clauses below, we hereby grant you the right to use, copy, modify, create derivative works, publicly perform, publicly display and redistribute the Software for any Permitted Purpose identified below.
27
+
28
+ ### Permitted Purpose
29
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use means making the Software available to others in a commercial product or service that:
30
+ 1. substitutes for the Software;
31
+ 2. substitutes for any other product or service we offer using the Software that exists as of the date we make the Software available; or
32
+ 3. offers the same or substantially similar functionality as the Software.
33
+
34
+ Permitted Purposes specifically include using the Software:
35
+ 1. for your internal use and access;
36
+ 2. for non-commercial education;
37
+ 3. for non-commercial research; and
38
+ 4. in connection with professional services that you provide to a licensee using the Software in accordance with these Terms and Conditions.
39
+
40
+ ### Patents
41
+ To the extent your use for a Permitted Purpose would necessarily infringe our patents, the license grant above includes a license under our patents. If you make a claim against any party that the Software infringes or contributes to the infringement of any patent, then your patent license to the Software ends immediately.
42
+
43
+ ### Redistribution
44
+ The Terms and Conditions apply to all copies, modifications and derivatives of the Software.
45
+
46
+ If you redistribute any copies, modifications or derivatives of the Software, you must include a copy of or a link to these Terms and Conditions and not remove any copyright notices provided in or with the Software.
47
+
48
+ ### Disclaimer
49
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
50
+
51
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
52
+
53
+ ### Trademarks
54
+ Except for displaying the License Notice and identifying us as the origin of the Software, you have no right under these Terms and Conditions to use our trademarks, trade names, service marks or product names.
55
+
56
+ ## Grant of Future License
57
+
58
+ We hereby irrevocably grant you an additional license to use the Software under the Apache License, Version 2.0 that is effective on the second anniversary of the date we make the Software available. On or after that date, you may use the Software under the Apache License, Version 2.0, in which case the following will apply:
59
+
60
+ > Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
61
+ >
62
+ > http://www.apache.org/licenses/LICENSE-2.0
63
+ >
64
+ > Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
65
+ License-File: LICENSE
66
+ Keywords: credit-scoring,feature-selection,gradient-boosting,human-in-the-loop,logistic-regression,ml-pipeline,regulatory-reporting,scorecard,woe
67
+ Classifier: Development Status :: 5 - Production/Stable
68
+ Classifier: Intended Audience :: Developers
69
+ Classifier: Operating System :: OS Independent
70
+ Classifier: Programming Language :: Python :: 3 :: Only
71
+ Classifier: Programming Language :: Python :: 3.12
72
+ Classifier: Programming Language :: Python :: 3.13
73
+ Classifier: Programming Language :: Python :: 3.14
74
+ Classifier: Programming Language :: Python :: 3.15
75
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
76
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
77
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
78
+ Requires-Python: >=3.12
79
+ Requires-Dist: anywidget>=0.11
80
+ Requires-Dist: ipykernel>=7.4
81
+ Requires-Dist: ipywidgets>=8.1
82
+ Requires-Dist: itables>=2.9
83
+ Requires-Dist: jinja2>=3.1.6
84
+ Requires-Dist: lightgbm==4.6
85
+ Requires-Dist: matplotlib>=3.11
86
+ Requires-Dist: mgzip2>=0.2.6
87
+ Requires-Dist: multiprocess>=0.70.1
88
+ Requires-Dist: numba>=0.68
89
+ Requires-Dist: numpy>=2.5
90
+ Requires-Dist: optuna-integration[lightgbm,xgboost]
91
+ Requires-Dist: optuna>=5.0
92
+ Requires-Dist: p-tqdm>=1.4
93
+ Requires-Dist: pandas>=3.1
94
+ Requires-Dist: plotly>=7.1
95
+ Requires-Dist: pyarrow>=26.0
96
+ Requires-Dist: scikit-learn>=1.9
97
+ Requires-Dist: scipy>=1.18
98
+ Requires-Dist: shap>=0.54
99
+ Requires-Dist: statsmodels>=0.15
100
+ Requires-Dist: threadpoolctl>=3.7
101
+ Requires-Dist: tqdm>=4.7
102
+ Requires-Dist: wrapt>=2.5.2
103
+ Requires-Dist: xgboost>=3.4
104
+ Provides-Extra: all
105
+ Requires-Dist: notebook>=7.6; extra == 'all'
106
+ Requires-Dist: ray[data]>=2.59; (python_version < '3.14') and extra == 'all'
107
+ Provides-Extra: notebook
108
+ Requires-Dist: notebook>=7.6; extra == 'notebook'
109
+ Provides-Extra: ray
110
+ Requires-Dist: ray[data]>=2.59; (python_version < '3.14') and extra == 'ray'
111
+ Description-Content-Type: text/markdown
112
+
113
+ <h1 align="center">
114
+
115
+ <img src="https://raw.githubusercontent.com/aigensys-labs/aidflow/main/docs/assets/aidflow.png" alt="AIDflow" width="400">
116
+
117
+ </h1>
118
+
119
+ <div align="center">
120
+
121
+ **Automated Interactive Development Framework**<br />**Human-in-the-Loop Scorecard Orchestration for Regulated ML**
122
+
123
+ ![PyPI](https://img.shields.io/pypi/v/aidflow?color=blue&cache=300)![Python](https://img.shields.io/badge/python-3.12%2B-blue)![License](https://img.shields.io/badge/License-FSL--1.1-blue)![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)
124
+
125
+ </div>
126
+
127
+ <div align="center">
128
+
129
+ *Built over 15 years of credit scoring, fintech R&D, and regulatory practice.*
130
+
131
+ <img src="https://raw.githubusercontent.com/aigensys-labs/aidflow/main/docs/assets/aidflow-preview.gif" alt="AIDflow-preview">
132
+
133
+ <br>
134
+
135
+ **A human directs. An AI agent executes. The output survives committee review.**
136
+
137
+ </div>
138
+
139
+ ---
140
+
141
+ ## Why AIDflow?
142
+
143
+ Automated ML tools optimize metrics in isolation and hand you a black box.
144
+ In regulated environments — **Fintech, Banking, Insurance** — that's a liability, not an asset.
145
+
146
+ AIDflow treats every model as an **auditable legal artifact**. It automates the pipeline mechanics while keeping a human in control of every decision: feature selection, binning strategy, model choice, champion deployment. Full transparency, full traceability, full reproducibility.
147
+
148
+ It is also an **AI-orchestrable endpoint** — an endpoint that lets LLM agents drive the full pipeline (genesis → training → champion) and return a deployable, regulatory-grade scorecard without human intervention.
149
+
150
+ **If your scoring model must survive a committee review, AIDflow is your development environment.**
151
+
152
+ ---
153
+
154
+ ## Quick Start
155
+
156
+ ### Install & Run Demo
157
+
158
+ ```bash
159
+ # Pure CLI
160
+ pip install aidflow
161
+ aidflow run demo/
162
+
163
+ # Interactive UI
164
+ pip install aidflow[notebook]
165
+ aidflow notebook ui_demo/
166
+ ```
167
+
168
+ ### Define & Run Your Project in CLI / Notebook
169
+
170
+ ```python
171
+ import aidflow as aid
172
+
173
+ # Project Context
174
+ ctx = aid.ProjectContext()
175
+
176
+ ctx.genesis(
177
+ project = 'my_scorecard',
178
+ input_data = 'data/train.csv',
179
+ target = 'is_churn',
180
+ yy_mm = 'decision_date',
181
+ yy_mm_format = '%Y-%m-%d',
182
+ )
183
+ ctx.params(save=1, logging=1, verbose=1)
184
+
185
+ # Execute Full Pipeline
186
+ ctx.flow.process('all')
187
+
188
+ # Or Run Phase-by-Phase
189
+ ctx.flow.process('data')
190
+ ctx.flow.process('encoding')
191
+ ctx.flow.process('training')
192
+ ctx.flow.process('selection')
193
+ ```
194
+
195
+ ### Inference Tests
196
+
197
+ ```python
198
+ pred = aid.Predictor(project='my_scorecard')
199
+ score = pred.champion_predict(new_data, preprocess=True)
200
+ ```
201
+
202
+ ### Export Production Artifact
203
+
204
+ ```python
205
+ prod = aid.ProductionExporter(ctx.selection.champion_predictor)
206
+ prod.export_all('./production')
207
+ # → self-contained scoring module
208
+ ```
209
+
210
+ ---
211
+
212
+ ## Documentation
213
+
214
+ 📚 [**View Full Documentation → aidflow.aigensys.com**](https://aidflow.aigensys.com)
215
+
216
+ - [Getting Started](https://aidflow.aigensys.com/getting-started/overview)
217
+ - [User Guides](https://aidflow.aigensys.com/user-guides/data-phase)
218
+ - [API Reference](https://aidflow.aigensys.com/api/execution-interface/Parameters)
219
+
220
+ ---
221
+
222
+ ## Capabilities
223
+
224
+ - **Human-in-the-Loop** — Every phase is a decision point. Pause, inspect, re-configure, re-run — without losing state.
225
+ - **Ensemble + Selection** — Four orthogonal agents compete. An objective scoring system promotes the champion.
226
+ - **Audit-Ready** — Per-step standardized artifacts: stability indices (PSI/CSI), lift tables, calibration, feature lineage, SHAP vectors.
227
+ - **Self-Contained Scoring** — The exported artifact encapsulates all encoding and model state. Inference requires no training data or prior pipeline state.
228
+ - **Memory-Aware Relay** — Offloads intermediate state to disk via Arrow. Run pipelines on a 16GB machine. `ctx.params(offload=1)`.
229
+ - **Distributed Compute** — Swap from local multiprocessing to Ray cluster for multi-node scaling. `pip install aidflow[ray]`. No pipeline changes.
230
+
231
+ ---
232
+
233
+ ## Architecture
234
+
235
+ AIDflow decouples **user intent** from **mathematical execution** via a three-layer stack. Swap algorithms without touching the API.
236
+
237
+ | Layer | Role | Responsibility |
238
+ |------------|-----------|-----------------------------------------------------------|
239
+ | **Worker** | Interface | User-facing API. Validation, state, registration, UI. |
240
+ | **Model** | Adapter | Parameter resolution. Algorithm switching. Fit options. |
241
+ | **Fitter** | Engine | Pure computation. No UI, no context. Data in → model out. |
242
+
243
+
244
+ **Practical effect:** switch from Lasso to ElasticNet by passing one parameter. The worker API, the state schema, and the reporting pipeline remain unchanged.
245
+
246
+ ---
247
+
248
+ ## Traditional ML vs AIDflow
249
+
250
+ | Dimension | Traditional | AIDflow |
251
+ |---------------------|------------------------------------------------|----------------------------------------------------------------------------|
252
+ | **Data flow** | Variable passing (`df1` → `df2` → ... → `dfN`) | Context registration (semantic lineage) |
253
+ | **Architecture** | Monolithic script | Worker → Model → Fitter (swappable layers) |
254
+ | **Extension** | Rewrite the function | Define a new Fitter, register it. Done. |
255
+ | **Stability** | Manual checks, date slicing | Built-in temporal phases (pre-training) |
256
+ | **Memory** | RAM-bound. Sample or add hardware. | Arrow offload. Runs on any machine. |
257
+ | **Compute** | `multiprocessing` or manual `joblib` | Local multiprocessing (default) → Ray cluster (one param) |
258
+ | **Reproducibility** | "Works on my machine" | Context-locked. Run-to-run identical. |
259
+ | **AI** | Manual step-by-step orchestration | Single-call pipeline → production DAG. Stateless, idempotent, AI-friendly. |
260
+
261
+ ---
262
+
263
+ ## Execution Pipeline
264
+
265
+ *GENESIS → DATA → ENCODING → TRAINING → SELECTION → INFERENCE*
266
+
267
+ | |
268
+ |----------------------------------------------------------------------------------------------------|
269
+ | 📊 **Data** — Loader, Fe Cleaner, Fe Stabilizer, Obs Stabilizer |
270
+ | 🔢 **Encoding** — Num Encoder, Cat Encoder, Ixn Encoder, WOE Encoder, WOE Stabilizer, Data Encoder |
271
+ | 🤖 **Training** — Agent 1 (GLM), Agent 2 (L1/L2), Agent 3 (PLS), Agent 4 (GBM) |
272
+ | 🏆 **Selection** — Agents Predictor, Comparator, Transition, Selector, Champion |
273
+ | 🎯 **Inference** — Production Predictor, Production Export |
274
+
275
+ > **Human-in-the-Loop:** Interactive adjustments, pause, inspect, re-configure at every boundary
276
+
277
+ ---
278
+
279
+ ## Requirements
280
+
281
+ - Python **3.12+**
282
+ - [Dependencies](https://github.com/aigensys-labs/aidflow/blob/main/pyproject.toml)
283
+
284
+ ---
285
+
286
+ ## Licensing
287
+
288
+ **Functional Source License (FSL 1.1)** with automatic Apache 2.0 grant after 2 years.
289
+
290
+ - **Permitted**: Internal use, non-commercial education/research, professional services delivery.
291
+ - **Restricted**: Building a competing commercial product on top of AIDflow's core engine.
292
+ - **After 2 years**: Automatically converts to **Apache 2.0** (full open source, no restrictions).
293
+
294
+ [Full license → LICENSE](https://github.com/aigensys-labs/aidflow/blob/main/LICENSE) |
295
+ [Learn more → fsl.software](https://fsl.software/)
296
+
297
+ ---
298
+
299
+ *Built for practitioners who build models that must survive a regulatory audit.*
@@ -0,0 +1,187 @@
1
+ <h1 align="center">
2
+
3
+ <img src="https://raw.githubusercontent.com/aigensys-labs/aidflow/main/docs/assets/aidflow.png" alt="AIDflow" width="400">
4
+
5
+ </h1>
6
+
7
+ <div align="center">
8
+
9
+ **Automated Interactive Development Framework**<br />**Human-in-the-Loop Scorecard Orchestration for Regulated ML**
10
+
11
+ ![PyPI](https://img.shields.io/pypi/v/aidflow?color=blue&cache=300)![Python](https://img.shields.io/badge/python-3.12%2B-blue)![License](https://img.shields.io/badge/License-FSL--1.1-blue)![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)
12
+
13
+ </div>
14
+
15
+ <div align="center">
16
+
17
+ *Built over 15 years of credit scoring, fintech R&D, and regulatory practice.*
18
+
19
+ <img src="https://raw.githubusercontent.com/aigensys-labs/aidflow/main/docs/assets/aidflow-preview.gif" alt="AIDflow-preview">
20
+
21
+ <br>
22
+
23
+ **A human directs. An AI agent executes. The output survives committee review.**
24
+
25
+ </div>
26
+
27
+ ---
28
+
29
+ ## Why AIDflow?
30
+
31
+ Automated ML tools optimize metrics in isolation and hand you a black box.
32
+ In regulated environments — **Fintech, Banking, Insurance** — that's a liability, not an asset.
33
+
34
+ AIDflow treats every model as an **auditable legal artifact**. It automates the pipeline mechanics while keeping a human in control of every decision: feature selection, binning strategy, model choice, champion deployment. Full transparency, full traceability, full reproducibility.
35
+
36
+ It is also an **AI-orchestrable endpoint** — an endpoint that lets LLM agents drive the full pipeline (genesis → training → champion) and return a deployable, regulatory-grade scorecard without human intervention.
37
+
38
+ **If your scoring model must survive a committee review, AIDflow is your development environment.**
39
+
40
+ ---
41
+
42
+ ## Quick Start
43
+
44
+ ### Install & Run Demo
45
+
46
+ ```bash
47
+ # Pure CLI
48
+ pip install aidflow
49
+ aidflow run demo/
50
+
51
+ # Interactive UI
52
+ pip install aidflow[notebook]
53
+ aidflow notebook ui_demo/
54
+ ```
55
+
56
+ ### Define & Run Your Project in CLI / Notebook
57
+
58
+ ```python
59
+ import aidflow as aid
60
+
61
+ # Project Context
62
+ ctx = aid.ProjectContext()
63
+
64
+ ctx.genesis(
65
+ project = 'my_scorecard',
66
+ input_data = 'data/train.csv',
67
+ target = 'is_churn',
68
+ yy_mm = 'decision_date',
69
+ yy_mm_format = '%Y-%m-%d',
70
+ )
71
+ ctx.params(save=1, logging=1, verbose=1)
72
+
73
+ # Execute Full Pipeline
74
+ ctx.flow.process('all')
75
+
76
+ # Or Run Phase-by-Phase
77
+ ctx.flow.process('data')
78
+ ctx.flow.process('encoding')
79
+ ctx.flow.process('training')
80
+ ctx.flow.process('selection')
81
+ ```
82
+
83
+ ### Inference Tests
84
+
85
+ ```python
86
+ pred = aid.Predictor(project='my_scorecard')
87
+ score = pred.champion_predict(new_data, preprocess=True)
88
+ ```
89
+
90
+ ### Export Production Artifact
91
+
92
+ ```python
93
+ prod = aid.ProductionExporter(ctx.selection.champion_predictor)
94
+ prod.export_all('./production')
95
+ # → self-contained scoring module
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Documentation
101
+
102
+ 📚 [**View Full Documentation → aidflow.aigensys.com**](https://aidflow.aigensys.com)
103
+
104
+ - [Getting Started](https://aidflow.aigensys.com/getting-started/overview)
105
+ - [User Guides](https://aidflow.aigensys.com/user-guides/data-phase)
106
+ - [API Reference](https://aidflow.aigensys.com/api/execution-interface/Parameters)
107
+
108
+ ---
109
+
110
+ ## Capabilities
111
+
112
+ - **Human-in-the-Loop** — Every phase is a decision point. Pause, inspect, re-configure, re-run — without losing state.
113
+ - **Ensemble + Selection** — Four orthogonal agents compete. An objective scoring system promotes the champion.
114
+ - **Audit-Ready** — Per-step standardized artifacts: stability indices (PSI/CSI), lift tables, calibration, feature lineage, SHAP vectors.
115
+ - **Self-Contained Scoring** — The exported artifact encapsulates all encoding and model state. Inference requires no training data or prior pipeline state.
116
+ - **Memory-Aware Relay** — Offloads intermediate state to disk via Arrow. Run pipelines on a 16GB machine. `ctx.params(offload=1)`.
117
+ - **Distributed Compute** — Swap from local multiprocessing to Ray cluster for multi-node scaling. `pip install aidflow[ray]`. No pipeline changes.
118
+
119
+ ---
120
+
121
+ ## Architecture
122
+
123
+ AIDflow decouples **user intent** from **mathematical execution** via a three-layer stack. Swap algorithms without touching the API.
124
+
125
+ | Layer | Role | Responsibility |
126
+ |------------|-----------|-----------------------------------------------------------|
127
+ | **Worker** | Interface | User-facing API. Validation, state, registration, UI. |
128
+ | **Model** | Adapter | Parameter resolution. Algorithm switching. Fit options. |
129
+ | **Fitter** | Engine | Pure computation. No UI, no context. Data in → model out. |
130
+
131
+
132
+ **Practical effect:** switch from Lasso to ElasticNet by passing one parameter. The worker API, the state schema, and the reporting pipeline remain unchanged.
133
+
134
+ ---
135
+
136
+ ## Traditional ML vs AIDflow
137
+
138
+ | Dimension | Traditional | AIDflow |
139
+ |---------------------|------------------------------------------------|----------------------------------------------------------------------------|
140
+ | **Data flow** | Variable passing (`df1` → `df2` → ... → `dfN`) | Context registration (semantic lineage) |
141
+ | **Architecture** | Monolithic script | Worker → Model → Fitter (swappable layers) |
142
+ | **Extension** | Rewrite the function | Define a new Fitter, register it. Done. |
143
+ | **Stability** | Manual checks, date slicing | Built-in temporal phases (pre-training) |
144
+ | **Memory** | RAM-bound. Sample or add hardware. | Arrow offload. Runs on any machine. |
145
+ | **Compute** | `multiprocessing` or manual `joblib` | Local multiprocessing (default) → Ray cluster (one param) |
146
+ | **Reproducibility** | "Works on my machine" | Context-locked. Run-to-run identical. |
147
+ | **AI** | Manual step-by-step orchestration | Single-call pipeline → production DAG. Stateless, idempotent, AI-friendly. |
148
+
149
+ ---
150
+
151
+ ## Execution Pipeline
152
+
153
+ *GENESIS → DATA → ENCODING → TRAINING → SELECTION → INFERENCE*
154
+
155
+ | |
156
+ |----------------------------------------------------------------------------------------------------|
157
+ | 📊 **Data** — Loader, Fe Cleaner, Fe Stabilizer, Obs Stabilizer |
158
+ | 🔢 **Encoding** — Num Encoder, Cat Encoder, Ixn Encoder, WOE Encoder, WOE Stabilizer, Data Encoder |
159
+ | 🤖 **Training** — Agent 1 (GLM), Agent 2 (L1/L2), Agent 3 (PLS), Agent 4 (GBM) |
160
+ | 🏆 **Selection** — Agents Predictor, Comparator, Transition, Selector, Champion |
161
+ | 🎯 **Inference** — Production Predictor, Production Export |
162
+
163
+ > **Human-in-the-Loop:** Interactive adjustments, pause, inspect, re-configure at every boundary
164
+
165
+ ---
166
+
167
+ ## Requirements
168
+
169
+ - Python **3.12+**
170
+ - [Dependencies](https://github.com/aigensys-labs/aidflow/blob/main/pyproject.toml)
171
+
172
+ ---
173
+
174
+ ## Licensing
175
+
176
+ **Functional Source License (FSL 1.1)** with automatic Apache 2.0 grant after 2 years.
177
+
178
+ - **Permitted**: Internal use, non-commercial education/research, professional services delivery.
179
+ - **Restricted**: Building a competing commercial product on top of AIDflow's core engine.
180
+ - **After 2 years**: Automatically converts to **Apache 2.0** (full open source, no restrictions).
181
+
182
+ [Full license → LICENSE](https://github.com/aigensys-labs/aidflow/blob/main/LICENSE) |
183
+ [Learn more → fsl.software](https://fsl.software/)
184
+
185
+ ---
186
+
187
+ *Built for practitioners who build models that must survive a regulatory audit.*
@@ -0,0 +1,32 @@
1
+ ---
2
+ title: "DataLoaderWorker.fit"
3
+ sidebarTitle: "fit"
4
+ ---
5
+
6
+ <div className="font-mono text-base my-3">
7
+ <strong>def DataLoaderWorker.fit</strong>(self, inputs, fx_choice=REG.AIG, **params) [[source]](https://github.com/aigensys-labs/aidflow/blob/main/AID/\\TRUENAS\aig_modeling\_Products\AID\1_0_Lib\AID\data\load\data_loader.py#L497)
8
+ </div>
9
+
10
+ Execute the full data ingestion and standardization pipeline.
11
+
12
+ Ingests data from the configured source, verifies
13
+ constraints, standardizes the format, and performs the
14
+ time-based train/test split.
15
+
16
+ #### Parameters
17
+
18
+ **`inputs`** : *`DataLoaderInput`*
19
+ <div style={{"paddingLeft": "1.25rem", "marginTop": "0.25rem", "marginBottom": "1rem"}}>Flow context configuration (resolved from ctx.setup).</div>
20
+
21
+ **`fx_choice`** : *`str`*
22
+ <div style={{"paddingLeft": "1.25rem", "marginTop": "0.25rem", "marginBottom": "1rem"}}>The fitting strategy identifier. Defaults to REG.AIG.</div>
23
+
24
+ **`**params`** : *`dict`*
25
+ <div style={{"paddingLeft": "1.25rem", "marginTop": "0.25rem", "marginBottom": "1rem"}}>Runtime parameters passed to the internal fitter<br />(import_start, import_end, train_test, smp_learn, smp_feature).</div>
26
+
27
+
28
+ #### Returns
29
+
30
+ *`DataLoader`*
31
+ <div style={{"paddingLeft": "1.25rem", "marginTop": "0.25rem", "marginBottom": "1rem"}}>The fitted instance with train/test split and<br />variable type classification available.</div>
32
+