tracebloc 1.2.64__tar.gz → 1.2.65__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 (116) hide show
  1. {tracebloc-1.2.64 → tracebloc-1.2.65}/PKG-INFO +2 -2
  2. {tracebloc-1.2.64 → tracebloc-1.2.65}/README.md +1 -1
  3. {tracebloc-1.2.64 → tracebloc-1.2.65}/pyproject.toml +1 -1
  4. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/_linking.py +28 -13
  5. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/user.py +1 -1
  6. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc.egg-info/PKG-INFO +2 -2
  7. {tracebloc-1.2.64 → tracebloc-1.2.65}/MANIFEST.in +0 -0
  8. {tracebloc-1.2.64 → tracebloc-1.2.65}/license.txt +0 -0
  9. {tracebloc-1.2.64 → tracebloc-1.2.65}/setup.cfg +0 -0
  10. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/__init__.py +0 -0
  11. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/_deprecation.py +0 -0
  12. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/_framework_utils.py +0 -0
  13. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/_http_utils.py +0 -0
  14. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/_link_answer.py +0 -0
  15. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/_raw_width_note.py +0 -0
  16. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/_stored_link.py +0 -0
  17. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/checks.py +0 -0
  18. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/client.py +0 -0
  19. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/config.py +0 -0
  20. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/contracts/stage_urls.v1.json +0 -0
  21. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/contracts/stage_urls.v1.source.json +0 -0
  22. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/contracts/survival_payload.py +0 -0
  23. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/env_login.py +0 -0
  24. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/exceptions.py +0 -0
  25. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/fetch.py +0 -0
  26. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/inference.py +0 -0
  27. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/lifelines_weights.py +0 -0
  28. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/link_model_dataset.py +0 -0
  29. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/__init__.py +0 -0
  30. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/templates/_partials.tpl +0 -0
  31. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/templates/embeddings.tpl +0 -0
  32. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/templates/nlp_finetune.tpl +0 -0
  33. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/templates/nlp_generative.tpl +0 -0
  34. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/templates/survival.tpl +0 -0
  35. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/templates/tabular_timeseries.tpl +0 -0
  36. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/notebook/templates/vision_from_scratch.tpl +0 -0
  37. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/raw_mode.py +0 -0
  38. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/raw_mode_frame.py +0 -0
  39. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/raw_mode_seed.py +0 -0
  40. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/raw_mode_survival.py +0 -0
  41. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/raw_mode_torch.py +0 -0
  42. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/seed_weights.py +0 -0
  43. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/__init__.py +0 -0
  44. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/augmentation.py +0 -0
  45. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/callbacks.py +0 -0
  46. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/features.py +0 -0
  47. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/image_size.py +0 -0
  48. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/lora.py +0 -0
  49. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/lora_validation.py +0 -0
  50. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/loss.py +0 -0
  51. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/memory_estimate.py +0 -0
  52. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/plan.py +0 -0
  53. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/preprocessing.py +0 -0
  54. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/shape.py +0 -0
  55. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/subdataset.py +0 -0
  56. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/submitter.py +0 -0
  57. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/training/summary.py +0 -0
  58. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/__init__.py +0 -0
  59. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/lifelines_time_to_event.py +0 -0
  60. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/model_upload.py +0 -0
  61. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/scikit_survival_time_to_event.py +0 -0
  62. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/skl_tabular_base.py +0 -0
  63. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/skl_tabular_classifier.py +0 -0
  64. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/skl_tabular_regression.py +0 -0
  65. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/statistical_base.py +0 -0
  66. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/survival_base.py +0 -0
  67. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_causal_language_modeler.py +0 -0
  68. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_embeddings.py +0 -0
  69. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_image_classifier.py +0 -0
  70. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_key_point_detector.py +0 -0
  71. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_masked_language_modeler.py +0 -0
  72. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_nlp_base.py +0 -0
  73. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_object_detector.py +0 -0
  74. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_semantic_segmentation.py +0 -0
  75. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_sentence_pair_classifier.py +0 -0
  76. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_seq2seq_modeler.py +0 -0
  77. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_tabular_classifier.py +0 -0
  78. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_tabular_regression.py +0 -0
  79. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_text_classifier.py +0 -0
  80. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_time_series_classifier.py +0 -0
  81. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_time_series_forecaster.py +0 -0
  82. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_time_to_event.py +0 -0
  83. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/torch_token_classifier.py +0 -0
  84. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/upload/weight_loaders.py +0 -0
  85. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/__init__.py +0 -0
  86. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/class_order.py +0 -0
  87. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/constants.py +0 -0
  88. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/custom_loss_probe.py +0 -0
  89. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/detection_utils.py +0 -0
  90. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/entry_point.py +0 -0
  91. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/feature_dict.py +0 -0
  92. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/general_utils.py +0 -0
  93. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/key_point_detection_utils.py +0 -0
  94. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/registry.py +0 -0
  95. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/safetensors_io.py +0 -0
  96. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/semantic_segmentation_utils.py +0 -0
  97. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/tabular_classification_utils.py +0 -0
  98. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/tabular_custom_loss_utils.py +0 -0
  99. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/tabular_regression_utils.py +0 -0
  100. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/text_classification_utils.py +0 -0
  101. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/time_series_utils.py +0 -0
  102. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/time_to_event_utils.py +0 -0
  103. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/utils/warnings_once.py +0 -0
  104. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/__init__.py +0 -0
  105. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/checker.py +0 -0
  106. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/header_rules.py +0 -0
  107. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/lifelines_checks.py +0 -0
  108. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/pytorch_checks.py +0 -0
  109. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/rewriter.py +0 -0
  110. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/scikit_survival_checks.py +0 -0
  111. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc/validation/sklearn_checks.py +0 -0
  112. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc.egg-info/SOURCES.txt +0 -0
  113. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc.egg-info/dependency_links.txt +0 -0
  114. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc.egg-info/requires.txt +0 -0
  115. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc.egg-info/top_level.txt +0 -0
  116. {tracebloc-1.2.64 → tracebloc-1.2.65}/tracebloc_package/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 1.2.64
3
+ Version: 1.2.65
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
@@ -105,7 +105,7 @@ user.login()
105
105
  user.upload_model(model_name="my_model")
106
106
 
107
107
  # 3. Link your model to the dataset — returns a training-plan facade
108
- training_plan = user.link_model_dataset(dataset_id="<your-dataset-id>")
108
+ training_plan = user.link_model_dataset(dataset_id="<your-dataset-key>")
109
109
 
110
110
  # 4. Start training
111
111
  training_plan.start()
@@ -44,7 +44,7 @@ user.login()
44
44
  user.upload_model(model_name="my_model")
45
45
 
46
46
  # 3. Link your model to the dataset — returns a training-plan facade
47
- training_plan = user.link_model_dataset(dataset_id="<your-dataset-id>")
47
+ training_plan = user.link_model_dataset(dataset_id="<your-dataset-key>")
48
48
 
49
49
  # 4. Start training
50
50
  training_plan.start()
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tracebloc"
7
- version = "1.2.64"
7
+ version = "1.2.65"
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"]
@@ -109,19 +109,29 @@ def _status_reason(response):
109
109
  return ""
110
110
 
111
111
 
112
+ #: Where the dashboard shows the key ``link_model_dataset`` takes. The backend's
113
+ #: 403 is the same for an unknown key and a key the caller may not use, on purpose,
114
+ #: so the refusal names the place to copy the right one from.
115
+ DATASET_KEY_HINT = (
116
+ "The use case's dataset key is in the dashboard: open the use case; on its "
117
+ 'Overview, "On this page" shows it under "Start training".'
118
+ )
119
+
120
+
112
121
  def _map_link_response(response, dataset_id, load_failed_hint=REUPLOAD_HINT):
113
122
  """Map the check-model HTTP response to its parsed JSON body.
114
123
 
115
124
  Pure: reads only the response object; no I/O, no state. Raises
116
125
  :class:`DatasetLinkingError` for every failure shape: 400 (invalid /
117
- unknown dataset id; the backend's ``LOAD_FAILED`` for the model gets
126
+ unknown dataset key; the backend's ``LOAD_FAILED`` for the model gets
118
127
  ``load_failed_hint`` instead, the re-upload hint by default), 403 (not
119
- permitted — leads with the backend's reason), 409, 204, any other non-200/202 status, an unparseable body,
120
- or an ``error`` flag inside the body; returns the parsed body dict
121
- otherwise. HTTP-status failures other than the mapped codes chain
122
- an :class:`APIError` via ``raise ... from``; a 5xx additionally reads
123
- as a transient transport failure and names the HTTP status in the
124
- message rather than the generic "Linking Failed!".
128
+ permitted — leads with the backend's reason, ends with
129
+ :data:`DATASET_KEY_HINT`), 409, 204, any other non-200/202 status, an
130
+ unparseable body, or an ``error`` flag inside the body; returns the
131
+ parsed body dict otherwise. HTTP-status failures other than the mapped
132
+ codes chain an :class:`APIError` via ``raise ... from``; a 5xx
133
+ additionally reads as a transient transport failure and names the HTTP
134
+ status in the message rather than the generic "Linking Failed!".
125
135
  """
126
136
  if response.status_code == 400:
127
137
  body = _parse_api_message(response)
@@ -130,8 +140,8 @@ def _map_link_response(response, dataset_id, load_failed_hint=REUPLOAD_HINT):
130
140
  # caller's behind it -- say so, not "no dataset".
131
141
  raise DatasetLinkingError(f"{body}\n{load_failed_hint}")
132
142
  error_message = (
133
- f"Please provide a valid dataset ID.\n"
134
- f"There is no dataset with ID: {dataset_id}.\n"
143
+ f"Please provide a valid dataset key.\n"
144
+ f"There is no dataset with key {dataset_id}.\n"
135
145
  )
136
146
  if body:
137
147
  error_message += body
@@ -142,15 +152,20 @@ def _map_link_response(response, dataset_id, load_failed_hint=REUPLOAD_HINT):
142
152
  # model that can't be used on this dataset (e.g. a non-federatable
143
153
  # KNN/GaussianProcess on a federated or third-party-owned dataset,
144
154
  # backend #923 follow-up). Lead with the backend's specific reason when
145
- # present, but keep the dataset id and a neutral frame around it so a
155
+ # present, but keep the dataset key and a neutral frame around it so a
146
156
  # backend catch-all ("error occurred while linking as ...") or a DRF
147
157
  # permission ``detail`` doesn't surface as bare, contextless text.
148
- # Fall back to access/ID guidance when the body is empty.
158
+ # Fall back to access/key guidance when the body is empty. Either way the
159
+ # last line is DATASET_KEY_HINT.
149
160
  body = _parse_api_message(response)
150
161
  if body:
151
- raise DatasetLinkingError(f"Cannot link dataset ID: {dataset_id}.\n{body}")
162
+ raise DatasetLinkingError(
163
+ f"Cannot link the dataset with key {dataset_id}.\n{body}\n"
164
+ f"{DATASET_KEY_HINT}"
165
+ )
152
166
  raise DatasetLinkingError(
153
- f"You are not permitted to link dataset ID: {dataset_id}."
167
+ f"You are not permitted to link the dataset with key {dataset_id}.\n"
168
+ f"{DATASET_KEY_HINT}"
154
169
  )
155
170
 
156
171
  if response.status_code == 409:
@@ -715,7 +715,7 @@ class User:
715
715
 
716
716
  Raises:
717
717
  DatasetLinkingError: No model to link (none uploaded, or both
718
- ``model`` and ``template``), the dataset ID is invalid, the
718
+ ``model`` and ``template``), the dataset key is invalid, the
719
719
  stored model is not one of yours, the model is incompatible
720
720
  with the dataset, or the API returned an unexpected response.
721
721
  Transport/HTTP errors are wrapped; the underlying ``APIError``
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 1.2.64
3
+ Version: 1.2.65
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
@@ -105,7 +105,7 @@ user.login()
105
105
  user.upload_model(model_name="my_model")
106
106
 
107
107
  # 3. Link your model to the dataset — returns a training-plan facade
108
- training_plan = user.link_model_dataset(dataset_id="<your-dataset-id>")
108
+ training_plan = user.link_model_dataset(dataset_id="<your-dataset-key>")
109
109
 
110
110
  # 4. Start training
111
111
  training_plan.start()
File without changes
File without changes
File without changes