tracebloc 7.0.2__tar.gz → 7.0.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 (220) hide show
  1. {tracebloc-7.0.2 → tracebloc-7.0.4}/PKG-INFO +25 -2
  2. {tracebloc-7.0.2 → tracebloc-7.0.4}/README.md +24 -1
  3. {tracebloc-7.0.2 → tracebloc-7.0.4}/pyproject.toml +1 -1
  4. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/auth/cli_profile.py +23 -10
  5. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/user.py +9 -8
  6. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/time_to_event_utils.py +20 -4
  7. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc.egg-info/PKG-INFO +25 -2
  8. {tracebloc-7.0.2 → tracebloc-7.0.4}/MANIFEST.in +0 -0
  9. {tracebloc-7.0.2 → tracebloc-7.0.4}/license.txt +0 -0
  10. {tracebloc-7.0.2 → tracebloc-7.0.4}/setup.cfg +0 -0
  11. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/__init__.py +0 -0
  12. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/api/__init__.py +0 -0
  13. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/api/experiment_status.py +0 -0
  14. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/api/multipart.py +0 -0
  15. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/api/responses.py +0 -0
  16. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/auth/__init__.py +0 -0
  17. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/auth/env_login.py +0 -0
  18. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/checks.py +0 -0
  19. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/client.py +0 -0
  20. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/compat/__init__.py +0 -0
  21. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/compat/deprecation.py +0 -0
  22. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/compat/frameworks.py +0 -0
  23. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/config.py +0 -0
  24. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/console/__init__.py +0 -0
  25. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/console/logger.py +0 -0
  26. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/contracts/stage_urls.v1.json +0 -0
  27. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/contracts/stage_urls.v1.source.json +0 -0
  28. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/contracts/survival_payload.py +0 -0
  29. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/contracts/training_requirements.source.json +0 -0
  30. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/contracts/training_requirements.txt +0 -0
  31. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/__init__.py +0 -0
  32. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/acceptance.py +0 -0
  33. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/__init__.py +0 -0
  34. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/hf/__init__.py +0 -0
  35. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/hf/_build.py +0 -0
  36. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/hf/_length.py +0 -0
  37. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/hf/_model_type.py +0 -0
  38. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/tabular.py +0 -0
  39. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/vision/__init__.py +0 -0
  40. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/families/vision/_matching.py +0 -0
  41. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/gate.py +0 -0
  42. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/heads.py +0 -0
  43. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/interfaces.py +0 -0
  44. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/licence/__init__.py +0 -0
  45. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/licence/spdx.py +0 -0
  46. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/outputs.py +0 -0
  47. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/__init__.py +0 -0
  48. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/arguments.py +0 -0
  49. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/assemble.py +0 -0
  50. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/checkpoint.py +0 -0
  51. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/gate_rules.py +0 -0
  52. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/generate.py +0 -0
  53. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/head.py +0 -0
  54. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/import_check.py +0 -0
  55. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/layer0.py +0 -0
  56. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/live.py +0 -0
  57. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/model_class.py +0 -0
  58. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/remote.py +0 -0
  59. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/repo.py +0 -0
  60. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/shake.py +0 -0
  61. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/owncode/source_tree.py +0 -0
  62. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/package.py +0 -0
  63. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/package_folder.py +0 -0
  64. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/padding.py +0 -0
  65. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/report.py +0 -0
  66. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/tokenizers.py +0 -0
  67. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/convert/training_versions.py +0 -0
  68. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/__init__.py +0 -0
  69. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/base.py +0 -0
  70. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/detection.py +0 -0
  71. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/keypoint_detection.py +0 -0
  72. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/semantic_segmentation.py +0 -0
  73. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/tabular.py +0 -0
  74. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/text.py +0 -0
  75. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/time_series.py +0 -0
  76. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/datasets/time_to_event.py +0 -0
  77. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/downloads/lifelines_weights.py +0 -0
  78. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/downloads/seed_weights.py +0 -0
  79. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/exceptions.py +0 -0
  80. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/fetch.py +0 -0
  81. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/inference.py +0 -0
  82. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/__init__.py +0 -0
  83. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/answer.py +0 -0
  84. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/augmentation_methods.py +0 -0
  85. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/check_model.py +0 -0
  86. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/conversion.py +0 -0
  87. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/data_methods.py +0 -0
  88. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/library.py +0 -0
  89. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/link_checks.py +0 -0
  90. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/model_dataset.py +0 -0
  91. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/regeneration.py +0 -0
  92. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/response.py +0 -0
  93. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/stored.py +0 -0
  94. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/training_methods.py +0 -0
  95. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/upload_methods.py +0 -0
  96. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/linking/user_methods.py +0 -0
  97. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/__init__.py +0 -0
  98. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/templates/_partials.tpl +0 -0
  99. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/templates/embeddings.tpl +0 -0
  100. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/templates/nlp_finetune.tpl +0 -0
  101. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/templates/nlp_generative.tpl +0 -0
  102. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/templates/survival.tpl +0 -0
  103. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/templates/tabular_timeseries.tpl +0 -0
  104. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/notebook/templates/vision_from_scratch.tpl +0 -0
  105. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/py.typed +0 -0
  106. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/__init__.py +0 -0
  107. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/classes.py +0 -0
  108. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/declaration.py +0 -0
  109. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/fitted_model.py +0 -0
  110. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/frame_recording.py +0 -0
  111. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/link_check.py +0 -0
  112. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/pairs.py +0 -0
  113. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/schema.py +0 -0
  114. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/seed_prefixes.py +0 -0
  115. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/sklearn_check.py +0 -0
  116. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/survival.py +0 -0
  117. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/torch_checks.py +0 -0
  118. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/raw_mode/width_note.py +0 -0
  119. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/__init__.py +0 -0
  120. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/augmentation.py +0 -0
  121. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/callbacks.py +0 -0
  122. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/converted.py +0 -0
  123. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/features.py +0 -0
  124. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/image_channels.py +0 -0
  125. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/image_size.py +0 -0
  126. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/link_total.py +0 -0
  127. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/lora.py +0 -0
  128. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/lora_validation.py +0 -0
  129. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/loss.py +0 -0
  130. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/loss_policy.py +0 -0
  131. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/loss_source.py +0 -0
  132. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/memory_estimate.py +0 -0
  133. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/memory_sizing.py +0 -0
  134. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/plan.py +0 -0
  135. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/preprocessing.py +0 -0
  136. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/shape.py +0 -0
  137. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/subdataset.py +0 -0
  138. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/submitter.py +0 -0
  139. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/training/summary.py +0 -0
  140. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/__init__.py +0 -0
  141. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/lifelines_time_to_event.py +0 -0
  142. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/loss_config.py +0 -0
  143. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/model_params.py +0 -0
  144. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/model_upload.py +0 -0
  145. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/nlp_probes.py +0 -0
  146. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/scikit_survival_time_to_event.py +0 -0
  147. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/skl_tabular_base.py +0 -0
  148. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/skl_tabular_classifier.py +0 -0
  149. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/skl_tabular_regression.py +0 -0
  150. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/statistical_base.py +0 -0
  151. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/survival_base.py +0 -0
  152. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_causal_language_modeler.py +0 -0
  153. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_embeddings.py +0 -0
  154. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_handler.py +0 -0
  155. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_image_classifier.py +0 -0
  156. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_key_point_detector.py +0 -0
  157. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_masked_language_modeler.py +0 -0
  158. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_multi_label_text_classifier.py +0 -0
  159. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_nlp_base.py +0 -0
  160. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_object_detector.py +0 -0
  161. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_semantic_segmentation.py +0 -0
  162. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_sentence_pair_classifier.py +0 -0
  163. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_seq2seq_modeler.py +0 -0
  164. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_smoke_loop.py +0 -0
  165. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_tabular_classifier.py +0 -0
  166. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_tabular_regression.py +0 -0
  167. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_text_classifier.py +0 -0
  168. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_text_regressor.py +0 -0
  169. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_time_series_classifier.py +0 -0
  170. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_time_series_forecaster.py +0 -0
  171. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_time_to_event.py +0 -0
  172. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/torch_token_classifier.py +0 -0
  173. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/weights_averaging.py +0 -0
  174. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/weights_check.py +0 -0
  175. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/upload/weights_parts.py +0 -0
  176. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/__init__.py +0 -0
  177. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/class_order.py +0 -0
  178. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/constants.py +0 -0
  179. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/custom_loss_probe.py +0 -0
  180. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/data_probes.py +0 -0
  181. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/declared_classes.py +0 -0
  182. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/declared_cls.py +0 -0
  183. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/detection_utils.py +0 -0
  184. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/device.py +0 -0
  185. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/entry_point.py +0 -0
  186. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/errors.py +0 -0
  187. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/feature_dict.py +0 -0
  188. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/loss_shape.py +0 -0
  189. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/model_loading.py +0 -0
  190. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/model_params.py +0 -0
  191. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/nlp_model_probes.py +0 -0
  192. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/peak_memory.py +0 -0
  193. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/registry.py +0 -0
  194. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/resources.py +0 -0
  195. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/safetensors_io.py +0 -0
  196. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/sequence_length.py +0 -0
  197. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/staging.py +0 -0
  198. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/synthetic_self_supervised.py +0 -0
  199. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/synthetic_text.py +0 -0
  200. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/tabular_classification_utils.py +0 -0
  201. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/tabular_custom_loss_utils.py +0 -0
  202. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/tabular_regression_utils.py +0 -0
  203. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/time_series_utils.py +0 -0
  204. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/tokenizer_checks.py +0 -0
  205. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/warnings_once.py +0 -0
  206. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/weight_loaders.py +0 -0
  207. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/utils/weights_caps.py +0 -0
  208. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/__init__.py +0 -0
  209. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/checker.py +0 -0
  210. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/estimator_checks.py +0 -0
  211. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/header_rules.py +0 -0
  212. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/lifelines_checks.py +0 -0
  213. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/pytorch_checks.py +0 -0
  214. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/rewriter.py +0 -0
  215. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/scikit_survival_checks.py +0 -0
  216. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc/validation/sklearn_checks.py +0 -0
  217. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc.egg-info/SOURCES.txt +0 -0
  218. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc.egg-info/dependency_links.txt +0 -0
  219. {tracebloc-7.0.2 → tracebloc-7.0.4}/tracebloc.egg-info/requires.txt +0 -0
  220. {tracebloc-7.0.2 → tracebloc-7.0.4}/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.2
3
+ Version: 7.0.4
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
@@ -129,7 +129,7 @@ Upgrading from an earlier version? See [MIGRATION.md](MIGRATION.md).
129
129
  ```python
130
130
  from tracebloc import User
131
131
 
132
- # 1. Log in to your workspace
132
+ # 1. Log in (User(account=<id>) works in one of your organisations)
133
133
  user = User()
134
134
  user.login()
135
135
 
@@ -177,6 +177,29 @@ never return. So is a token containing whitespace or a control
177
177
  character, which the server would reject anyway and which cannot be
178
178
  reported without quoting the credential back at you.
179
179
 
180
+ ### Working in an organisation
181
+
182
+ You work in one account at a time: your Personal or one of your
183
+ organisations. With no account named, the SDK works in your default
184
+ account, which only you change, in your settings. To work in an
185
+ organisation, name its account when you log in:
186
+
187
+ ```python
188
+ from tracebloc import User
189
+
190
+ user = User(account=1234) # the organisation's id
191
+ ```
192
+
193
+ `tracebloc account list` shows your accounts and their ids. The account
194
+ you name wins over the one the tracebloc CLI works in on this machine.
195
+ Name none and the SDK works where the CLI does, if the CLI is signed in as
196
+ you, or else in your default account. To work in your Personal, name its
197
+ id the same way.
198
+
199
+ An id that isn't a positive number raises `ValueError` before you are
200
+ asked to log in. An account you aren't a member of is refused by the
201
+ platform: "You aren't a member of this account, or it doesn't exist."
202
+
180
203
  ## Supported Frameworks
181
204
 
182
205
 
@@ -36,7 +36,7 @@ Upgrading from an earlier version? See [MIGRATION.md](MIGRATION.md).
36
36
  ```python
37
37
  from tracebloc import User
38
38
 
39
- # 1. Log in to your workspace
39
+ # 1. Log in (User(account=<id>) works in one of your organisations)
40
40
  user = User()
41
41
  user.login()
42
42
 
@@ -84,6 +84,29 @@ never return. So is a token containing whitespace or a control
84
84
  character, which the server would reject anyway and which cannot be
85
85
  reported without quoting the credential back at you.
86
86
 
87
+ ### Working in an organisation
88
+
89
+ You work in one account at a time: your Personal or one of your
90
+ organisations. With no account named, the SDK works in your default
91
+ account, which only you change, in your settings. To work in an
92
+ organisation, name its account when you log in:
93
+
94
+ ```python
95
+ from tracebloc import User
96
+
97
+ user = User(account=1234) # the organisation's id
98
+ ```
99
+
100
+ `tracebloc account list` shows your accounts and their ids. The account
101
+ you name wins over the one the tracebloc CLI works in on this machine.
102
+ Name none and the SDK works where the CLI does, if the CLI is signed in as
103
+ you, or else in your default account. To work in your Personal, name its
104
+ id the same way.
105
+
106
+ An id that isn't a positive number raises `ValueError` before you are
107
+ asked to log in. An account you aren't a member of is refused by the
108
+ platform: "You aren't a member of this account, or it doesn't exist."
109
+
87
110
  ## Supported Frameworks
88
111
 
89
112
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tracebloc"
7
- version = "7.0.2"
7
+ version = "7.0.4"
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"]
@@ -2,12 +2,14 @@
2
2
 
3
3
  ``tracebloc account use`` stores the account a person works in on the CLI's
4
4
  per-stage profile in ``~/.tracebloc/config.json`` (schema version 2): the
5
- backend account's id as a decimal string under ``account_id``. The SDK sends
6
- the same account, so a notebook or script on that machine works where the CLI
7
- does. Anything this module cannot read with certainty is "no choice", never
8
- an error: the person's default account then applies. The file also holds the
9
- CLI's tokens; only ``version``, a profile's ``email`` and its ``account_id``
10
- are ever looked at, and nothing read from the file is logged.
5
+ backend account's id under ``account_id``. The SDK sends the same account, so a
6
+ notebook or script on that machine works where the CLI does, and, as the CLI
7
+ does, only while the profile's ``organisations_enabled`` is true. Anything this
8
+ module cannot read with certainty is "no choice", never an error: the person's
9
+ default account then applies. The file also holds the CLI's tokens; only
10
+ ``version``, ``profiles`` and a profile's ``email``, ``organisations_enabled``
11
+ and ``account_id`` are ever looked at, and nothing read from the file is logged.
12
+ tests/auth/test_cli_profile_contract.py holds these names to the CLI's writer.
11
13
  """
12
14
 
13
15
  from __future__ import annotations
@@ -23,8 +25,15 @@ from tracebloc.config import TraceblocConfig
23
25
  CONFIG_DIR_ENV_VAR = "TRACEBLOC_CONFIG_DIR"
24
26
  #: The one schema this reader knows; any other version is "no choice".
25
27
  SCHEMA_VERSION = 2
28
+ #: The config's version and its per-stage profiles.
29
+ VERSION_FIELD = "version"
30
+ PROFILES_FIELD = "profiles"
31
+ #: Who the CLI is signed in as on a profile.
32
+ EMAIL_FIELD = "email"
26
33
  #: The profile field ``tracebloc account use`` writes (backend#10017).
27
34
  ACCOUNT_FIELD = "account_id"
35
+ #: The CLI's own gate: it sends its choice only while this is true.
36
+ ORGANISATIONS_FIELD = "organisations_enabled"
28
37
 
29
38
 
30
39
  def account_id_or_none(value: Any) -> str | None:
@@ -69,7 +78,9 @@ def cli_account_choice(api_base_url: str, email: str | None) -> str | None:
69
78
  """The account id the CLI chose for the stage ``api_base_url`` serves.
70
79
 
71
80
  It applies only to the person the CLI is signed in as: ``email`` (who
72
- this SDK session logged in as) must match the profile's ``email``. A URL
81
+ this SDK session logged in as) must match the profile's ``email``. As the
82
+ CLI's ``WorkingAccount`` does, it applies only while the profile's
83
+ ``organisations_enabled`` is true. A URL
73
84
  no stage serves, an unknown login, or a missing, unreadable or unknown
74
85
  config gives ``None``.
75
86
  """
@@ -83,14 +94,16 @@ def cli_account_choice(api_base_url: str, email: str | None) -> str | None:
83
94
  return None
84
95
  if config is None:
85
96
  return None
86
- version: Any = config.get("version")
87
- profiles = _object(config.get("profiles"))
97
+ version: Any = config.get(VERSION_FIELD)
98
+ profiles = _object(config.get(PROFILES_FIELD))
88
99
  if type(version) is not int or version != SCHEMA_VERSION or profiles is None:
89
100
  return None
90
101
  profile = _profile_for(profiles, stage)
91
102
  if profile is None:
92
103
  return None
93
- signed_in_as: Any = profile.get("email")
104
+ signed_in_as: Any = profile.get(EMAIL_FIELD)
94
105
  if not isinstance(signed_in_as, str) or not _same_email(signed_in_as, email):
95
106
  return None
107
+ if profile.get(ORGANISATIONS_FIELD) is not True:
108
+ return None
96
109
  return account_id_or_none(profile.get(ACCOUNT_FIELD))
@@ -40,6 +40,7 @@ class User(UserUploadMethods, UserLinkMethods):
40
40
  def __init__(
41
41
  self, stage: str | object = UNSET, username: str | None = None,
42
42
  password: str | None = None, *, environment: str | object = UNSET,
43
+ account: str | int | None = None,
43
44
  ) -> None:
44
45
  """Open an authenticated tracebloc session.
45
46
 
@@ -58,6 +59,11 @@ class User(UserUploadMethods, UserLinkMethods):
58
59
  passing it emits a ``DeprecationWarning`` and its value is
59
60
  used as ``stage``. If both are given, ``stage`` wins. The
60
61
  accepted values are unchanged. Removed in 1.0.0.
62
+ account: Id of the account to work in: your Personal or one of
63
+ your organisations (``tracebloc account list`` shows the ids).
64
+ It wins over the account the tracebloc CLI works in; with
65
+ neither, your default account applies. Not a positive id:
66
+ ``ValueError``, before anything is asked for.
61
67
  """
62
68
  stage = resolve_renamed_kwarg(
63
69
  new_name="stage",
@@ -74,13 +80,8 @@ class User(UserUploadMethods, UserLinkMethods):
74
80
  except RetiredStageError:
75
81
  raise # its own message says what to use instead
76
82
  except ValueError:
77
- # Fail clearly instead of the old misleading "the class does not
78
- # take any arguments" message (it does) and instead of returning a
79
- # half-built User whose next call confusingly reports "not logged
80
- # in". The ``stage`` argument is an internal/onboarding-only
81
- # detail, so the message stays generic and deliberately does NOT
82
- # mention environments or name any of them. ``from None`` suppresses
83
- # the chained config-layer error, which enumerates those names.
83
+ # ``stage`` is onboarding-only, so the message names no stage, and
84
+ # ``from None`` drops the config error that lists them.
84
85
  raise ValueError(
85
86
  "Could not initialize tracebloc with the provided "
86
87
  "configuration. Please follow your tracebloc setup "
@@ -102,7 +103,7 @@ class User(UserUploadMethods, UserLinkMethods):
102
103
  # Model class and LinkModelDataset still read it until
103
104
  # SDK.1-upload and SDK.1-link migrate them.
104
105
  self.__url = self.__config.api_base_url
105
- self.__client = TraceblocClient(self.__config)
106
+ self.__client = TraceblocClient(self.__config, account=account)
106
107
  self.__username = username
107
108
  self.__password = password
108
109
  if not self.__env_login.supersedes_prompt(username, password):
@@ -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.time_to_event import TimeToEventDataset
9
+
10
+ def __getattr__(name: str) -> Any:
11
+ # Keeps the old import path for TimeToEventDataset without importing torch
12
+ # when this module loads.
13
+ if name == "TimeToEventDataset":
14
+ from tracebloc.datasets.time_to_event import TimeToEventDataset
15
+
16
+ return TimeToEventDataset
17
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
9
18
 
10
19
 
11
20
  def generate_time_to_event_data(
@@ -51,7 +60,7 @@ def get_time_to_event_dataloader(
51
60
  num_samples: int = 50,
52
61
  num_feature_points: int = 69,
53
62
  batch_size: int = 4,
54
- ) -> DataLoader[Any]:
63
+ ) -> "DataLoader[Any]":
55
64
  """
56
65
  Create a DataLoader for time-to-event prediction testing.
57
66
 
@@ -63,6 +72,13 @@ def get_time_to_event_dataloader(
63
72
  Returns:
64
73
  DataLoader with time-to-event data (features, duration, event)
65
74
  """
75
+ # torch is imported at call time so that importing this module, and with it
76
+ # the lifelines and scikit-survival upload handlers, works without torch;
77
+ # only the torch handler calls this.
78
+ from torch.utils.data import DataLoader
79
+
80
+ from tracebloc.datasets.time_to_event import TimeToEventDataset
81
+
66
82
  data_features, duration, event = generate_time_to_event_data(
67
83
  num_samples=num_samples,
68
84
  num_feature_points=num_feature_points,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 7.0.2
3
+ Version: 7.0.4
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
@@ -129,7 +129,7 @@ Upgrading from an earlier version? See [MIGRATION.md](MIGRATION.md).
129
129
  ```python
130
130
  from tracebloc import User
131
131
 
132
- # 1. Log in to your workspace
132
+ # 1. Log in (User(account=<id>) works in one of your organisations)
133
133
  user = User()
134
134
  user.login()
135
135
 
@@ -177,6 +177,29 @@ never return. So is a token containing whitespace or a control
177
177
  character, which the server would reject anyway and which cannot be
178
178
  reported without quoting the credential back at you.
179
179
 
180
+ ### Working in an organisation
181
+
182
+ You work in one account at a time: your Personal or one of your
183
+ organisations. With no account named, the SDK works in your default
184
+ account, which only you change, in your settings. To work in an
185
+ organisation, name its account when you log in:
186
+
187
+ ```python
188
+ from tracebloc import User
189
+
190
+ user = User(account=1234) # the organisation's id
191
+ ```
192
+
193
+ `tracebloc account list` shows your accounts and their ids. The account
194
+ you name wins over the one the tracebloc CLI works in on this machine.
195
+ Name none and the SDK works where the CLI does, if the CLI is signed in as
196
+ you, or else in your default account. To work in your Personal, name its
197
+ id the same way.
198
+
199
+ An id that isn't a positive number raises `ValueError` before you are
200
+ asked to log in. An account you aren't a member of is refused by the
201
+ platform: "You aren't a member of this account, or it doesn't exist."
202
+
180
203
  ## Supported Frameworks
181
204
 
182
205
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes