tracebloc 7.0.4__tar.gz → 7.0.6__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 (220) hide show
  1. {tracebloc-7.0.4 → tracebloc-7.0.6}/PKG-INFO +1 -1
  2. {tracebloc-7.0.4 → tracebloc-7.0.6}/pyproject.toml +1 -1
  3. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/gate.py +1 -2
  4. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/interfaces.py +13 -0
  5. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/gate_rules.py +12 -0
  6. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/import_check.py +19 -2
  7. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/skl_tabular_regression.py +7 -8
  8. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/tabular_regression_utils.py +41 -5
  9. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc.egg-info/PKG-INFO +1 -1
  10. {tracebloc-7.0.4 → tracebloc-7.0.6}/MANIFEST.in +0 -0
  11. {tracebloc-7.0.4 → tracebloc-7.0.6}/README.md +0 -0
  12. {tracebloc-7.0.4 → tracebloc-7.0.6}/license.txt +0 -0
  13. {tracebloc-7.0.4 → tracebloc-7.0.6}/setup.cfg +0 -0
  14. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/__init__.py +0 -0
  15. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/api/__init__.py +0 -0
  16. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/api/experiment_status.py +0 -0
  17. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/api/multipart.py +0 -0
  18. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/api/responses.py +0 -0
  19. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/auth/__init__.py +0 -0
  20. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/auth/cli_profile.py +0 -0
  21. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/auth/env_login.py +0 -0
  22. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/checks.py +0 -0
  23. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/client.py +0 -0
  24. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/compat/__init__.py +0 -0
  25. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/compat/deprecation.py +0 -0
  26. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/compat/frameworks.py +0 -0
  27. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/config.py +0 -0
  28. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/console/__init__.py +0 -0
  29. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/console/logger.py +0 -0
  30. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/contracts/stage_urls.v1.json +0 -0
  31. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/contracts/stage_urls.v1.source.json +0 -0
  32. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/contracts/survival_payload.py +0 -0
  33. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/contracts/training_requirements.source.json +0 -0
  34. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/contracts/training_requirements.txt +0 -0
  35. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/__init__.py +0 -0
  36. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/acceptance.py +0 -0
  37. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/__init__.py +0 -0
  38. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/hf/__init__.py +0 -0
  39. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/hf/_build.py +0 -0
  40. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/hf/_length.py +0 -0
  41. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/hf/_model_type.py +0 -0
  42. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/tabular.py +0 -0
  43. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/vision/__init__.py +0 -0
  44. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/families/vision/_matching.py +0 -0
  45. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/heads.py +0 -0
  46. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/licence/__init__.py +0 -0
  47. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/licence/spdx.py +0 -0
  48. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/outputs.py +0 -0
  49. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/__init__.py +0 -0
  50. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/arguments.py +0 -0
  51. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/assemble.py +0 -0
  52. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/checkpoint.py +0 -0
  53. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/generate.py +0 -0
  54. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/head.py +0 -0
  55. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/layer0.py +0 -0
  56. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/live.py +0 -0
  57. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/model_class.py +0 -0
  58. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/remote.py +0 -0
  59. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/repo.py +0 -0
  60. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/shake.py +0 -0
  61. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/owncode/source_tree.py +0 -0
  62. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/package.py +0 -0
  63. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/package_folder.py +0 -0
  64. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/padding.py +0 -0
  65. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/report.py +0 -0
  66. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/tokenizers.py +0 -0
  67. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/convert/training_versions.py +0 -0
  68. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/__init__.py +0 -0
  69. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/base.py +0 -0
  70. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/detection.py +0 -0
  71. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/keypoint_detection.py +0 -0
  72. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/semantic_segmentation.py +0 -0
  73. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/tabular.py +0 -0
  74. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/text.py +0 -0
  75. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/time_series.py +0 -0
  76. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/datasets/time_to_event.py +0 -0
  77. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/downloads/lifelines_weights.py +0 -0
  78. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/downloads/seed_weights.py +0 -0
  79. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/exceptions.py +0 -0
  80. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/fetch.py +0 -0
  81. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/inference.py +0 -0
  82. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/__init__.py +0 -0
  83. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/answer.py +0 -0
  84. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/augmentation_methods.py +0 -0
  85. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/check_model.py +0 -0
  86. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/conversion.py +0 -0
  87. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/data_methods.py +0 -0
  88. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/library.py +0 -0
  89. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/link_checks.py +0 -0
  90. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/model_dataset.py +0 -0
  91. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/regeneration.py +0 -0
  92. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/response.py +0 -0
  93. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/stored.py +0 -0
  94. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/training_methods.py +0 -0
  95. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/upload_methods.py +0 -0
  96. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/linking/user_methods.py +0 -0
  97. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/__init__.py +0 -0
  98. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/templates/_partials.tpl +0 -0
  99. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/templates/embeddings.tpl +0 -0
  100. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/templates/nlp_finetune.tpl +0 -0
  101. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/templates/nlp_generative.tpl +0 -0
  102. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/templates/survival.tpl +0 -0
  103. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/templates/tabular_timeseries.tpl +0 -0
  104. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/notebook/templates/vision_from_scratch.tpl +0 -0
  105. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/py.typed +0 -0
  106. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/__init__.py +0 -0
  107. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/classes.py +0 -0
  108. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/declaration.py +0 -0
  109. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/fitted_model.py +0 -0
  110. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/frame_recording.py +0 -0
  111. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/link_check.py +0 -0
  112. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/pairs.py +0 -0
  113. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/schema.py +0 -0
  114. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/seed_prefixes.py +0 -0
  115. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/sklearn_check.py +0 -0
  116. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/survival.py +0 -0
  117. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/torch_checks.py +0 -0
  118. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/raw_mode/width_note.py +0 -0
  119. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/__init__.py +0 -0
  120. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/augmentation.py +0 -0
  121. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/callbacks.py +0 -0
  122. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/converted.py +0 -0
  123. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/features.py +0 -0
  124. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/image_channels.py +0 -0
  125. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/image_size.py +0 -0
  126. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/link_total.py +0 -0
  127. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/lora.py +0 -0
  128. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/lora_validation.py +0 -0
  129. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/loss.py +0 -0
  130. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/loss_policy.py +0 -0
  131. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/loss_source.py +0 -0
  132. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/memory_estimate.py +0 -0
  133. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/memory_sizing.py +0 -0
  134. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/plan.py +0 -0
  135. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/preprocessing.py +0 -0
  136. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/shape.py +0 -0
  137. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/subdataset.py +0 -0
  138. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/submitter.py +0 -0
  139. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/training/summary.py +0 -0
  140. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/__init__.py +0 -0
  141. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/lifelines_time_to_event.py +0 -0
  142. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/loss_config.py +0 -0
  143. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/model_params.py +0 -0
  144. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/model_upload.py +0 -0
  145. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/nlp_probes.py +0 -0
  146. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/scikit_survival_time_to_event.py +0 -0
  147. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/skl_tabular_base.py +0 -0
  148. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/skl_tabular_classifier.py +0 -0
  149. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/statistical_base.py +0 -0
  150. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/survival_base.py +0 -0
  151. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_causal_language_modeler.py +0 -0
  152. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_embeddings.py +0 -0
  153. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_handler.py +0 -0
  154. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_image_classifier.py +0 -0
  155. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_key_point_detector.py +0 -0
  156. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_masked_language_modeler.py +0 -0
  157. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_multi_label_text_classifier.py +0 -0
  158. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_nlp_base.py +0 -0
  159. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_object_detector.py +0 -0
  160. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_semantic_segmentation.py +0 -0
  161. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_sentence_pair_classifier.py +0 -0
  162. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_seq2seq_modeler.py +0 -0
  163. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_smoke_loop.py +0 -0
  164. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_tabular_classifier.py +0 -0
  165. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_tabular_regression.py +0 -0
  166. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_text_classifier.py +0 -0
  167. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_text_regressor.py +0 -0
  168. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_time_series_classifier.py +0 -0
  169. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_time_series_forecaster.py +0 -0
  170. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_time_to_event.py +0 -0
  171. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/torch_token_classifier.py +0 -0
  172. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/weights_averaging.py +0 -0
  173. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/weights_check.py +0 -0
  174. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/upload/weights_parts.py +0 -0
  175. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/user.py +0 -0
  176. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/__init__.py +0 -0
  177. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/class_order.py +0 -0
  178. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/constants.py +0 -0
  179. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/custom_loss_probe.py +0 -0
  180. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/data_probes.py +0 -0
  181. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/declared_classes.py +0 -0
  182. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/declared_cls.py +0 -0
  183. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/detection_utils.py +0 -0
  184. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/device.py +0 -0
  185. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/entry_point.py +0 -0
  186. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/errors.py +0 -0
  187. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/feature_dict.py +0 -0
  188. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/loss_shape.py +0 -0
  189. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/model_loading.py +0 -0
  190. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/model_params.py +0 -0
  191. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/nlp_model_probes.py +0 -0
  192. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/peak_memory.py +0 -0
  193. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/registry.py +0 -0
  194. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/resources.py +0 -0
  195. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/safetensors_io.py +0 -0
  196. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/sequence_length.py +0 -0
  197. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/staging.py +0 -0
  198. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/synthetic_self_supervised.py +0 -0
  199. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/synthetic_text.py +0 -0
  200. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/tabular_classification_utils.py +0 -0
  201. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/tabular_custom_loss_utils.py +0 -0
  202. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/time_series_utils.py +0 -0
  203. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/time_to_event_utils.py +0 -0
  204. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/tokenizer_checks.py +0 -0
  205. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/warnings_once.py +0 -0
  206. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/weight_loaders.py +0 -0
  207. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/utils/weights_caps.py +0 -0
  208. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/__init__.py +0 -0
  209. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/checker.py +0 -0
  210. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/estimator_checks.py +0 -0
  211. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/header_rules.py +0 -0
  212. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/lifelines_checks.py +0 -0
  213. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/pytorch_checks.py +0 -0
  214. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/rewriter.py +0 -0
  215. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/scikit_survival_checks.py +0 -0
  216. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc/validation/sklearn_checks.py +0 -0
  217. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc.egg-info/SOURCES.txt +0 -0
  218. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc.egg-info/dependency_links.txt +0 -0
  219. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc.egg-info/requires.txt +0 -0
  220. {tracebloc-7.0.4 → tracebloc-7.0.6}/tracebloc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 7.0.4
3
+ Version: 7.0.6
4
4
  Summary: Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace.
5
5
  Author-email: tracebloc <lukas@tracebloc.io>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tracebloc"
7
- version = "7.0.4"
7
+ version = "7.0.6"
8
8
  description = "Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace."
9
9
  license = "MIT"
10
10
  license-files = ["license.txt"]
@@ -264,8 +264,7 @@ def _header_with_defaults(
264
264
  if framework == PYTORCH_FRAMEWORK and "output_classes" in needed:
265
265
 
266
266
  def build_for_classes(count: int, workdir: Path) -> GeneratedPackage:
267
- counts = {**task.counts, "output_classes": count}
268
- return family.build(recognition, replace(task, counts=counts), workdir)
267
+ return family.build(recognition, task.probe(count), workdir)
269
268
 
270
269
  prefixes = derive_seed_excluded_prefixes(build_for_classes)
271
270
  if prefixes:
@@ -13,6 +13,7 @@ discovery works on a bare ``pip install tracebloc``.
13
13
 
14
14
  from __future__ import annotations
15
15
 
16
+ import copy
16
17
  import importlib
17
18
  import inspect
18
19
  import pkgutil
@@ -158,6 +159,18 @@ class UseCaseTask:
158
159
  object.__setattr__(self, "counts", _frozen(self.counts))
159
160
  object.__setattr__(self, "class_names", tuple(self.class_names))
160
161
 
162
+ def probe(self, output_classes: int) -> UseCaseTask:
163
+ """A copy whose head is ``output_classes`` wide, even for a
164
+ :data:`SINGLE_OUTPUT` task; for building a probe, never a package."""
165
+ # The annotation is not enforced: a caller can hand in any value.
166
+ wrong_type = not isinstance(output_classes, int) # pyright: ignore[reportUnnecessaryIsInstance]
167
+ if wrong_type or isinstance(output_classes, bool) or output_classes < 1:
168
+ raise ValueError(f"a probe needs a positive width, got {output_classes!r}")
169
+ probed = copy.copy(self)
170
+ counts = {**self.counts, "output_classes": output_classes}
171
+ object.__setattr__(probed, "counts", _frozen(counts))
172
+ return probed
173
+
161
174
 
162
175
  class Proof(_StringEnum):
163
176
  """How the generated model is compared with the original."""
@@ -82,11 +82,23 @@ MODULE_REACH_NAMES = frozenset(
82
82
  "_posixsubprocess",
83
83
  "builtins",
84
84
  "ctypes",
85
+ "f_builtins",
86
+ "f_globals",
87
+ "f_locals",
85
88
  "posix",
86
89
  "sys",
87
90
  }
88
91
  )
89
92
 
93
+ #: Builtins that hand back a namespace dict, refused as a bare name in any position.
94
+ NAMESPACE_BUILTINS = frozenset({"globals", "locals", "vars"})
95
+
96
+ #: The dunder reach names, refused as a string literal too: a namespace dict is
97
+ #: keyed by them (``torch.__dict__["__builtins__"]``).
98
+ BANNED_NAMESPACE_KEYS = frozenset(
99
+ name for name in MODULE_REACH_NAMES if name.startswith("__") and name.endswith("__")
100
+ )
101
+
90
102
  #: The process environment, under every name a library re-exports it as.
91
103
  ENVIRONMENT_NAMES = frozenset(
92
104
  {
@@ -18,12 +18,14 @@ from tracebloc.convert.owncode.gate_rules import (
18
18
  ALLOWED_IMPORTS,
19
19
  BANNED_CALL_PREFIXES,
20
20
  BANNED_CALLS,
21
+ BANNED_NAMESPACE_KEYS,
21
22
  DISTINCT_NAMESAKES,
22
23
  DYNAMIC_ATTRIBUTE_CALLS,
23
24
  ENVIRONMENT_NAMES,
24
25
  EXTRA_MEMBER_PATHS,
25
26
  MEMBER_ALLOWED,
26
27
  MODULE_REACH_NAMES,
28
+ NAMESPACE_BUILTINS,
27
29
  NATIVE_CODE_LOADERS,
28
30
  NATIVE_CODE_MODULES,
29
31
  STDLIB_ESCAPE_NAMES,
@@ -39,6 +41,9 @@ BANNED_NAMES = (
39
41
  | STDLIB_ESCAPE_NAMES
40
42
  )
41
43
 
44
+ #: Names refused wherever they appear as a bare name, in any position.
45
+ BANNED_BARE_NAMES = MODULE_REACH_NAMES | NAMESPACE_BUILTINS
46
+
42
47
  #: Every full path admitted under a member-restricted module.
43
48
  MEMBER_PATHS = (
44
49
  frozenset(
@@ -242,14 +247,26 @@ class _Scan(ast.NodeVisitor):
242
247
  self.generic_visit(node)
243
248
 
244
249
  def visit_Name(self, node: ast.Name) -> None: # noqa: N802
245
- if node.id in MODULE_REACH_NAMES:
250
+ if node.id in BANNED_BARE_NAMES:
246
251
  self.add(
247
252
  node,
248
253
  Finding(
249
254
  RefusalCause.STDLIB_REFUSED,
250
255
  0,
251
256
  f"uses `{node.id}`",
252
- "it reaches any module or the interpreter",
257
+ "it reaches the builtins, a namespace or the interpreter",
258
+ ),
259
+ )
260
+
261
+ def visit_Constant(self, node: ast.Constant) -> None: # noqa: N802
262
+ if isinstance(node.value, str) and node.value in BANNED_NAMESPACE_KEYS:
263
+ self.add(
264
+ node,
265
+ Finding(
266
+ RefusalCause.STDLIB_REFUSED,
267
+ 0,
268
+ f"uses the key `{node.value}`",
269
+ "it reaches the builtins, a namespace or the interpreter",
253
270
  ),
254
271
  )
255
272
 
@@ -1,14 +1,16 @@
1
1
  from typing import Any
2
2
 
3
+ import numpy as np
4
+
3
5
  from sklearn.ensemble import VotingRegressor # pyright: ignore[reportMissingTypeStubs]
4
6
 
5
7
  from tracebloc.upload.skl_tabular_base import SklTabularBase
6
- from tracebloc.utils.tabular_regression_utils import get_regression_dataloader
8
+ from tracebloc.utils.tabular_regression_utils import get_regression_numpy_batches
7
9
 
8
10
 
9
11
  class SklearnTabularRegressor(SklTabularBase):
10
- """sklearn tabular regression upload handler: regression dataloader
11
- (torch tensors → numpy, single-output targets squeezed) and
12
+ """sklearn tabular regression upload handler: NumPy regression batches
13
+ (no torch; single-output targets squeezed) and
12
14
  prediction-averaging ``VotingRegressor`` ensembles."""
13
15
 
14
16
  _ensemble_cls = VotingRegressor
@@ -32,16 +34,13 @@ class SklearnTabularRegressor(SklTabularBase):
32
34
  )
33
35
 
34
36
  def _smoke_dataloader(self) -> Any:
35
- # Use regression dataloader instead of classification
36
- return get_regression_dataloader(
37
+ return get_regression_numpy_batches(
37
38
  num_feature_points=self.num_feature_points,
38
39
  output_dim=self.classes,
39
40
  )
40
41
 
41
42
  def _fit_batch(self, inputs: Any, targets: Any) -> None:
42
- # Convert to numpy for sklearn
43
- inputs_np = inputs.numpy()
44
- targets_np = targets.numpy()
43
+ inputs_np, targets_np = np.asarray(inputs), np.asarray(targets)
45
44
  # Handle single output vs multi-output
46
45
  if targets_np.ndim > 1 and targets_np.shape[1] == 1:
47
46
  targets_np = targets_np.squeeze()
@@ -1,11 +1,20 @@
1
- from typing import Any, cast
1
+ from typing import TYPE_CHECKING, Any, cast
2
2
 
3
3
  import numpy as np
4
4
  import pandas as pd # pyright: ignore[reportMissingTypeStubs]
5
- from torch.utils.data import DataLoader
6
5
 
6
+ if TYPE_CHECKING:
7
+ from torch.utils.data import DataLoader
7
8
 
8
- from tracebloc.datasets.tabular import TabularRegressionDataset
9
+
10
+ def __getattr__(name: str) -> Any:
11
+ # Keeps the old import path for TabularRegressionDataset without importing
12
+ # torch when this module loads, so the sklearn upload path needs no torch.
13
+ if name == "TabularRegressionDataset":
14
+ from tracebloc.datasets.tabular import TabularRegressionDataset
15
+
16
+ return TabularRegressionDataset
17
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
9
18
 
10
19
 
11
20
  def generate_tabular_regression_data(
@@ -50,12 +59,35 @@ def generate_tabular_regression_data(
50
59
  return features, targets
51
60
 
52
61
 
62
+ def get_regression_numpy_batches(
63
+ num_samples: int = 50,
64
+ num_feature_points: int = 69,
65
+ batch_size: int = 4,
66
+ output_dim: Any = 1,
67
+ ) -> list[tuple[Any, Any]]:
68
+ """Shuffled ``(features, targets)`` NumPy batch list of synthetic regression
69
+ data: the torch-free counterpart of :func:`get_regression_dataloader` for
70
+ the sklearn upload path. Float32, shuffled, final partial batch kept."""
71
+ features, targets = generate_tabular_regression_data(
72
+ num_samples=num_samples,
73
+ num_feature_points=num_feature_points,
74
+ output_dim=output_dim,
75
+ )
76
+ features = features.astype(np.float32)
77
+ targets = targets.astype(np.float32)
78
+ order = np.random.permutation(len(targets)) # pyright: ignore[reportUnknownMemberType] - numpy>=2.5 stubs: ArrayLike's Buffer is Unknown at pythonVersion 3.11
79
+ return [
80
+ (features[order[i : i + batch_size]], targets[order[i : i + batch_size]])
81
+ for i in range(0, len(order), batch_size)
82
+ ]
83
+
84
+
53
85
  def get_regression_dataloader(
54
86
  num_samples: int = 50,
55
87
  num_feature_points: int = 69,
56
88
  batch_size: int = 4,
57
89
  output_dim: Any = 1,
58
- ) -> DataLoader[Any]:
90
+ ) -> "DataLoader[Any]":
59
91
  """
60
92
  Create a DataLoader for regression testing.
61
93
 
@@ -73,7 +105,11 @@ def get_regression_dataloader(
73
105
  num_feature_points=num_feature_points,
74
106
  output_dim=output_dim,
75
107
  )
76
- # Create Dataset and DataLoader
108
+ # torch is imported here, not at module load: only the torch handler calls this.
109
+ from torch.utils.data import DataLoader
110
+
111
+ from tracebloc.datasets.tabular import TabularRegressionDataset
112
+
77
113
  dataset = TabularRegressionDataset(data_features, targets)
78
114
  return DataLoader(dataset, batch_size=batch_size, shuffle=True)
79
115
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 7.0.4
3
+ Version: 7.0.6
4
4
  Summary: Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace.
5
5
  Author-email: tracebloc <lukas@tracebloc.io>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes