ebaml 0.4.2__tar.gz → 0.4.4__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 (178) hide show
  1. {ebaml-0.4.2 → ebaml-0.4.4}/PKG-INFO +5 -5
  2. {ebaml-0.4.2 → ebaml-0.4.4}/README.md +4 -4
  3. {ebaml-0.4.2 → ebaml-0.4.4}/pyproject.toml +11 -2
  4. {ebaml-0.4.2 → ebaml-0.4.4}/pyproject.toml.orig +10 -2
  5. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/.baml-generator-output.json +4 -4
  6. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/__init__.py +6 -0
  7. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/__init__.pyi +6 -0
  8. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/_baml_sources.py +3 -3
  9. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/_inlinedbaml.py +1 -1
  10. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/__init__.py +7 -1
  11. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/ebm_graph.py +1 -1
  12. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/descriptors.py +3 -2
  13. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/local/audience.py +49 -14
  14. ebaml-0.4.4/src/ebaml/local/decisions.py +207 -0
  15. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/local/fact_text.py +10 -3
  16. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/local/facts.py +277 -71
  17. ebaml-0.4.4/src/ebaml/local/local_kinds.py +211 -0
  18. ebaml-0.4.4/src/ebaml/local/reason_search.py +169 -0
  19. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/mcp/server.py +24 -6
  20. {ebaml-0.4.2 → ebaml-0.4.4}/LICENSE +0 -0
  21. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/.baml-generator-output-root +0 -0
  22. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/.gitignore +0 -0
  23. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/_function_registry.py +0 -0
  24. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/_invocation_types.py +0 -0
  25. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/_invocation_types.pyi +0 -0
  26. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/_typemap.py +0 -0
  27. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/__init__.py +0 -0
  28. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/__init__.pyi +0 -0
  29. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/clients/__init__.py +0 -0
  30. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/clients/__init__.pyi +0 -0
  31. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/content/__init__.py +0 -0
  32. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/content/__init__.pyi +0 -0
  33. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/errors/__init__.py +0 -0
  34. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/errors/__init__.pyi +0 -0
  35. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/events/__init__.py +0 -0
  36. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/events/__init__.pyi +0 -0
  37. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/internal/__init__.py +0 -0
  38. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/internal/__init__.pyi +0 -0
  39. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/mcp/__init__.py +0 -0
  40. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/mcp/__init__.pyi +0 -0
  41. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/stream/__init__.py +0 -0
  42. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/stream/__init__.pyi +0 -0
  43. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/tools/__init__.py +0 -0
  44. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/tools/__init__.pyi +0 -0
  45. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/wire/__init__.py +0 -0
  46. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/ai/wire/__init__.pyi +0 -0
  47. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/__init__.py +0 -0
  48. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/__init__.pyi +0 -0
  49. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/crypto/__init__.py +0 -0
  50. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/crypto/__init__.pyi +0 -0
  51. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/csv/__init__.py +0 -0
  52. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/csv/__init__.pyi +0 -0
  53. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/env/__init__.py +0 -0
  54. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/env/__init__.pyi +0 -0
  55. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/errors/__init__.py +0 -0
  56. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/errors/__init__.pyi +0 -0
  57. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/fs/__init__.py +0 -0
  58. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/fs/__init__.pyi +0 -0
  59. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/future/__init__.py +0 -0
  60. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/future/__init__.pyi +0 -0
  61. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/glob/__init__.py +0 -0
  62. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/glob/__init__.pyi +0 -0
  63. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/hash/__init__.py +0 -0
  64. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/hash/__init__.pyi +0 -0
  65. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/host/__init__.py +0 -0
  66. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/host/__init__.pyi +0 -0
  67. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/http/__init__.py +0 -0
  68. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/http/__init__.pyi +0 -0
  69. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/io/__init__.py +0 -0
  70. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/io/__init__.pyi +0 -0
  71. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/iter/__init__.py +0 -0
  72. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/iter/__init__.pyi +0 -0
  73. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/json/__init__.py +0 -0
  74. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/json/__init__.pyi +0 -0
  75. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/media/__init__.py +0 -0
  76. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/media/__init__.pyi +0 -0
  77. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/net/__init__.py +0 -0
  78. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/net/__init__.pyi +0 -0
  79. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/ops/__init__.py +0 -0
  80. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/ops/__init__.pyi +0 -0
  81. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/panics/__init__.py +0 -0
  82. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/panics/__init__.pyi +0 -0
  83. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/random/__init__.py +0 -0
  84. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/random/__init__.pyi +0 -0
  85. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/regex/__init__.py +0 -0
  86. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/regex/__init__.pyi +0 -0
  87. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/sap/__init__.py +0 -0
  88. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/sap/__init__.pyi +0 -0
  89. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/spawn/__init__.py +0 -0
  90. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/spawn/__init__.pyi +0 -0
  91. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/sys/__init__.py +0 -0
  92. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/sys/__init__.pyi +0 -0
  93. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/time/__init__.py +0 -0
  94. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/time/__init__.pyi +0 -0
  95. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/toml/__init__.py +0 -0
  96. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/toml/__init__.pyi +0 -0
  97. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/ws/__init__.py +0 -0
  98. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/ws/__init__.pyi +0 -0
  99. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/yaml/__init__.py +0 -0
  100. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/baml/yaml/__init__.pyi +0 -0
  101. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/experimental/__init__.py +0 -0
  102. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/experimental/__init__.pyi +0 -0
  103. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/py.typed +0 -0
  104. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/__init__.py +0 -0
  105. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/__init__.pyi +0 -0
  106. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/class_/__init__.py +0 -0
  107. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/class_/__init__.pyi +0 -0
  108. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/enum/__init__.py +0 -0
  109. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/enum/__init__.pyi +0 -0
  110. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/errors/__init__.py +0 -0
  111. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/errors/__init__.pyi +0 -0
  112. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/function/__init__.py +0 -0
  113. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/function/__init__.pyi +0 -0
  114. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/interface/__init__.py +0 -0
  115. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/reflect/interface/__init__.pyi +0 -0
  116. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/__init__.py +0 -0
  117. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/__init__.pyi +0 -0
  118. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/anthropic/__init__.py +0 -0
  119. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/anthropic/__init__.pyi +0 -0
  120. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/anthropic/internal/__init__.py +0 -0
  121. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/anthropic/internal/__init__.pyi +0 -0
  122. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/assert_/__init__.py +0 -0
  123. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/assert_/__init__.pyi +0 -0
  124. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/aws/__init__.py +0 -0
  125. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/aws/__init__.pyi +0 -0
  126. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/aws/internal/__init__.py +0 -0
  127. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/aws/internal/__init__.pyi +0 -0
  128. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/claude_code/__init__.py +0 -0
  129. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/claude_code/__init__.pyi +0 -0
  130. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/claude_code/internal/__init__.py +0 -0
  131. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/claude_code/internal/__init__.pyi +0 -0
  132. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/google/__init__.py +0 -0
  133. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/google/__init__.pyi +0 -0
  134. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/google/internal/__init__.py +0 -0
  135. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/google/internal/__init__.pyi +0 -0
  136. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/openai/__init__.py +0 -0
  137. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/openai/__init__.pyi +0 -0
  138. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/openai/internal/__init__.py +0 -0
  139. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/openai/internal/__init__.pyi +0 -0
  140. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/openai/internal/decisions/__init__.py +0 -0
  141. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/openai/internal/decisions/__init__.pyi +0 -0
  142. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/testing/__init__.py +0 -0
  143. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/testing/__init__.pyi +0 -0
  144. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/trace/__init__.py +0 -0
  145. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/trace/__init__.pyi +0 -0
  146. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/typesafeai/__init__.py +0 -0
  147. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/typesafeai/__init__.pyi +0 -0
  148. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/typesafeai/internal/__init__.py +0 -0
  149. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/typesafeai/internal/__init__.pyi +0 -0
  150. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/vercel/__init__.py +0 -0
  151. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/vercel/__init__.pyi +0 -0
  152. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/vercel/internal/__init__.py +0 -0
  153. {ebaml-0.4.2 → ebaml-0.4.4}/src/baml_sdk/vendor/vercel/internal/__init__.pyi +0 -0
  154. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/benchmark.py +0 -0
  155. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/core/__init__.py +0 -0
  156. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/core/custom_types.py +0 -0
  157. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/core/exceptions.py +0 -0
  158. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/__init__.py +0 -0
  159. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/graph_text.py +0 -0
  160. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/model_kinds.py +0 -0
  161. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/request_text.py +0 -0
  162. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/terms.py +0 -0
  163. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/token_budget.py +0 -0
  164. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/graphs/token_weights.py +0 -0
  165. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/__init__.py +0 -0
  166. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/options.py +0 -0
  167. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/provider_errors.py +0 -0
  168. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/retry.py +0 -0
  169. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/sdk_setup.py +0 -0
  170. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/token_learning.py +0 -0
  171. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/llm/token_weights.json +0 -0
  172. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/local/__init__.py +0 -0
  173. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/mcp/__init__.py +0 -0
  174. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/mcp/explain_tools.py +0 -0
  175. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/mcp/llm_tools.py +0 -0
  176. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/mcp/model_store.py +0 -0
  177. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/mcp/read_tools.py +0 -0
  178. {ebaml-0.4.2 → ebaml-0.4.4}/src/ebaml/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ebaml
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: BAML for Explainable Boosting Machines: talk to your EBM.
5
5
  Keywords: baml,llm,explainable-ai,explainable-boosting-machine,interpretml
6
6
  Author: Johnny Godoy
@@ -58,14 +58,14 @@ LLM calls go through [OpenRouter](https://openrouter.ai)'s free router (`openrou
58
58
  | Graph descriptions (`describe_graph`) | ✅ | ✅ | ✅ | ⚠️ |
59
59
  | Model summary (`describe_ebm`) | ✅ | ✅ | ✅ | ⚠️ |
60
60
  | Graph text (`EBMGraph`) | ✅ | ✅ | ✅ | ⚠️ |
61
- | Local explanations (`explain_instance`) | ✅ | ❌ | ❌ | ❌ |
61
+ | Local explanations (`explain_instance`) | ✅ | ✅ | ❌ | ❌ |
62
62
  | MCP server (`ebaml-mcp`) | ✅ | ✅ | ✅ | ⚠️ |
63
63
 
64
64
  ✅ supported. ⚠️ partly supported: the main effects are described, and the interaction terms are skipped.
65
65
  `describe_graph` and `describe_ebm` log an `interactions_skipped` warning that names them. ❌ not supported yet. Full support is on the
66
66
  [roadmap](https://github.com/johnny-godoy/EBaMl/blob/main/ROADMAP.md).
67
67
  <!-- --8<-- [end:supported-models] -->
68
- The MCP server reads every kind of model. Its explain tool works for binary classifiers only.
68
+ The MCP server reads every kind of model. Its explain tool works for binary classifiers and regressors.
69
69
  ## Setup
70
70
 
71
71
  <!-- --8<-- [start:setup] -->
@@ -232,7 +232,7 @@ The facts are computed exactly from the scores and confidence intervals of the E
232
232
  them in words. They are the three queries of [arXiv:2010.12265](https://arxiv.org/abs/2010.12265): minimum change
233
233
  required, minimum sufficient reason and count completions. `audience="layperson"` (default) gives no model numbers;
234
234
  `audience="data_scientist"` quotes scores, probabilities and confidence intervals. Subclass `ebaml.Audience` to add a
235
- reader with its own rules. Pass `language="French"` (any language name) to get the explanations in that language. It supports binary classifiers
235
+ reader with its own rules. Pass `language="French"` (any language name) to get the explanations in that language. It supports binary classifiers and regressors
236
236
  without interactions, and `explanation.facts` holds the numbers behind the text. The "Local explanations" page of the documentation explains what each explanation means, the options and the limits,
237
237
  and `notebooks/local_explanations.py` walks through them on the Titanic data.
238
238
 
@@ -247,7 +247,7 @@ of `ebaml` apart from the errors of other code. Each error for a bad value also
247
247
  | `InvalidOptionError` | yes | An option is not one of its valid values, for example an unknown `Normalization`. |
248
248
  | `OptionRangeError` | yes | A number option is outside its range, for example `confidence_level=1`. |
249
249
  | `InvalidInstanceError` | yes | The instance to explain lacks a value, or has a category that the EBM did not see. |
250
- | `UnsupportedModelError` | yes | A local explanation gets an EBM with interactions, or one that is not a binary classifier. A graph gets `classes`, and the model has one output. `model_kind` gets an EBM that is not fitted. |
250
+ | `UnsupportedModelError` | yes | A local explanation gets an EBM with interactions, or one that is not a binary classifier or a regressor. A graph gets `classes`, and the model has one output. `model_kind` gets an EBM that is not fitted. |
251
251
  | `GraphTextError` | yes | `EBMGraph.from_text` cannot read the text of a graph. |
252
252
  | `EBMGraphError` | no | The base class of the errors of a graph. |
253
253
  | `EBMGraphShapeError` | yes | The bins of a graph do not fit its scores, the scores and the standard deviations have different shapes, or a boolean format gets more than two bins. |
@@ -20,14 +20,14 @@ LLM calls go through [OpenRouter](https://openrouter.ai)'s free router (`openrou
20
20
  | Graph descriptions (`describe_graph`) | ✅ | ✅ | ✅ | ⚠️ |
21
21
  | Model summary (`describe_ebm`) | ✅ | ✅ | ✅ | ⚠️ |
22
22
  | Graph text (`EBMGraph`) | ✅ | ✅ | ✅ | ⚠️ |
23
- | Local explanations (`explain_instance`) | ✅ | ❌ | ❌ | ❌ |
23
+ | Local explanations (`explain_instance`) | ✅ | ✅ | ❌ | ❌ |
24
24
  | MCP server (`ebaml-mcp`) | ✅ | ✅ | ✅ | ⚠️ |
25
25
 
26
26
  ✅ supported. ⚠️ partly supported: the main effects are described, and the interaction terms are skipped.
27
27
  `describe_graph` and `describe_ebm` log an `interactions_skipped` warning that names them. ❌ not supported yet. Full support is on the
28
28
  [roadmap](https://github.com/johnny-godoy/EBaMl/blob/main/ROADMAP.md).
29
29
  <!-- --8<-- [end:supported-models] -->
30
- The MCP server reads every kind of model. Its explain tool works for binary classifiers only.
30
+ The MCP server reads every kind of model. Its explain tool works for binary classifiers and regressors.
31
31
  ## Setup
32
32
 
33
33
  <!-- --8<-- [start:setup] -->
@@ -194,7 +194,7 @@ The facts are computed exactly from the scores and confidence intervals of the E
194
194
  them in words. They are the three queries of [arXiv:2010.12265](https://arxiv.org/abs/2010.12265): minimum change
195
195
  required, minimum sufficient reason and count completions. `audience="layperson"` (default) gives no model numbers;
196
196
  `audience="data_scientist"` quotes scores, probabilities and confidence intervals. Subclass `ebaml.Audience` to add a
197
- reader with its own rules. Pass `language="French"` (any language name) to get the explanations in that language. It supports binary classifiers
197
+ reader with its own rules. Pass `language="French"` (any language name) to get the explanations in that language. It supports binary classifiers and regressors
198
198
  without interactions, and `explanation.facts` holds the numbers behind the text. The "Local explanations" page of the documentation explains what each explanation means, the options and the limits,
199
199
  and `notebooks/local_explanations.py` walks through them on the Titanic data.
200
200
 
@@ -209,7 +209,7 @@ of `ebaml` apart from the errors of other code. Each error for a bad value also
209
209
  | `InvalidOptionError` | yes | An option is not one of its valid values, for example an unknown `Normalization`. |
210
210
  | `OptionRangeError` | yes | A number option is outside its range, for example `confidence_level=1`. |
211
211
  | `InvalidInstanceError` | yes | The instance to explain lacks a value, or has a category that the EBM did not see. |
212
- | `UnsupportedModelError` | yes | A local explanation gets an EBM with interactions, or one that is not a binary classifier. A graph gets `classes`, and the model has one output. `model_kind` gets an EBM that is not fitted. |
212
+ | `UnsupportedModelError` | yes | A local explanation gets an EBM with interactions, or one that is not a binary classifier or a regressor. A graph gets `classes`, and the model has one output. `model_kind` gets an EBM that is not fitted. |
213
213
  | `GraphTextError` | yes | `EBMGraph.from_text` cannot read the text of a graph. |
214
214
  | `EBMGraphError` | no | The base class of the errors of a graph. |
215
215
  | `EBMGraphShapeError` | yes | The bins of a graph do not fit its scores, the scores and the standard deviations have different shapes, or a boolean format gets more than two bins. |
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ebaml"
3
- version = "0.4.2"
3
+ version = "0.4.4"
4
4
  description = "BAML for Explainable Boosting Machines: talk to your EBM."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -119,7 +119,13 @@ docstring-code-line-length = "dynamic"
119
119
  preview = true
120
120
 
121
121
  [tool.ruff.lint]
122
- ignore = ["missing-copyright-notice"]
122
+ ignore = [
123
+ "missing-copyright-notice",
124
+ "runtime-cast-value",
125
+ "typing-only-first-party-import",
126
+ "typing-only-standard-library-import",
127
+ "typing-only-third-party-import",
128
+ ]
123
129
  preview = true
124
130
  select = ["ALL"]
125
131
 
@@ -135,6 +141,9 @@ msg = "Use attrs. See .claude/rules/libraries.md."
135
141
  [tool.ruff.lint.flake8-tidy-imports.banned-api.dill]
136
142
  msg = "Use skops.io. See .claude/rules/libraries.md."
137
143
 
144
+ [tool.ruff.lint.flake8-tidy-imports.banned-api.doctest]
145
+ msg = "Use sybil. See .claude/rules/libraries.md."
146
+
138
147
  [tool.ruff.lint.flake8-tidy-imports.banned-api.joblib]
139
148
  msg = "Use skops.io. See .claude/rules/libraries.md."
140
149
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ebaml"
3
- version = "0.4.2"
3
+ version = "0.4.4"
4
4
  description = "BAML for Explainable Boosting Machines: talk to your EBM."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -126,9 +126,16 @@ docstring-code-line-length = "dynamic"
126
126
  preview = true
127
127
 
128
128
  [tool.ruff.lint]
129
- # reason: copyright notices are an unusual requirement that this project does not impose on its source files.
129
+ # reason: copyright notices are an unusual requirement that this project does not impose on its source files. The
130
+ # typing-only import rules are a recurring pattern: beartype reads every annotation of the package at run time, so an
131
+ # import that only a hint uses is a run-time import, and a TYPE_CHECKING block would break the check. For the same
132
+ # reason a type in a cast stays a name, not a string, so that the tools see the import.
130
133
  ignore = [
131
134
  "missing-copyright-notice",
135
+ "runtime-cast-value",
136
+ "typing-only-first-party-import",
137
+ "typing-only-standard-library-import",
138
+ "typing-only-third-party-import",
132
139
  ]
133
140
  preview = true
134
141
  select = ["ALL"]
@@ -140,6 +147,7 @@ select = ["ALL"]
140
147
  "cloudpickle".msg = "Use skops.io. See .claude/rules/libraries.md."
141
148
  "dataclasses".msg = "Use attrs. See .claude/rules/libraries.md."
142
149
  "dill".msg = "Use skops.io. See .claude/rules/libraries.md."
150
+ "doctest".msg = "Use sybil. See .claude/rules/libraries.md."
143
151
  "joblib".msg = "Use skops.io. See .claude/rules/libraries.md."
144
152
  "json".msg = "Use orjson. See .claude/rules/libraries.md."
145
153
  "logging".msg = "Use structlog. See .claude/rules/libraries.md."
@@ -7,15 +7,15 @@
7
7
  },
8
8
  {
9
9
  "relative_path": "__init__.py",
10
- "sha256": "11cf64083463a9485f91b97d373f878b5ff4a21d9f5f589fd725fd862da9e795"
10
+ "sha256": "c40d180de0aab7931d448bcbc2ce6f0985668a3e2907a8992b0c26ba33a7526a"
11
11
  },
12
12
  {
13
13
  "relative_path": "__init__.pyi",
14
- "sha256": "2adc45c6784bc52f6d387b8926e100b389042d141371497b0be8ab13ca932e6a"
14
+ "sha256": "887afe357f4adde5a22a37654fc377092cde0dc6befa6b0e04a85bfc89f98077"
15
15
  },
16
16
  {
17
17
  "relative_path": "_baml_sources.py",
18
- "sha256": "8e45b190c4b11962a079e69e3ef56aa96b5f0e923d146252aa21856ce1c69d4c"
18
+ "sha256": "a2d7036c0497128670de66ee04c863139a86e841c51df612754e7fd49f79f80f"
19
19
  },
20
20
  {
21
21
  "relative_path": "_function_registry.py",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  {
25
25
  "relative_path": "_inlinedbaml.py",
26
- "sha256": "5dcca56a5ab2bd2fa238ab2d055e5951308c865381f7cced2b8d149a8e748a96"
26
+ "sha256": "b3a52eb473aff24cd8d0feba384331d2185aec1c075bef46f39a1c1bf7a18f25"
27
27
  },
28
28
  {
29
29
  "relative_path": "_invocation_types.py",
@@ -386,6 +386,10 @@ live_data_scientist_facts = _define_function("user.live_data_scientist_fac
386
386
  live_data_scientist_facts_async = _define_function("user.live_data_scientist_facts", "async", [], binding_name="live_data_scientist_facts_async", binding_qualname="live_data_scientist_facts_async", binding_module=__name__)
387
387
 
388
388
 
389
+ live_regressor_facts = _define_function("user.live_regressor_facts", "sync", [], binding_name="live_regressor_facts", binding_qualname="live_regressor_facts", binding_module=__name__)
390
+ live_regressor_facts_async = _define_function("user.live_regressor_facts", "async", [], binding_name="live_regressor_facts_async", binding_qualname="live_regressor_facts_async", binding_module=__name__)
391
+
392
+
389
393
  log_reply = _define_function("user.log_reply", "sync", ["reply"], binding_name="log_reply", binding_qualname="log_reply", binding_module=__name__)
390
394
  log_reply_async = _define_function("user.log_reply", "async", ["reply"], binding_name="log_reply_async", binding_qualname="log_reply_async", binding_module=__name__)
391
395
 
@@ -862,6 +866,8 @@ __all__ = [
862
866
  "live_layperson_facts_async",
863
867
  "live_data_scientist_facts",
864
868
  "live_data_scientist_facts_async",
869
+ "live_regressor_facts",
870
+ "live_regressor_facts_async",
865
871
  "log_reply",
866
872
  "log_reply_async",
867
873
  "GraphPromptOptions",
@@ -347,6 +347,10 @@ def live_data_scientist_facts(*, _baml: _BamlOptions | None = None) -> LocalFact
347
347
  async def live_data_scientist_facts_async(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
348
348
 
349
349
 
350
+ def live_regressor_facts(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
351
+ async def live_regressor_facts_async(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
352
+
353
+
350
354
  def log_reply(reply: str, *, _baml: _BamlOptions | None = None) -> None: ...
351
355
  async def log_reply_async(reply: str, *, _baml: _BamlOptions | None = None) -> None: ...
352
356
 
@@ -771,6 +775,8 @@ __all__ = [
771
775
  "live_layperson_facts_async",
772
776
  "live_data_scientist_facts",
773
777
  "live_data_scientist_facts_async",
778
+ "live_regressor_facts",
779
+ "live_regressor_facts_async",
774
780
  "log_reply",
775
781
  "log_reply_async",
776
782
  "GraphPromptOptions",