SKSurrogate 0.3.0__tar.gz → 0.8.0__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 (286) hide show
  1. sksurrogate-0.8.0/MANIFEST.in +18 -0
  2. {sksurrogate-0.3.0/SKSurrogate.egg-info → sksurrogate-0.8.0}/PKG-INFO +206 -34
  3. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/DataProcess.py +387 -42
  4. sksurrogate-0.8.0/SKSurrogate/__init__.py +293 -0
  5. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/aml.py +129 -130
  6. sksurrogate-0.8.0/SKSurrogate/artifacts.py +164 -0
  7. sksurrogate-0.8.0/SKSurrogate/compare.py +834 -0
  8. sksurrogate-0.8.0/SKSurrogate/deps.py +140 -0
  9. sksurrogate-0.8.0/SKSurrogate/ensembling.py +1723 -0
  10. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/eoa.py +9 -1
  11. sksurrogate-0.8.0/SKSurrogate/forecast_intervals.py +220 -0
  12. sksurrogate-0.8.0/SKSurrogate/forecast_metrics.py +416 -0
  13. sksurrogate-0.8.0/SKSurrogate/inference.py +408 -0
  14. sksurrogate-0.8.0/SKSurrogate/manifest.py +497 -0
  15. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/mltrace.py +1144 -63
  16. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/modelbundle.py +405 -20
  17. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/monitoring.py +167 -10
  18. sksurrogate-0.8.0/SKSurrogate/scoring.py +47 -0
  19. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/sensapprx.py +67 -14
  20. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/structsearch.py +712 -282
  21. sksurrogate-0.8.0/SKSurrogate/surrogate_family.py +116 -0
  22. sksurrogate-0.8.0/SKSurrogate/temporal.py +2276 -0
  23. sksurrogate-0.8.0/SKSurrogate.egg-info/PKG-INFO +481 -0
  24. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate.egg-info/SOURCES.txt +122 -4
  25. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate.egg-info/entry_points.txt +1 -0
  26. sksurrogate-0.8.0/SKSurrogate.egg-info/requires.txt +93 -0
  27. sksurrogate-0.8.0/SKSurrogate.egg-info/top_level.txt +2 -0
  28. sksurrogate-0.8.0/docs/architecture.rst +66 -0
  29. sksurrogate-0.8.0/docs/auth-and-sharing.rst +282 -0
  30. sksurrogate-0.8.0/docs/changelog/0.1.1.rst +125 -0
  31. sksurrogate-0.8.0/docs/changelog/0.2.0.rst +29 -0
  32. sksurrogate-0.8.0/docs/changelog/0.3.0.rst +439 -0
  33. sksurrogate-0.8.0/docs/changelog/0.3.1-benchmarks-ensembles-and-calibration.rst +158 -0
  34. sksurrogate-0.8.0/docs/changelog/0.3.1-experiments-auth-and-fixes.rst +292 -0
  35. sksurrogate-0.8.0/docs/changelog/0.3.1-scoring-search-and-partitions.rst +437 -0
  36. sksurrogate-0.8.0/docs/changelog/0.3.1-time-series-and-forecasting.rst +458 -0
  37. sksurrogate-0.8.0/docs/changelog/0.3.1-web-ui-data-page-and-jobs.rst +378 -0
  38. sksurrogate-0.8.0/docs/changelog/0.4.0.rst +63 -0
  39. sksurrogate-0.8.0/docs/changelog/0.5.0.rst +48 -0
  40. sksurrogate-0.8.0/docs/changelog/0.6.0.rst +114 -0
  41. sksurrogate-0.8.0/docs/changelog/0.8.0.rst +104 -0
  42. sksurrogate-0.8.0/docs/changelog/index.rst +77 -0
  43. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/code.rst +3 -0
  44. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/conf.py +2 -2
  45. sksurrogate-0.8.0/docs/controlplane.rst +780 -0
  46. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/dataproc.rst +53 -0
  47. sksurrogate-0.8.0/docs/ensembles.rst +450 -0
  48. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/eoa.rst +7 -0
  49. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/experiment-design.rst +34 -1
  50. sksurrogate-0.8.0/docs/forecasting.rst +853 -0
  51. sksurrogate-0.8.0/docs/images/auth-settings.png +0 -0
  52. sksurrogate-0.8.0/docs/images/experiments-preflight.png +0 -0
  53. sksurrogate-0.8.0/docs/images/experiments-visual-searchspace.png +0 -0
  54. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/make_stability_contour.py +1 -1
  55. sksurrogate-0.8.0/docs/images/preprocessing-eda.png +0 -0
  56. sksurrogate-0.8.0/docs/images/preprocessing-flags.png +0 -0
  57. sksurrogate-0.8.0/docs/images/preprocessing-tier3.png +0 -0
  58. sksurrogate-0.8.0/docs/images/ui-ensembles.png +0 -0
  59. sksurrogate-0.8.0/docs/images/ui-evaluation-comparison.png +0 -0
  60. sksurrogate-0.8.0/docs/images/ui-explain-guarantees.png +0 -0
  61. sksurrogate-0.8.0/docs/images/ui-ignored-columns.png +0 -0
  62. sksurrogate-0.8.0/docs/images/ui-preprocessing.png +0 -0
  63. sksurrogate-0.8.0/docs/images/ui-registry.png +0 -0
  64. sksurrogate-0.8.0/docs/images/ui-serving.png +0 -0
  65. sksurrogate-0.8.0/docs/images/webui-backtest.png +0 -0
  66. sksurrogate-0.8.0/docs/images/webui-temporal-panel.png +0 -0
  67. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/index.rst +18 -6
  68. sksurrogate-0.8.0/docs/inference.rst +269 -0
  69. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/intro.rst +24 -4
  70. sksurrogate-0.8.0/docs/mcp-server.rst +281 -0
  71. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/mltrace.rst +91 -5
  72. sksurrogate-0.8.0/docs/model-comparison.rst +139 -0
  73. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/modelbundles.rst +134 -1
  74. sksurrogate-0.8.0/docs/monitoring.rst +471 -0
  75. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/notebooks.rst +4 -2
  76. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/release.rst +10 -0
  77. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/research-projects.rst +22 -5
  78. sksurrogate-0.8.0/docs/search-contract.rst +170 -0
  79. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/sensitivity.rst +56 -5
  80. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/surrogate.rst +99 -3
  81. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/telemetry.rst +26 -0
  82. sksurrogate-0.8.0/docs/ui-manual.rst +1435 -0
  83. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/walkthrough.rst +33 -7
  84. sksurrogate-0.8.0/docs/workflow.rst +114 -0
  85. sksurrogate-0.3.0/PKG-INFO → sksurrogate-0.8.0/readme.rst +139 -81
  86. sksurrogate-0.8.0/requirements-api.txt +10 -0
  87. sksurrogate-0.8.0/requirements-core.txt +17 -0
  88. sksurrogate-0.8.0/requirements-dev.txt +11 -0
  89. sksurrogate-0.8.0/requirements-extras.txt +22 -0
  90. sksurrogate-0.8.0/requirements.txt +22 -0
  91. sksurrogate-0.8.0/setup.py +185 -0
  92. sksurrogate-0.8.0/sksurrogate_mcp/__init__.py +51 -0
  93. sksurrogate-0.8.0/sksurrogate_mcp/openapi_ops.json +766 -0
  94. sksurrogate-0.8.0/sksurrogate_mcp/server.py +1656 -0
  95. sksurrogate-0.8.0/tests/conftest.py +34 -0
  96. sksurrogate-0.8.0/tests/test_acl.py +328 -0
  97. sksurrogate-0.8.0/tests/test_api_experiments.py +689 -0
  98. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_api_explanations.py +33 -4
  99. sksurrogate-0.8.0/tests/test_api_jobs.py +128 -0
  100. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_api_key_auth.py +12 -3
  101. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_api_logs.py +1 -1
  102. sksurrogate-0.8.0/tests/test_api_route_smoke.py +101 -0
  103. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_api_synthesis.py +105 -2
  104. sksurrogate-0.8.0/tests/test_artifact_schema.py +124 -0
  105. sksurrogate-0.8.0/tests/test_auth_users.py +523 -0
  106. sksurrogate-0.8.0/tests/test_backtest.py +622 -0
  107. sksurrogate-0.8.0/tests/test_baseline_mixed_types.py +146 -0
  108. sksurrogate-0.8.0/tests/test_benchmark_analysis.py +104 -0
  109. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_benchmark_archive_readers.py +1 -1
  110. sksurrogate-0.8.0/tests/test_benchmark_cost_model.py +66 -0
  111. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_benchmark_datasets.py +22 -0
  112. sksurrogate-0.8.0/tests/test_benchmark_stats.py +186 -0
  113. sksurrogate-0.8.0/tests/test_benchmark_synth.py +324 -0
  114. sksurrogate-0.8.0/tests/test_bundle_integrity_gate.py +88 -0
  115. sksurrogate-0.8.0/tests/test_compare.py +236 -0
  116. sksurrogate-0.8.0/tests/test_comparison.py +249 -0
  117. sksurrogate-0.8.0/tests/test_compute_settings.py +420 -0
  118. sksurrogate-0.8.0/tests/test_cspace_cli.py +87 -0
  119. sksurrogate-0.8.0/tests/test_cspace_pipelines.py +192 -0
  120. sksurrogate-0.8.0/tests/test_cspace_runner.py +99 -0
  121. sksurrogate-0.8.0/tests/test_cspace_space.py +120 -0
  122. sksurrogate-0.8.0/tests/test_dataset_registration_guards.py +78 -0
  123. sksurrogate-0.8.0/tests/test_datetime_features.py +222 -0
  124. sksurrogate-0.8.0/tests/test_design_endpoints.py +105 -0
  125. sksurrogate-0.8.0/tests/test_eda_diagnostics.py +219 -0
  126. sksurrogate-0.8.0/tests/test_eda_tier3.py +217 -0
  127. sksurrogate-0.8.0/tests/test_ensemble_endpoints.py +960 -0
  128. sksurrogate-0.8.0/tests/test_ensembling.py +1291 -0
  129. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_eoa_checkpoint.py +24 -0
  130. sksurrogate-0.8.0/tests/test_explanation_guarantees.py +213 -0
  131. sksurrogate-0.8.0/tests/test_forecast_dgps.py +70 -0
  132. sksurrogate-0.8.0/tests/test_forecast_features.py +418 -0
  133. sksurrogate-0.8.0/tests/test_forecast_inference.py +708 -0
  134. sksurrogate-0.8.0/tests/test_forecast_intervals.py +352 -0
  135. sksurrogate-0.8.0/tests/test_forecast_metrics.py +372 -0
  136. sksurrogate-0.8.0/tests/test_ignored_columns.py +238 -0
  137. sksurrogate-0.8.0/tests/test_job_control.py +455 -0
  138. sksurrogate-0.8.0/tests/test_layer_boundaries.py +89 -0
  139. sksurrogate-0.8.0/tests/test_leakage_guards.py +305 -0
  140. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_logging_telemetry.py +26 -4
  141. sksurrogate-0.8.0/tests/test_manifest.py +228 -0
  142. sksurrogate-0.8.0/tests/test_mcp_server.py +1251 -0
  143. sksurrogate-0.8.0/tests/test_mcp_snapshot_drift.py +125 -0
  144. sksurrogate-0.8.0/tests/test_mid_pipeline_sampler.py +68 -0
  145. sksurrogate-0.8.0/tests/test_mixed_type_experiments.py +336 -0
  146. sksurrogate-0.8.0/tests/test_naming_aliases.py +250 -0
  147. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_optimized_paths.py +329 -7
  148. sksurrogate-0.8.0/tests/test_optional_deps.py +239 -0
  149. sksurrogate-0.8.0/tests/test_partition_defaults.py +170 -0
  150. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_phase1_endpoints.py +119 -1
  151. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_phase2_endpoints.py +1 -1
  152. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_phase3_endpoints.py +55 -2
  153. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_phase4_endpoints.py +44 -6
  154. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_phase5_endpoints.py +8 -2
  155. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_phase6_endpoints.py +24 -4
  156. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_phase7_endpoints.py +5 -4
  157. sksurrogate-0.8.0/tests/test_prediction_download.py +216 -0
  158. sksurrogate-0.8.0/tests/test_preflight.py +93 -0
  159. sksurrogate-0.8.0/tests/test_preprocessing.py +630 -0
  160. sksurrogate-0.8.0/tests/test_preprocessing_temporal.py +263 -0
  161. sksurrogate-0.8.0/tests/test_problem_type.py +284 -0
  162. sksurrogate-0.8.0/tests/test_rate_limit.py +103 -0
  163. sksurrogate-0.8.0/tests/test_repo_layout.py +171 -0
  164. sksurrogate-0.8.0/tests/test_reports.py +660 -0
  165. sksurrogate-0.8.0/tests/test_reset.py +222 -0
  166. sksurrogate-0.8.0/tests/test_search_determinism.py +158 -0
  167. sksurrogate-0.8.0/tests/test_search_invariants.py +174 -0
  168. sksurrogate-0.8.0/tests/test_sensitivity_numeric.py +344 -0
  169. sksurrogate-0.8.0/tests/test_sensitivity_temporal.py +212 -0
  170. sksurrogate-0.8.0/tests/test_serving_endpoints.py +278 -0
  171. sksurrogate-0.8.0/tests/test_sklearn_compat.py +289 -0
  172. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_surrogate_diagnostics.py +55 -7
  173. sksurrogate-0.8.0/tests/test_synthetic_partition.py +100 -0
  174. sksurrogate-0.8.0/tests/test_target_edit.py +148 -0
  175. sksurrogate-0.8.0/tests/test_temporal_baseline_bundle.py +169 -0
  176. sksurrogate-0.8.0/tests/test_temporal_contract.py +675 -0
  177. sksurrogate-0.8.0/tests/test_temporal_ensembles.py +183 -0
  178. sksurrogate-0.8.0/tests/test_temporal_experiments.py +318 -0
  179. sksurrogate-0.8.0/tests/test_temporal_learning_curves.py +133 -0
  180. sksurrogate-0.8.0/tests/test_temporal_monitoring.py +150 -0
  181. sksurrogate-0.8.0/tests/test_upload_limits.py +70 -0
  182. sksurrogate-0.3.0/MANIFEST.in +0 -10
  183. sksurrogate-0.3.0/SKSurrogate/__init__.py +0 -124
  184. sksurrogate-0.3.0/SKSurrogate/inference.py +0 -228
  185. sksurrogate-0.3.0/SKSurrogate.egg-info/requires.txt +0 -23
  186. sksurrogate-0.3.0/SKSurrogate.egg-info/top_level.txt +0 -1
  187. sksurrogate-0.3.0/docs/controlplane.rst +0 -225
  188. sksurrogate-0.3.0/docs/images/ui-experiments.png +0 -0
  189. sksurrogate-0.3.0/docs/images/ui-registry.png +0 -0
  190. sksurrogate-0.3.0/docs/inference.rst +0 -121
  191. sksurrogate-0.3.0/docs/monitoring.rst +0 -243
  192. sksurrogate-0.3.0/docs/phase10.rst +0 -122
  193. sksurrogate-0.3.0/docs/phase9.rst +0 -304
  194. sksurrogate-0.3.0/docs/ui-manual.rst +0 -685
  195. sksurrogate-0.3.0/readme.rst +0 -248
  196. sksurrogate-0.3.0/requirements.txt +0 -23
  197. sksurrogate-0.3.0/setup.py +0 -97
  198. sksurrogate-0.3.0/tests/test_api_experiments.py +0 -355
  199. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/LICENSE +0 -0
  200. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/NpyProximation.py +0 -0
  201. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/_logutil.py +0 -0
  202. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/ci.py +0 -0
  203. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/deployment.py +0 -0
  204. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/design.py +0 -0
  205. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/execution.py +0 -0
  206. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/retraining.py +0 -0
  207. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate/synthdat.py +0 -0
  208. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/SKSurrogate.egg-info/dependency_links.txt +0 -0
  209. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/Makefile +0 -0
  210. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/hilbert.rst +0 -0
  211. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best1.png +0 -0
  212. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best10.png +0 -0
  213. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best11.png +0 -0
  214. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best12.png +0 -0
  215. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best2.png +0 -0
  216. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best3.png +0 -0
  217. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best4.png +0 -0
  218. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best5.png +0 -0
  219. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best6.png +0 -0
  220. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best7.png +0 -0
  221. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best8.png +0 -0
  222. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/best9.png +0 -0
  223. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/correlations.png +0 -0
  224. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/funnel.png +0 -0
  225. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/lego.png +0 -0
  226. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/points.png +0 -0
  227. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/points_fit_optm.png +0 -0
  228. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/polyreg.png +0 -0
  229. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/stability_contour.png +0 -0
  230. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-bundles.png +0 -0
  231. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-dashboard.png +0 -0
  232. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-datasets.png +0 -0
  233. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-evaluation.png +0 -0
  234. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-explain-explanations.png +0 -0
  235. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-features.png +0 -0
  236. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-inference.png +0 -0
  237. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-jobs.png +0 -0
  238. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-logs.png +0 -0
  239. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-monitoring.png +0 -0
  240. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-project-synthesis.png +0 -0
  241. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-quality-gates.png +0 -0
  242. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-retraining.png +0 -0
  243. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/ui-settings.png +0 -0
  244. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/weights.png +0 -0
  245. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-01-dashboard.png +0 -0
  246. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-02-datasets-inspect.png +0 -0
  247. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-03-datasets-validate.png +0 -0
  248. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-04-datasets-registered.png +0 -0
  249. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-05-features-sensitivity.png +0 -0
  250. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-06-features-ranking.png +0 -0
  251. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-07-experiments-quickstart.png +0 -0
  252. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-08-experiments-result.png +0 -0
  253. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-09-bundles-train.png +0 -0
  254. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-10-bundles-list.png +0 -0
  255. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-11-evaluation.png +0 -0
  256. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-12-explain-importance.png +0 -0
  257. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-13-explain-intervals.png +0 -0
  258. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-14-quality-gate.png +0 -0
  259. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-15-registry.png +0 -0
  260. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-16-inference.png +0 -0
  261. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-17-monitoring.png +0 -0
  262. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-18-monitoring-drift.png +0 -0
  263. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-19-projects.png +0 -0
  264. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/images/wt-20-design.png +0 -0
  265. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/make.bat +0 -0
  266. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/docs/opd.rst +0 -0
  267. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/benchmark_phase10.py +0 -0
  268. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/example01.py +0 -0
  269. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/example02.py +0 -0
  270. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/example03_mltrace.py +0 -0
  271. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/example04_end_to_end.py +0 -0
  272. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/example05_full_classification.py +0 -0
  273. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/example06_full_regression.py +0 -0
  274. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/examples/smoke_aml.py +0 -0
  275. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/setup.cfg +0 -0
  276. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/api_snapshot.py +0 -0
  277. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_api_safety.py +0 -0
  278. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_api_simplification.py +0 -0
  279. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_benchmark_design_readiness.py +0 -0
  280. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_benchmark_dgps.py +0 -0
  281. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_benchmark_methods.py +0 -0
  282. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_eoa_aliases.py +0 -0
  283. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_projects_endpoints.py +0 -0
  284. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_quantile_evaluation.py +0 -0
  285. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_real_noise_gp_probe.py +0 -0
  286. {sksurrogate-0.3.0 → sksurrogate-0.8.0}/tests/test_time_series_evaluation.py +0 -0
@@ -0,0 +1,18 @@
1
+ include readme.rst
2
+ include LICENSE
3
+ include requirements.txt
4
+ # requirements.txt is an umbrella that -r's these; pip resolves the paths
5
+ # relative to it, so an sdist without them cannot be installed from
6
+ # requirements.txt.
7
+ include requirements-core.txt
8
+ include requirements-extras.txt
9
+ include requirements-api.txt
10
+ include requirements-dev.txt
11
+ include docs/*.rst
12
+ recursive-include docs/changelog *.rst
13
+ include docs/conf.py
14
+ include docs/Makefile
15
+ include docs/make.bat
16
+ include docs/images/*
17
+ recursive-include examples *.py
18
+ recursive-include tests *.py conftest.py
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SKSurrogate
3
- Version: 0.3.0
4
- Summary: Lightweight, maintained, scikit-learn-native surrogate tuner for hyperparameter and AutoML pipeline search; a drop-in replacement for BayesSearchCV.
3
+ Version: 0.8.0
4
+ Summary: scikit-learn-native surrogate tuner for hyperparameter and AutoML pipeline search; a drop-in replacement for BayesSearchCV, with a small core install and opt-in extras.
5
5
  Home-page: https://github.com/mghasemi/sksurrogate
6
6
  Author: Mehdi Ghasemi
7
7
  Author-email: mehdi.ghasemi@gmail.com
@@ -26,24 +26,77 @@ License-File: LICENSE
26
26
  Requires-Dist: numpy>=1.22
27
27
  Requires-Dist: scipy>=1.10
28
28
  Requires-Dist: pandas
29
- Requires-Dist: matplotlib
30
29
  Requires-Dist: scikit-learn>=1.5
31
- Requires-Dist: lightgbm>=4.6
32
- Requires-Dist: xgboost>=2.1
33
- Requires-Dist: SALib
34
- Requires-Dist: imbalanced-learn
35
30
  Requires-Dist: joblib>=1.2
36
- Requires-Dist: eli5
37
- Requires-Dist: skrebate
38
- Requires-Dist: tqdm>=4.66.3
39
31
  Requires-Dist: peewee
40
- Requires-Dist: category_encoders
41
- Provides-Extra: test
42
- Requires-Dist: pytest; extra == "test"
43
- Requires-Dist: pygments; extra == "test"
32
+ Requires-Dist: tqdm>=4.66.3
33
+ Provides-Extra: lightgbm
34
+ Requires-Dist: lightgbm>=4.6; extra == "lightgbm"
35
+ Provides-Extra: xgboost
36
+ Requires-Dist: xgboost>=2.1; extra == "xgboost"
37
+ Provides-Extra: rgf
38
+ Requires-Dist: rgf-python>=3.12.0; extra == "rgf"
39
+ Provides-Extra: gbm
40
+ Requires-Dist: lightgbm>=4.6; extra == "gbm"
41
+ Requires-Dist: xgboost>=2.1; extra == "gbm"
42
+ Provides-Extra: estimators
43
+ Requires-Dist: lightgbm>=4.6; extra == "estimators"
44
+ Requires-Dist: xgboost>=2.1; extra == "estimators"
45
+ Requires-Dist: rgf-python>=3.12.0; extra == "estimators"
46
+ Requires-Dist: category-encoders; extra == "estimators"
47
+ Provides-Extra: sensitivity
48
+ Requires-Dist: SALib; extra == "sensitivity"
49
+ Provides-Extra: explain
50
+ Requires-Dist: eli5; extra == "explain"
51
+ Requires-Dist: skrebate; extra == "explain"
52
+ Provides-Extra: imbalance
53
+ Requires-Dist: imbalanced-learn; extra == "imbalance"
54
+ Provides-Extra: categorical
55
+ Requires-Dist: category-encoders; extra == "categorical"
56
+ Provides-Extra: plots
57
+ Requires-Dist: matplotlib; extra == "plots"
58
+ Provides-Extra: dask
59
+ Requires-Dist: dask[distributed]>=2024.1; extra == "dask"
60
+ Provides-Extra: api
61
+ Requires-Dist: fastapi>0.109; extra == "api"
62
+ Requires-Dist: uvicorn[standard]>=0.11.7; extra == "api"
63
+ Requires-Dist: python-multipart>=0.0.31; extra == "api"
64
+ Provides-Extra: ui
65
+ Requires-Dist: fastapi>0.109; extra == "ui"
66
+ Requires-Dist: uvicorn[standard]>=0.11.7; extra == "ui"
67
+ Requires-Dist: python-multipart>=0.0.31; extra == "ui"
44
68
  Provides-Extra: benchmark
45
69
  Requires-Dist: openml<0.16,>=0.15; extra == "benchmark"
46
70
  Requires-Dist: optuna; extra == "benchmark"
71
+ Requires-Dist: scikit-posthocs>=0.9; extra == "benchmark"
72
+ Provides-Extra: automl
73
+ Requires-Dist: autogluon.tabular; extra == "automl"
74
+ Requires-Dist: flaml[automl]; extra == "automl"
75
+ Provides-Extra: forecasting
76
+ Provides-Extra: mcp
77
+ Requires-Dist: httpx>=0.27; extra == "mcp"
78
+ Requires-Dist: mcp<3,>=2.3; extra == "mcp"
79
+ Provides-Extra: test
80
+ Requires-Dist: pytest; extra == "test"
81
+ Requires-Dist: pygments; extra == "test"
82
+ Requires-Dist: hypothesis>=6.100; extra == "test"
83
+ Provides-Extra: all
84
+ Requires-Dist: lightgbm>=4.6; extra == "all"
85
+ Requires-Dist: xgboost>=2.1; extra == "all"
86
+ Requires-Dist: rgf-python>=3.12.0; extra == "all"
87
+ Requires-Dist: category-encoders; extra == "all"
88
+ Requires-Dist: SALib; extra == "all"
89
+ Requires-Dist: eli5; extra == "all"
90
+ Requires-Dist: skrebate; extra == "all"
91
+ Requires-Dist: imbalanced-learn; extra == "all"
92
+ Requires-Dist: matplotlib; extra == "all"
93
+ Requires-Dist: dask[distributed]>=2024.1; extra == "all"
94
+ Requires-Dist: fastapi>0.109; extra == "all"
95
+ Requires-Dist: uvicorn[standard]>=0.11.7; extra == "all"
96
+ Requires-Dist: python-multipart>=0.0.31; extra == "all"
97
+ Requires-Dist: openml<0.16,>=0.15; extra == "all"
98
+ Requires-Dist: optuna; extra == "all"
99
+ Requires-Dist: scikit-posthocs>=0.9; extra == "all"
47
100
  Dynamic: author
48
101
  Dynamic: author-email
49
102
  Dynamic: classifier
@@ -111,16 +164,30 @@ Once a run has finished, ``SKSurrogate`` explains *what* the fitted model depend
111
164
  - **Model explanations**: permutation importance, partial dependence, and accumulated local
112
165
  effects for a stored model bundle show which features drive its predictions globally, while
113
166
  an exact row-level explanation reconstructs one prediction from its baseline as ordered
114
- feature contributions. Available through the control plane (``explain``, ``ale`` and
115
- ``explain/row`` endpoints) and in the web UI; see the
116
- `control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_ and the
117
- `scientific workflow guide <https://sksurrogate.readthedocs.io/en/latest/mltrace.html>`_.
167
+ feature contributions. Every response carries the explained quantity, the model's
168
+ provenance, a checked reconstruction status, an out-of-distribution flag for rows, and
169
+ grouped/stability-checked importance for correlated features. Available through the
170
+ control plane (``explain``, ``ale`` and ``explain/row`` endpoints) and in the web UI; see
171
+ the `control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_
172
+ and the `scientific workflow guide <https://sksurrogate.readthedocs.io/en/latest/mltrace.html>`_.
173
+ - **Paired model comparison**: refits stored bundles on one shared fold list and reports
174
+ oriented deltas with percentile bootstrap intervals, Holm-adjusted Wilcoxon p-values,
175
+ Cliff's ordinal effect size, a score/complexity/cost Pareto front and calibration — with
176
+ the exploratory-selection caveat stated in the payload. See the
177
+ `model-comparison guide <https://sksurrogate.readthedocs.io/en/latest/model-comparison.html>`_.
118
178
  - **Sensitivity analysis**: Sobol, Morris, and moment-independent δ indices quantify which
119
179
  inputs dominate output variance — useful for pruning expensive models or diagnosing a tuned
120
180
  pipeline. See the `sensitivity analysis guide <https://sksurrogate.readthedocs.io/en/latest/sensitivity.html>`_.
181
+ - **Data diagnostics before a run**: the Data page profiles a registered partition —
182
+ distributions, target composition, target/feature associations, collinearity, identifier
183
+ and leakage flags, Little's MCAR, Anderson–Darling normality, bootstrap effect sizes,
184
+ half-sample stability, partition-to-partition drift — and exports the same tables as a
185
+ Markdown report. The Experiments page repeats the actionable findings as advisory
186
+ pre-flight checks, so a score is never read without its data caveats. See the
187
+ `monitoring guide <https://sksurrogate.readthedocs.io/en/latest/monitoring.html>`_.
121
188
 
122
- Both are descriptive, model-attributive analyses: they quantify how the learned response depends
123
- on its inputs, not causal effects.
189
+ All of these are descriptive analyses: the model-attribution views show how the learned response
190
+ depends on its inputs, and the data diagnostics describe the partition — none of them is a causal claim.
124
191
 
125
192
  Observe what a run did
126
193
  ----------------------
@@ -134,6 +201,36 @@ tags, a ``callbacks`` hook that delivers one event per evaluated candidate, and
134
201
  the `log endpoints <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_
135
202
  and the `UI manual <https://sksurrogate.readthedocs.io/en/latest/ui-manual.html>`_.
136
203
 
204
+ Serve what you built
205
+ --------------------
206
+ A finished run leaves a portable ``ModelBundle`` behind: a schema-checked input contract, a
207
+ ``prediction``/``model_version``/``request_id`` output frame, and atomic CSV writes — scoreable
208
+ in batch through ``SKSurrogate.predict_batch`` or the ``sksurrogate-batch-predict`` CLI, or
209
+ online through the dependency-free ``SKSurrogate.serve`` WSGI adapter. In the control plane you
210
+ declare which model a task serves: a **serving pin** naming either an exact model version
211
+ (frozen, later promotions leave it alone) or a registry alias (follows promote/rollback), after
212
+ which clients score through ``POST /api/serving/{task}/predict`` without naming a model at all
213
+ (409 while nothing is served). The web UI states the same declaration: a
214
+ ``Serving <version> · <task>`` pill in the top bar while a model is served, and a **Serving**
215
+ card on the Inference page that sets, replaces and stops it. See the
216
+ `inference guide <https://sksurrogate.readthedocs.io/en/latest/inference.html>`_ and the
217
+ `control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_.
218
+
219
+ Trained bundles can also be combined into one model with scikit-learn's own meta-estimators —
220
+ voting, averaging, stacking, bagging and boosting over a selection of models — from the
221
+ library (``SKSurrogate.ensembling``), the ``/api/ensembles`` routes or the web UI's
222
+ **Ensembles** page. The result is an ordinary bundle, so the same evaluation, registry and
223
+ serving paths apply to it; its reported scores carry the caveat that member selection was made
224
+ on the same data.
225
+
226
+ A combination can then be refined: every member's probabilities can be **calibrated**
227
+ (Platt/isotonic, with the Brier score and log loss recorded before and after on identical
228
+ folds), the member **weights can be fitted** on out-of-fold member output (a convex simplex
229
+ least-squares, a random search over the task's metric, or Caruana greedy selection), and the
230
+ whole procedure can be re-priced by an **honest nested estimate** that refits the members, the
231
+ calibration and the weight search inside every outer fold. See the
232
+ `combining-models guide <https://sksurrogate.readthedocs.io/en/latest/ensembles.html>`_.
233
+
137
234
  Quick start
138
235
  -----------
139
236
  ``SurrogateRandomCV`` is a drop-in for ``RandomizedSearchCV``; ranges can be written as plain
@@ -172,6 +269,18 @@ For the API and UI, see the
172
269
  Run the web UI and API with Docker
173
270
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
174
271
 
272
+ A prebuilt image of the current release is published on Docker Hub as
273
+ ``mghasemi/sksurrogate`` (`overview <https://hub.docker.com/r/mghasemi/sksurrogate/>`_)::
274
+
275
+ docker run --rm -p 8013:8013 -v sksurrogate-data:/data mghasemi/sksurrogate:latest # UI and API on http://localhost:8013
276
+
277
+ Datasets, experiments, logs and model bundles live in the named volume mounted at
278
+ ``/data``; the image ships no user data. On first use ``docker run`` pulls the image
279
+ automatically; to upgrade an existing deployment to a new release, re-pull first —
280
+ ``run`` will not refresh a cached copy (or pin a version tag such as ``0.8.0``)::
281
+
282
+ docker pull mghasemi/sksurrogate:latest
283
+
175
284
  From a source checkout (Docker with Compose required)::
176
285
 
177
286
  docker compose --profile prod up --build -d # UI and API on http://localhost:8013
@@ -180,8 +289,15 @@ From a source checkout (Docker with Compose required)::
180
289
  Set ``SKSURROGATE_PORT`` to change the port and ``SKSURROGATE_API_KEY`` to
181
290
  require an API key; for any published port also set
182
291
  ``SKSURROGATE_REQUIRE_AUTH=1`` so the container refuses to start without a key.
183
- Data persists in the ``sksurrogate-data`` volume. See the control-plane guide
184
- for details.
292
+ With ``SKSURROGATE_REQUIRE_AUTH`` enabled the UI asks for a username and
293
+ password instead, and every dataset, bundle and project belongs to an account
294
+ that can share it with others; bootstrap the first administrator with
295
+ ``SKSURROGATE_ADMIN_USERNAME``/``SKSURROGATE_ADMIN_PASSWORD`` or
296
+ ``python -m api.auth_cli create-admin``, then create per-user API keys in
297
+ **Settings → API keys**. Data persists in the ``sksurrogate-data`` volume. See
298
+ the `control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_
299
+ and the `authentication and sharing chapter
300
+ <https://sksurrogate.readthedocs.io/en/latest/auth-and-sharing.html>`_ for details.
185
301
 
186
302
  Benchmarks
187
303
  ----------
@@ -247,24 +363,80 @@ or from source (development)::
247
363
 
248
364
  pip install git+https://github.com/mghasemi/sksurrogate.git
249
365
 
366
+ The base install is intentionally small: it pulls seven packages
367
+ (``numpy``, ``scipy``, ``pandas``, ``scikit-learn``, ``joblib``, ``peewee``,
368
+ ``tqdm``) and nothing compiled beyond scikit-learn. Measured on Python 3.12,
369
+ a cold resolveless install takes ~7 s / 250 MB of site-packages, and
370
+ ``import SKSurrogate`` takes ~0.55 s.
371
+
250
372
  Optional extras
251
373
  ---------------
252
- The package also ships a web UI, a control-plane API, and a run tracker. These are optional
253
- add-ons — the optimizer above is the primary deliverable, and the extras are kept deliberately
254
- out of the headline.
255
-
256
- - **Web UI and control-plane API**: documented in the
257
- `Web UI and Control-Plane API guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_.
258
- - **Step-by-step UI manual**: `screenshots and example CSV files <https://sksurrogate.readthedocs.io/en/latest/ui-manual.html>`_.
374
+ Every other backend is imported lazily and installed through an extra. Naming a
375
+ component whose backend is absent raises an error that names the extra::
376
+
377
+ SKSurrogate needs the optional package 'xgboost' for the XGBoost estimator, but it is not installed.
378
+ Install it with: pip install "sksurrogate[xgboost]"
379
+
380
+ .. list-table::
381
+ :header-rows: 1
382
+
383
+ * - Extra
384
+ - Adds
385
+ - Needed for
386
+ * - ``[lightgbm]`` / ``[xgboost]`` / ``[rgf]``
387
+ - one boosting backend each
388
+ - the corresponding catalog rows
389
+ * - ``[gbm]``
390
+ - lightgbm + xgboost
391
+ - both tree-boosting families
392
+ * - ``[estimators]``
393
+ - gbm + rgf + category-encoders
394
+ - the full estimator library
395
+ * - ``[sensitivity]``
396
+ - SALib
397
+ - ``SensAprx`` (Sobol / Morris / delta)
398
+ * - ``[explain]``
399
+ - eli5, skrebate
400
+ - permutation-importance and ReliefF/SURF feature weights
401
+ * - ``[imbalance]``
402
+ - imbalanced-learn
403
+ - sampler steps in a pipeline
404
+ * - ``[categorical]``
405
+ - category-encoders
406
+ - ``cat_cols`` encoding
407
+ * - ``[plots]``
408
+ - matplotlib
409
+ - diagnostic plots
410
+ * - ``[api]`` / ``[ui]``
411
+ - FastAPI, uvicorn, python-multipart
412
+ - the control-plane API and web UI (see the
413
+ `guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_)
414
+ * - ``[dask]``
415
+ - dask[distributed]
416
+ - the distributed execution backend
417
+ * - ``[all]``
418
+ - every extra above
419
+ - CI, Docker, "just make everything work" (~938 MB)
420
+ * - ``[mcp]``
421
+ - httpx, the MCP Python SDK
422
+ - the agent-facing MCP server (console script ``sksurrogate-mcp``). Kept
423
+ out of ``[all]`` so container images stay SDK-free; see the
424
+ `MCP chapter <https://sksurrogate.readthedocs.io/en/latest/mcp-server.html>`_
425
+
426
+ ``[automl]`` (AutoGluon + PyTorch) is kept separate on purpose: it is multi-GB
427
+ and only used by the benchmark studies.
259
428
 
260
429
  Dependencies
261
430
  ----------------
262
- ``SKSurrogate`` heavily depends on `NumPy <http://www.numpy.org/>`_,
431
+ ``SKSurrogate`` depends on `NumPy <http://www.numpy.org/>`_,
263
432
  `scipy <https://www.scipy.org/>`_, and `scikit-learn <https://scikit-learn.org/stable/>`_,
264
- for its main functionalities. Other dependencies include `pandas <https://pandas.pydata.org/>`_,
265
- `matplotlib <https://matplotlib.org/>`_, `SALib <https://github.com/SALib/SALib>`_,
266
- `peewee <https://github.com/coleifer/peewee>`_, and
267
- `tqdm <https://github.com/tqdm/tqdm>`_.
433
+ for its main functionalities, plus `pandas <https://pandas.pydata.org/>`_,
434
+ `joblib <https://joblib.readthedocs.io/>`_, `peewee <https://github.com/coleifer/peewee>`_
435
+ (the run tracker's SQLite ORM) and `tqdm <https://github.com/tqdm/tqdm>`_.
436
+ Everything else — `matplotlib <https://matplotlib.org/>`_,
437
+ `SALib <https://github.com/SALib/SALib>`_, LightGBM, XGBoost, RGF, eli5,
438
+ skrebate, imbalanced-learn, category-encoders — is an optional extra, imported
439
+ only by the code path that uses it.
268
440
 
269
441
  Documentation
270
442
  ----------------