weightslab 1.5.0__tar.gz → 2.0.1__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 (623) hide show
  1. {weightslab-1.5.0 → weightslab-2.0.1}/.github/workflows/ci.yml +81 -1
  2. {weightslab-1.5.0 → weightslab-2.0.1}/.gitignore +4 -1
  3. {weightslab-1.5.0 → weightslab-2.0.1}/AGENTS.md +31 -0
  4. weightslab-2.0.1/CHANGELOG.md +1 -0
  5. {weightslab-1.5.0/weightslab.egg-info → weightslab-2.0.1}/PKG-INFO +26 -12
  6. {weightslab-1.5.0 → weightslab-2.0.1}/README.md +20 -8
  7. weightslab-2.0.1/agent_config.yaml +23 -0
  8. weightslab-2.0.1/docs/_scripts/update_whats_new.py +254 -0
  9. weightslab-2.0.1/docs/_static/code-copy.js +124 -0
  10. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/custom.css +232 -0
  11. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/examples-gallery.js +7 -0
  12. weightslab-2.0.1/docs/_static/screenshots/README.md +17 -0
  13. weightslab-2.0.1/docs/_static/screenshots/agent-bar.png +0 -0
  14. weightslab-2.0.1/docs/_static/screenshots/agent-window.png +0 -0
  15. weightslab-2.0.1/docs/_static/screenshots/bottom-bar.png +0 -0
  16. weightslab-2.0.1/docs/_static/screenshots/data-grid.png +0 -0
  17. weightslab-2.0.1/docs/_static/screenshots/evaluate-popover.png +0 -0
  18. weightslab-2.0.1/docs/_static/screenshots/export-annotations.png +0 -0
  19. weightslab-2.0.1/docs/_static/screenshots/image-detail-modal.png +0 -0
  20. weightslab-2.0.1/docs/_static/screenshots/landing-page.png +0 -0
  21. weightslab-2.0.1/docs/_static/screenshots/left-panel-details.png +0 -0
  22. weightslab-2.0.1/docs/_static/screenshots/left-panel-hyperparameters.png +0 -0
  23. weightslab-2.0.1/docs/_static/screenshots/left-panel-tags-painter.png +0 -0
  24. weightslab-2.0.1/docs/_static/screenshots/left-panel-training.png +0 -0
  25. weightslab-2.0.1/docs/_static/screenshots/list-exploration.png +0 -0
  26. weightslab-2.0.1/docs/_static/screenshots/media-player.png +0 -0
  27. weightslab-2.0.1/docs/_static/screenshots/modal-overlays.png +0 -0
  28. weightslab-2.0.1/docs/_static/screenshots/mode-selector.png +0 -0
  29. weightslab-2.0.1/docs/_static/screenshots/notebook-panel.png +0 -0
  30. weightslab-2.0.1/docs/_static/screenshots/plot-error-band.png +0 -0
  31. weightslab-2.0.1/docs/_static/screenshots/plot-merge.png +0 -0
  32. weightslab-2.0.1/docs/_static/screenshots/plot-search.png +0 -0
  33. weightslab-2.0.1/docs/_static/screenshots/plots-board.png +0 -0
  34. weightslab-2.0.1/docs/_static/screenshots/pointcloud-viewer.png +0 -0
  35. weightslab-2.0.1/docs/_static/screenshots/quick-filters.png +0 -0
  36. weightslab-2.0.1/docs/_static/screenshots/refresh-config.png +0 -0
  37. weightslab-2.0.1/docs/_static/screenshots/report-button.png +0 -0
  38. weightslab-2.0.1/docs/_static/screenshots/resource-signals.png +0 -0
  39. weightslab-2.0.1/docs/_static/screenshots/selection-context-menu.png +0 -0
  40. weightslab-2.0.1/docs/_static/screenshots/tagging-modal.png +0 -0
  41. weightslab-2.0.1/docs/_static/screenshots/training-controls.png +0 -0
  42. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/version-switcher.js +46 -6
  43. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/wl-topnav.js +9 -0
  44. weightslab-2.0.1/docs/agent.rst +579 -0
  45. weightslab-2.0.1/docs/agent_quickstart.rst +122 -0
  46. weightslab-2.0.1/docs/build_docs.sh +72 -0
  47. {weightslab-1.5.0 → weightslab-2.0.1}/docs/checkpointing.rst +2 -2
  48. {weightslab-1.5.0 → weightslab-2.0.1}/docs/conf.py +22 -1
  49. {weightslab-1.5.0 → weightslab-2.0.1}/docs/configuration.rst +185 -79
  50. weightslab-2.0.1/docs/data_exploration.rst +134 -0
  51. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/index.rst +8 -0
  52. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/usecases/index.rst +2 -1
  53. weightslab-2.0.1/docs/examples/usecases/model_signals.rst +162 -0
  54. {weightslab-1.5.0 → weightslab-2.0.1}/docs/experiment_reports.rst +150 -9
  55. weightslab-2.0.1/docs/export.rst +137 -0
  56. weightslab-2.0.1/docs/four_way_approach.rst +144 -0
  57. {weightslab-1.5.0 → weightslab-2.0.1}/docs/grpc/audit_logger.rst +1 -1
  58. {weightslab-1.5.0 → weightslab-2.0.1}/docs/grpc/grpc_functions.rst +1 -1
  59. {weightslab-1.5.0 → weightslab-2.0.1}/docs/grpc/index.rst +1 -1
  60. weightslab-2.0.1/docs/hyperparameters.rst +151 -0
  61. weightslab-2.0.1/docs/index.rst +184 -0
  62. weightslab-2.0.1/docs/logger.rst +202 -0
  63. weightslab-2.0.1/docs/migration/from_3lc.rst +196 -0
  64. weightslab-2.0.1/docs/migration/from_tensorboard.rst +176 -0
  65. weightslab-2.0.1/docs/migration/from_voxel51.rst +197 -0
  66. weightslab-2.0.1/docs/migration/from_wandb.rst +193 -0
  67. weightslab-2.0.1/docs/migration/index.rst +70 -0
  68. weightslab-2.0.1/docs/model_interaction.rst +321 -0
  69. weightslab-2.0.1/docs/notebooks.rst +100 -0
  70. weightslab-2.0.1/docs/quickstart.rst +219 -0
  71. weightslab-2.0.1/docs/resource_monitoring.rst +196 -0
  72. weightslab-1.5.0/docs/usage/good_practice.rst → weightslab-2.0.1/docs/usage/good_practice/data_and_loaders.rst +4 -82
  73. weightslab-2.0.1/docs/usage/good_practice/index.rst +24 -0
  74. weightslab-2.0.1/docs/usage/good_practice/signals.rst +66 -0
  75. weightslab-2.0.1/docs/usage/good_practice/training_loop.rst +61 -0
  76. {weightslab-1.5.0 → weightslab-2.0.1}/docs/usage/parameters.rst +11 -20
  77. weightslab-2.0.1/docs/usage.rst +18 -0
  78. {weightslab-1.5.0 → weightslab-2.0.1}/docs/user_commands.rst +45 -244
  79. {weightslab-1.5.0 → weightslab-2.0.1}/docs/user_functions.rst +681 -17
  80. weightslab-2.0.1/docs/weights_studio/agent.rst +115 -0
  81. weightslab-2.0.1/docs/weights_studio/cli_console.rst +42 -0
  82. weightslab-2.0.1/docs/weights_studio/configuration.rst +74 -0
  83. weightslab-2.0.1/docs/weights_studio/data_board.rst +96 -0
  84. weightslab-2.0.1/docs/weights_studio/deployment.rst +72 -0
  85. weightslab-2.0.1/docs/weights_studio/detail_modal.rst +56 -0
  86. weightslab-2.0.1/docs/weights_studio/header_bar.rst +96 -0
  87. weightslab-2.0.1/docs/weights_studio/index.rst +97 -0
  88. weightslab-2.0.1/docs/weights_studio/landing_page.rst +29 -0
  89. weightslab-2.0.1/docs/weights_studio/left_panel.rst +84 -0
  90. weightslab-2.0.1/docs/weights_studio/notebook.rst +119 -0
  91. weightslab-2.0.1/docs/weights_studio/plots.rst +69 -0
  92. weightslab-2.0.1/docs/weights_studio/ports.rst +243 -0
  93. weightslab-2.0.1/docs/weights_studio/reports.rst +72 -0
  94. weightslab-2.0.1/docs/weights_studio/resource_monitoring.rst +140 -0
  95. weightslab-2.0.1/docs/weights_studio/security.rst +47 -0
  96. weightslab-2.0.1/docs/weights_studio/troubleshooting.rst +13 -0
  97. weightslab-2.0.1/docs/weights_studio_cli/cli_console.rst +206 -0
  98. weightslab-2.0.1/docs/weights_studio_cli/cli_init.rst +90 -0
  99. weightslab-2.0.1/docs/weights_studio_cli/index.rst +58 -0
  100. weightslab-2.0.1/docs/weights_studio_ui/agent.rst +115 -0
  101. weightslab-2.0.1/docs/weights_studio_ui/index.rst +86 -0
  102. weightslab-2.0.1/docs/weights_studio_ui/landing_page.rst +222 -0
  103. weightslab-2.0.1/docs/weights_studio_ui/left_panel.rst +175 -0
  104. weightslab-2.0.1/docs/weights_studio_ui/main_area.rst +363 -0
  105. weightslab-2.0.1/docs/weights_studio_ui/more/configuration.rst +74 -0
  106. weightslab-2.0.1/docs/weights_studio_ui/more/deployment.rst +72 -0
  107. weightslab-2.0.1/docs/weights_studio_ui/more/index.rst +21 -0
  108. weightslab-2.0.1/docs/weights_studio_ui/more/ports.rst +243 -0
  109. weightslab-2.0.1/docs/weights_studio_ui/more/security.rst +47 -0
  110. weightslab-2.0.1/docs/weights_studio_ui/more/troubleshooting.rst +13 -0
  111. weightslab-2.0.1/docs/whats_new.rst +248 -0
  112. weightslab-2.0.1/opencode.json +10 -0
  113. {weightslab-1.5.0 → weightslab-2.0.1}/pyproject.toml +40 -4
  114. weightslab-2.0.1/resource_monitoring.yaml +39 -0
  115. weightslab-2.0.1/scripts/ci/agent_smoke.py +297 -0
  116. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_cli_additional_unit.py +8 -10
  117. weightslab-2.0.1/tests/backend/test_export_annotations_api.py +62 -0
  118. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_instance_signal_logger.py +109 -0
  119. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_logger_core.py +161 -12
  120. weightslab-2.0.1/tests/backend/test_logger_scale.py +553 -0
  121. weightslab-2.0.1/tests/backend/test_signal_outliers.py +574 -0
  122. weightslab-2.0.1/tests/data/test_video_utils.py +316 -0
  123. weightslab-2.0.1/tests/export/test_collect.py +247 -0
  124. weightslab-2.0.1/tests/export/test_exporter.py +86 -0
  125. weightslab-2.0.1/tests/export/test_formats.py +142 -0
  126. weightslab-2.0.1/tests/gRPC/test_get_media.py +434 -0
  127. {weightslab-1.5.0 → weightslab-2.0.1}/tests/gRPC/test_get_point_cloud.py +83 -0
  128. {weightslab-1.5.0 → weightslab-2.0.1}/tests/gRPC/test_grpc_user_actions.py +6 -3
  129. weightslab-2.0.1/tests/general/test_cli_export.py +141 -0
  130. weightslab-2.0.1/tests/general/test_four_way_standalone.py +599 -0
  131. weightslab-2.0.1/tests/general/test_model_signals.py +230 -0
  132. weightslab-2.0.1/tests/monitoring/test_resource_monitor.py +360 -0
  133. weightslab-2.0.1/tests/test_agent_cli.py +77 -0
  134. weightslab-2.0.1/tests/test_agent_networking.py +70 -0
  135. weightslab-2.0.1/tests/test_opencode_binary.py +259 -0
  136. weightslab-2.0.1/tests/test_opencode_process.py +229 -0
  137. weightslab-2.0.1/tests/test_opencode_shared_server_integration.py +164 -0
  138. {weightslab-1.5.0 → weightslab-2.0.1}/tests/test_report_entrypoints.py +70 -3
  139. {weightslab-1.5.0 → weightslab-2.0.1}/tests/test_reporting.py +217 -0
  140. weightslab-2.0.1/tests/test_reporting_media.py +65 -0
  141. {weightslab-1.5.0 → weightslab-2.0.1}/tests/test_src_functions.py +34 -4
  142. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_agent_live_prompt_evaluation.py +37 -46
  143. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_agent_model_and_safety_unit.py +11 -70
  144. weightslab-2.0.1/tests/trainer/services/test_agent_opencode_provider.py +448 -0
  145. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_agent_prompt_unit.py +15 -80
  146. weightslab-2.0.1/tests/trainer/services/test_agent_service_unit.py +185 -0
  147. weightslab-2.0.1/tests/trainer/services/test_data_service_step_snapshot.py +110 -0
  148. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_notebook_service_unit.py +46 -0
  149. weightslab-2.0.1/tests/trainer/services/test_opencode_chat.py +448 -0
  150. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_trainer_services_server.py +92 -0
  151. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_trainer_services_unit.py +335 -3
  152. weightslab-2.0.1/tests/ui/fake_opencode.py +261 -0
  153. weightslab-2.0.1/tests/ui/test_server_agent.py +550 -0
  154. weightslab-2.0.1/tests/ui/test_server_data_query.py +211 -0
  155. weightslab-2.0.1/tests/ui/test_server_loop.py +487 -0
  156. weightslab-2.0.1/tests/ui/test_server_opencode_wire.py +361 -0
  157. weightslab-2.0.1/tests/ui/test_server_shutdown_signals.py +151 -0
  158. weightslab-2.0.1/tests/ui/test_server_tracked_processes.py +235 -0
  159. weightslab-2.0.1/weightslab/AGENTS.md +413 -0
  160. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/__init__.py +31 -2
  161. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/_version.py +3 -3
  162. weightslab-2.0.1/weightslab/assets/chart.umd.min.js +14 -0
  163. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/backend/cli.py +214 -153
  164. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/backend/dataloader_interface.py +19 -22
  165. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/backend/ledgers.py +12 -1
  166. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/backend/logger.py +955 -67
  167. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/backend/model_interface.py +69 -1
  168. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/cli.py +293 -18
  169. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/components/checkpoint_manager.py +112 -1
  170. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/components/experiment_hash.py +6 -2
  171. weightslab-2.0.1/weightslab/components/experiment_naming.py +33 -0
  172. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/components/global_monitoring.py +49 -3
  173. weightslab-2.0.1/weightslab/components/model_signals.py +492 -0
  174. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/data_samples_with_ops.py +80 -0
  175. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/data_utils.py +78 -3
  176. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/dataframe_manager.py +158 -0
  177. weightslab-2.0.1/weightslab/data/media_store.py +219 -0
  178. weightslab-2.0.1/weightslab/data/video_utils.py +475 -0
  179. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Colab/wl-colab-quickstart.ipynb +12 -3
  180. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Local/wl-local-studio-quickstart.ipynb +26 -2
  181. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/wl-ads-recommendation.ipynb +23 -24
  182. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/wl-classification.ipynb +28 -20
  183. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/wl-clustering.ipynb +10 -17
  184. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/wl-detection.ipynb +35 -31
  185. weightslab-2.0.1/weightslab/examples/Notebooks/PyTorch/wl-fraud-detection.ipynb +588 -0
  186. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/wl-segmentation.ipynb +40 -37
  187. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/ws-classification.ipynb +31 -24
  188. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/ws-clustering.ipynb +3 -2
  189. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/ws-detection.ipynb +3 -2
  190. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/ws-generation.ipynb +3 -2
  191. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/PyTorch/ws-segmentation.ipynb +3 -2
  192. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-brain-tumor-detection-dataset.ipynb +4 -7
  193. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-carparts-segmentation-dataset.ipynb +2 -1
  194. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-construction-ppe-detection-dataset.ipynb +2 -1
  195. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-crack-segmentation-dataset.ipynb +2 -1
  196. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-homeobjects-dataset.ipynb +2 -1
  197. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-kitti-detection-dataset.ipynb +2 -1
  198. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-medical-pills-dataset.ipynb +2 -1
  199. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-package-segmentation-dataset.ipynb +2 -1
  200. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Usecases/wl-segmentation-loss-shapes-classification.ipynb +23 -16
  201. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Notebooks/Usecases/ws-segmentation-loss-shapes-classification.ipynb +22 -16
  202. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-ads-recommendation/main.py +10 -4
  203. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-classification/config.yaml +7 -4
  204. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-classification/main.py +11 -5
  205. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-detection/main.py +1 -2
  206. weightslab-2.0.1/weightslab/examples/PyTorch/wl-detection/utils/data.py +226 -0
  207. weightslab-2.0.1/weightslab/examples/PyTorch/wl-detection-relabeling/README.md +95 -0
  208. weightslab-2.0.1/weightslab/examples/PyTorch/wl-detection-relabeling/config.yaml +29 -0
  209. weightslab-2.0.1/weightslab/examples/PyTorch/wl-detection-relabeling/main.py +107 -0
  210. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/main.py +10 -4
  211. {weightslab-1.5.0/weightslab/examples/PyTorch/wl-generation → weightslab-2.0.1/weightslab/examples/PyTorch/wl-image-generation}/config.yaml +1 -1
  212. {weightslab-1.5.0/weightslab/examples/PyTorch/wl-generation → weightslab-2.0.1/weightslab/examples/PyTorch/wl-image-generation}/main.py +9 -3
  213. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/config.yaml +1 -1
  214. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/main.py +1 -2
  215. weightslab-2.0.1/weightslab/examples/PyTorch/wl-standalone-config/config.yaml +21 -0
  216. weightslab-2.0.1/weightslab/examples/PyTorch/wl-standalone-config/main.py +178 -0
  217. weightslab-2.0.1/weightslab/examples/PyTorch/wl-standalone-data/main.py +206 -0
  218. weightslab-2.0.1/weightslab/examples/PyTorch/wl-standalone-logger/main.py +219 -0
  219. weightslab-2.0.1/weightslab/examples/PyTorch/wl-standalone-model/main.py +277 -0
  220. weightslab-2.0.1/weightslab/examples/PyTorch/wl-video-generation/README.md +147 -0
  221. weightslab-2.0.1/weightslab/examples/PyTorch/wl-video-generation/config.yaml +58 -0
  222. weightslab-2.0.1/weightslab/examples/PyTorch/wl-video-generation/main.py +364 -0
  223. weightslab-2.0.1/weightslab/examples/PyTorch/wl-video-generation/utils/data.py +357 -0
  224. weightslab-2.0.1/weightslab/examples/PyTorch/wl-video-generation/utils/model.py +187 -0
  225. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Ultralytics/wl-detection/config.yaml +2 -1
  226. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-3d-lidar-detection/main.py +1 -2
  227. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/config.yaml +0 -1
  228. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/main.py +27 -23
  229. weightslab-2.0.1/weightslab/examples/Usecases/wl-fashion-mnist-signals/config.yaml +44 -0
  230. weightslab-2.0.1/weightslab/examples/Usecases/wl-fashion-mnist-signals/main.py +446 -0
  231. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/ws-signals-mnist/main.py +23 -17
  232. weightslab-2.0.1/weightslab/export/__init__.py +16 -0
  233. weightslab-2.0.1/weightslab/export/collect.py +331 -0
  234. weightslab-2.0.1/weightslab/export/exporter.py +87 -0
  235. weightslab-2.0.1/weightslab/export/formats/cvat.py +56 -0
  236. weightslab-2.0.1/weightslab/export/formats/label_studio.py +61 -0
  237. weightslab-2.0.1/weightslab/export/formats/v7_darwin.py +70 -0
  238. weightslab-2.0.1/weightslab/export/models.py +35 -0
  239. weightslab-2.0.1/weightslab/monitoring/__init__.py +18 -0
  240. weightslab-2.0.1/weightslab/monitoring/resource_monitor.py +470 -0
  241. weightslab-2.0.1/weightslab/opencode.json +4 -0
  242. weightslab-2.0.1/weightslab/opencode_binary.py +386 -0
  243. weightslab-2.0.1/weightslab/opencode_process.py +497 -0
  244. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/proto/experiment_service.proto +274 -2
  245. weightslab-2.0.1/weightslab/proto/experiment_service_pb2.py +262 -0
  246. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/proto/experiment_service_pb2_grpc.py +414 -2
  247. weightslab-2.0.1/weightslab/reporting.py +2033 -0
  248. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/src.py +654 -60
  249. weightslab-2.0.1/weightslab/trainer/services/__init__.py +0 -0
  250. weightslab-2.0.1/weightslab/trainer/services/agent/__init__.py +0 -0
  251. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent/agent.py +266 -371
  252. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent/intent_prompt.py +59 -3
  253. weightslab-2.0.1/weightslab/trainer/services/agent/opencode_chat.py +373 -0
  254. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent/report_prompt.py +9 -3
  255. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent_service.py +68 -7
  256. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/data_service.py +796 -49
  257. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/experiment_service.py +314 -53
  258. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/notebook_service.py +70 -15
  259. weightslab-2.0.1/weightslab/trainer/services/utils/__init__.py +0 -0
  260. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/utils/tools.py +6 -1
  261. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/trainer_services.py +76 -4
  262. weightslab-2.0.1/weightslab/ui/server.py +2545 -0
  263. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  264. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  265. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  266. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  267. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  268. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  269. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  270. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  271. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  272. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  273. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  274. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  275. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  276. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  277. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  278. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  279. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  280. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  281. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  282. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  283. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  284. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  285. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  286. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  287. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  288. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  289. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  290. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  291. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  292. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  293. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  294. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  295. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  296. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  297. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  298. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  299. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  300. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  301. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  302. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  303. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  304. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  305. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  306. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  307. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  308. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  309. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  310. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  311. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  312. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  313. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  314. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  315. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  316. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  317. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  318. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  319. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  320. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  321. weightslab-2.0.1/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  322. weightslab-1.5.0/weightslab/ui/static/assets/experiment_service-Dq-7XEyM.js → weightslab-2.0.1/weightslab/ui/static/assets/experiment_service-CLqRKLae.js +1 -1
  323. weightslab-2.0.1/weightslab/ui/static/assets/index-CAWdkmUg.js +5522 -0
  324. weightslab-2.0.1/weightslab/ui/static/assets/index-DEGbFcyq.css +1 -0
  325. weightslab-2.0.1/weightslab/ui/static/images/darkmode/logo.png +0 -0
  326. weightslab-2.0.1/weightslab/ui/static/images/favicon.png +0 -0
  327. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/static/index.html +166 -23
  328. {weightslab-1.5.0 → weightslab-2.0.1/weightslab.egg-info}/PKG-INFO +26 -12
  329. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab.egg-info/SOURCES.txt +214 -7
  330. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab.egg-info/requires.txt +6 -3
  331. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab.egg-info/scm_file_list.json +450 -302
  332. weightslab-2.0.1/weightslab.egg-info/scm_version.json +8 -0
  333. weightslab-1.5.0/CHANGELOG.md +0 -1
  334. weightslab-1.5.0/agent_config.yaml +0 -28
  335. weightslab-1.5.0/docs/agent.rst +0 -681
  336. weightslab-1.5.0/docs/data_exploration.rst +0 -60
  337. weightslab-1.5.0/docs/four_way_approach.rst +0 -58
  338. weightslab-1.5.0/docs/hyperparameters.rst +0 -53
  339. weightslab-1.5.0/docs/index.rst +0 -188
  340. weightslab-1.5.0/docs/logger.rst +0 -251
  341. weightslab-1.5.0/docs/model_interaction.rst +0 -44
  342. weightslab-1.5.0/docs/quickstart.rst +0 -188
  343. weightslab-1.5.0/docs/usage.rst +0 -18
  344. weightslab-1.5.0/docs/weights_studio.rst +0 -544
  345. weightslab-1.5.0/tests/trainer/services/test_agent_service_unit.py +0 -104
  346. weightslab-1.5.0/weightslab/examples/Notebooks/PyTorch/wl-fraud-detection.ipynb +0 -172
  347. weightslab-1.5.0/weightslab/proto/experiment_service_pb2.py +0 -224
  348. weightslab-1.5.0/weightslab/reporting.py +0 -712
  349. weightslab-1.5.0/weightslab/ui/server.py +0 -989
  350. weightslab-1.5.0/weightslab/ui/static/assets/index-BiD_5eCG.js +0 -4542
  351. weightslab-1.5.0/weightslab/ui/static/assets/index-BsWv1WVV.css +0 -1
  352. weightslab-1.5.0/weightslab.egg-info/scm_version.json +0 -8
  353. {weightslab-1.5.0 → weightslab-2.0.1}/.coverage +0 -0
  354. {weightslab-1.5.0 → weightslab-2.0.1}/.gitattributes +0 -0
  355. {weightslab-1.5.0 → weightslab-2.0.1}/.github/workflows/docs-pages.yml +0 -0
  356. {weightslab-1.5.0 → weightslab-2.0.1}/.github/workflows/release.yml +0 -0
  357. {weightslab-1.5.0 → weightslab-2.0.1}/LICENSE +0 -0
  358. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/.gitkeep +0 -0
  359. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/favicon.png +0 -0
  360. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/github-stars.js +0 -0
  361. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/logo-dark.png +0 -0
  362. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/logo-light.png +0 -0
  363. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/weights_studio_architecture.png +0 -0
  364. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_static/wl-ribbon.js +0 -0
  365. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_templates/.gitkeep +0 -0
  366. {weightslab-1.5.0 → weightslab-2.0.1}/docs/_templates/sidebar/brand.html +0 -0
  367. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/lightning/classification.rst +0 -0
  368. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/lightning/index.rst +0 -0
  369. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/pytorch/classification.rst +0 -0
  370. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/pytorch/clustering.rst +0 -0
  371. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/pytorch/detection.rst +0 -0
  372. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/pytorch/generation.rst +0 -0
  373. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/pytorch/index.rst +0 -0
  374. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/pytorch/segmentation.rst +0 -0
  375. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/ultralytics/detection.rst +0 -0
  376. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/ultralytics/index.rst +0 -0
  377. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/usecases/lidar_detection.rst +0 -0
  378. {weightslab-1.5.0 → weightslab-2.0.1}/docs/examples/usecases/loss_shape_classification.rst +0 -0
  379. {weightslab-1.5.0 → weightslab-2.0.1}/docs/pytorch_lightning.rst +0 -0
  380. {weightslab-1.5.0 → weightslab-2.0.1}/docs/requirements.txt +0 -0
  381. {weightslab-1.5.0 → weightslab-2.0.1}/docs/segmentation_usecase.rst +0 -0
  382. {weightslab-1.5.0 → weightslab-2.0.1}/docs/ultralytics.rst +0 -0
  383. {weightslab-1.5.0 → weightslab-2.0.1}/docs/usecases.rst +0 -0
  384. {weightslab-1.5.0 → weightslab-2.0.1}/setup.cfg +0 -0
  385. {weightslab-1.5.0 → weightslab-2.0.1}/tests/__init__.py +0 -0
  386. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/__init__.py +0 -0
  387. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_audit_logger.py +0 -0
  388. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_cli.py +0 -0
  389. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_compare_dataloaders.py +0 -0
  390. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_data_loader_interface.py +0 -0
  391. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_ledgers.py +0 -0
  392. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_model_interface_unit.py +0 -0
  393. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_optimizer_interface.py +0 -0
  394. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_optimizer_interface_additional_unit.py +0 -0
  395. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_tunnel.py +0 -0
  396. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_write_dataframe.py +0 -0
  397. {weightslab-1.5.0 → weightslab-2.0.1}/tests/backend/test_write_history.py +0 -0
  398. {weightslab-1.5.0 → weightslab-2.0.1}/tests/chaos_monkeys_utests/__init__.py +0 -0
  399. {weightslab-1.5.0 → weightslab-2.0.1}/tests/chaos_monkeys_utests/test_grpc_chaos_monkey_robustness.py +0 -0
  400. {weightslab-1.5.0 → weightslab-2.0.1}/tests/components/__init__.py +0 -0
  401. {weightslab-1.5.0 → weightslab-2.0.1}/tests/components/test_checkpoint_workflow.py +0 -0
  402. {weightslab-1.5.0 → weightslab-2.0.1}/tests/components/test_experiment_hash_and_art.py +0 -0
  403. {weightslab-1.5.0 → weightslab-2.0.1}/tests/components/test_global_monitoring_unit.py +0 -0
  404. {weightslab-1.5.0/tests/gRPC → weightslab-2.0.1/tests/export}/__init__.py +0 -0
  405. {weightslab-1.5.0/tests/general → weightslab-2.0.1/tests/gRPC}/__init__.py +0 -0
  406. {weightslab-1.5.0 → weightslab-2.0.1}/tests/gRPC/test_grpc_histogram_categorical.py +0 -0
  407. {weightslab-1.5.0 → weightslab-2.0.1}/tests/gRPC/test_grpc_tag_operations.py +0 -0
  408. {weightslab-1.5.0/tests/integrations → weightslab-2.0.1/tests/general}/__init__.py +0 -0
  409. {weightslab-1.5.0 → weightslab-2.0.1}/tests/general/test_auditor_mode.py +0 -0
  410. {weightslab-1.5.0 → weightslab-2.0.1}/tests/general/test_cli.py +0 -0
  411. {weightslab-1.5.0 → weightslab-2.0.1}/tests/general/test_hyperparams.py +0 -0
  412. {weightslab-1.5.0 → weightslab-2.0.1}/tests/general/test_signal_refinements.py +0 -0
  413. {weightslab-1.5.0 → weightslab-2.0.1}/tests/general/test_signals.py +0 -0
  414. {weightslab-1.5.0 → weightslab-2.0.1}/tests/general/test_signals_wrapping.py +0 -0
  415. {weightslab-1.5.0/tests/model → weightslab-2.0.1/tests/integrations}/__init__.py +0 -0
  416. {weightslab-1.5.0 → weightslab-2.0.1}/tests/integrations/test_pytorch_lightning_integration.py +0 -0
  417. {weightslab-1.5.0 → weightslab-2.0.1}/tests/integrations/ultralytics/ddp/ddp_ablation.py +0 -0
  418. {weightslab-1.5.0 → weightslab-2.0.1}/tests/integrations/ultralytics/ddp/ddp_test_suite.py +0 -0
  419. {weightslab-1.5.0/tests/modules → weightslab-2.0.1/tests/model}/__init__.py +0 -0
  420. {weightslab-1.5.0 → weightslab-2.0.1}/tests/model/test_constraint_generation.py +0 -0
  421. {weightslab-1.5.0 → weightslab-2.0.1}/tests/model/test_dependency_patterns.py +0 -0
  422. {weightslab-1.5.0 → weightslab-2.0.1}/tests/model/test_logger.py +0 -0
  423. {weightslab-1.5.0 → weightslab-2.0.1}/tests/model/test_model_with_ops.py +0 -0
  424. {weightslab-1.5.0 → weightslab-2.0.1}/tests/model/test_model_with_ops_unit.py +0 -0
  425. {weightslab-1.5.0 → weightslab-2.0.1}/tests/model/test_tracking.py +0 -0
  426. {weightslab-1.5.0/tests/trainer → weightslab-2.0.1/tests/modules}/__init__.py +0 -0
  427. {weightslab-1.5.0 → weightslab-2.0.1}/tests/modules/test_modules_with_ops.py +0 -0
  428. {weightslab-1.5.0/tests/trainer/services → weightslab-2.0.1/tests/monitoring}/__init__.py +0 -0
  429. {weightslab-1.5.0 → weightslab-2.0.1}/tests/test_secure_communication.py +0 -0
  430. {weightslab-1.5.0/tests/utils → weightslab-2.0.1/tests/trainer}/__init__.py +0 -0
  431. {weightslab-1.5.0/tests/watchdog → weightslab-2.0.1/tests/trainer/services}/__init__.py +0 -0
  432. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_data_service_sample_id_query.py +0 -0
  433. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_data_service_tabular_task_type.py +0 -0
  434. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_data_service_text_predictions.py +0 -0
  435. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/services/test_signal_trajectory.py +0 -0
  436. {weightslab-1.5.0 → weightslab-2.0.1}/tests/trainer/test_trainer_tools.py +0 -0
  437. {weightslab-1.5.0 → weightslab-2.0.1}/tests/ui/test_server_experiment_reports.py +0 -0
  438. {weightslab-1.5.0/weightslab/backend → weightslab-2.0.1/tests/utils}/__init__.py +0 -0
  439. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_computational_graph_utils_unit.py +0 -0
  440. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_logs_unit.py +0 -0
  441. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_modules_dependencies_unit.py +0 -0
  442. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_plot_graph_render_unit.py +0 -0
  443. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_plot_graph_unit.py +0 -0
  444. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_shape_prop_unit.py +0 -0
  445. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_telemetry.py +0 -0
  446. {weightslab-1.5.0 → weightslab-2.0.1}/tests/utils/test_utils_tools_unit.py +0 -0
  447. {weightslab-1.5.0/weightslab/data → weightslab-2.0.1/tests/watchdog}/__init__.py +0 -0
  448. {weightslab-1.5.0 → weightslab-2.0.1}/tests/watchdog/test_lock_monitor.py +0 -0
  449. {weightslab-1.5.0 → weightslab-2.0.1}/tests/watchdog/test_watchdog.py +0 -0
  450. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/art.py +0 -0
  451. /weightslab-1.5.0/weightslab/ui/static/assets/favicon-BtmqMp0p.png → /weightslab-2.0.1/weightslab/assets/icon.png +0 -0
  452. /weightslab-1.5.0/weightslab/ui/static/images/darkmode/logo.png → /weightslab-2.0.1/weightslab/assets/logo-dark.png +0 -0
  453. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/assets/logo.png +0 -0
  454. {weightslab-1.5.0/weightslab/examples/PyTorch/wl-ads-recommendation/utils → weightslab-2.0.1/weightslab/backend}/__init__.py +0 -0
  455. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/backend/audit_logger.py +0 -0
  456. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/backend/optimizer_interface.py +0 -0
  457. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/components/__init__.py +0 -0
  458. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/components/evaluation_controller.py +0 -0
  459. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/components/parallel_primitives.py +0 -0
  460. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/components/tracking.py +0 -0
  461. {weightslab-1.5.0/weightslab/examples/PyTorch/wl-clustering/face → weightslab-2.0.1/weightslab/data}/__init__.py +0 -0
  462. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/array_proxy.py +0 -0
  463. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/h5_array_store.py +0 -0
  464. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/h5_dataframe_store.py +0 -0
  465. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/point_cloud_utils.py +0 -0
  466. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/data/sample_stats.py +0 -0
  467. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/docker/docker/utils/test-deployment.sh +0 -0
  468. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Lightning/wl-classification/config.yaml +0 -0
  469. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Lightning/wl-classification/main.py +0 -0
  470. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-ads-recommendation/README.md +0 -0
  471. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-ads-recommendation/config.yaml +0 -0
  472. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-ads-recommendation/test_ads_recommendation.py +0 -0
  473. {weightslab-1.5.0/weightslab/examples/PyTorch/wl-fraud-detection → weightslab-2.0.1/weightslab/examples/PyTorch/wl-ads-recommendation}/utils/__init__.py +0 -0
  474. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-ads-recommendation/utils/data.py +0 -0
  475. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-ads-recommendation/utils/model.py +0 -0
  476. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-ads-recommendation/verify_integration.py +0 -0
  477. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-clustering/config.yaml +0 -0
  478. {weightslab-1.5.0/weightslab/examples/utils/baseline_models → weightslab-2.0.1/weightslab/examples/PyTorch/wl-clustering/face}/__init__.py +0 -0
  479. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-clustering/face/data.py +0 -0
  480. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-clustering/face/model.py +0 -0
  481. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-clustering/face/signals.py +0 -0
  482. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-clustering/face/utils.py +0 -0
  483. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-clustering/main.py +0 -0
  484. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-detection/README.md +0 -0
  485. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-detection/config.yaml +0 -0
  486. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-detection/utils/criterions.py +0 -0
  487. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-detection/utils/model.py +0 -0
  488. {weightslab-1.5.0/weightslab/examples/PyTorch/wl-detection → weightslab-2.0.1/weightslab/examples/PyTorch/wl-detection-relabeling}/utils/data.py +0 -0
  489. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/README.md +0 -0
  490. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/config.yaml +0 -0
  491. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/test_fraud_detection.py +0 -0
  492. {weightslab-1.5.0/weightslab/examples/utils/baseline_models/pytorch → weightslab-2.0.1/weightslab/examples/PyTorch/wl-fraud-detection/utils}/__init__.py +0 -0
  493. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/utils/data.py +0 -0
  494. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/utils/kaggle_data.py +0 -0
  495. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/utils/model.py +0 -0
  496. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-fraud-detection/verify_integration.py +0 -0
  497. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0000f77c-6257be58.jpg +0 -0
  498. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/000f8d37-d4c09a0f.jpg +0 -0
  499. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00a0f008-a315437f.jpg +0 -0
  500. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00c12bd0-bb46e479.jpg +0 -0
  501. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00c29c52-f9524f1e.jpg +0 -0
  502. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00ce6f6d-50bbee62.jpg +0 -0
  503. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00d1bafa-1b47b41c.jpg +0 -0
  504. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00d7268f-fd4487be.jpg +0 -0
  505. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00f0dd0f-5e9c9557.jpg +0 -0
  506. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a0d7f4c-ac5c3c8f.jpg +0 -0
  507. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a1f4fce-f9cac880.jpg +0 -0
  508. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a3bb2d8-c195d91e.jpg +0 -0
  509. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1cac6a7-04e33135.jpg +0 -0
  510. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1ceb32e-3f481b43.jpg +0 -0
  511. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d10d08-5b108225.jpg +0 -0
  512. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d22449-15fb948f.jpg +0 -0
  513. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d7b3ac-5af8623b.jpg +0 -0
  514. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1dce572-c6a8cb5e.jpg +0 -0
  515. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1e1a7b8-0aec80e8.jpg +0 -0
  516. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1e8ad72-c3c79240.jpg +0 -0
  517. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1ee702d-0ae1fc10.jpg +0 -0
  518. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1f0efd9-37a14dda.jpg +0 -0
  519. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b2a0648b-d8e126bc.jpg +0 -0
  520. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b2b70230-bad4ff6e.jpg +0 -0
  521. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0000f77c-6257be58.png +0 -0
  522. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/000f8d37-d4c09a0f.png +0 -0
  523. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00a0f008-a315437f.png +0 -0
  524. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00c12bd0-bb46e479.png +0 -0
  525. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00c29c52-f9524f1e.png +0 -0
  526. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00ce6f6d-50bbee62.png +0 -0
  527. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00d1bafa-1b47b41c.png +0 -0
  528. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00d7268f-fd4487be.png +0 -0
  529. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00f0dd0f-5e9c9557.png +0 -0
  530. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a0d7f4c-ac5c3c8f.png +0 -0
  531. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a1f4fce-f9cac880.png +0 -0
  532. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a3bb2d8-c195d91e.png +0 -0
  533. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1cac6a7-04e33135.png +0 -0
  534. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1ceb32e-3f481b43.png +0 -0
  535. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d10d08-5b108225.png +0 -0
  536. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d22449-15fb948f.png +0 -0
  537. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d7b3ac-5af8623b.png +0 -0
  538. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1dce572-c6a8cb5e.png +0 -0
  539. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1e1a7b8-0aec80e8.png +0 -0
  540. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1e8ad72-c3c79240.png +0 -0
  541. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1ee702d-0ae1fc10.png +0 -0
  542. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1f0efd9-37a14dda.png +0 -0
  543. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b2a0648b-d8e126bc.png +0 -0
  544. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b2b70230-bad4ff6e.png +0 -0
  545. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/utils/criterions.py +0 -0
  546. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/utils/data.py +0 -0
  547. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/PyTorch/wl-segmentation/utils/model.py +0 -0
  548. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Ultralytics/wl-detection/main.py +0 -0
  549. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-2d-lidar-detection/README.md +0 -0
  550. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-2d-lidar-detection/config.yaml +0 -0
  551. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-2d-lidar-detection/main.py +0 -0
  552. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/criterions.py +0 -0
  553. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/data.py +0 -0
  554. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/model.py +0 -0
  555. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-3d-lidar-detection/README.md +0 -0
  556. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-3d-lidar-detection/config.yaml +0 -0
  557. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/criterions.py +0 -0
  558. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/data.py +0 -0
  559. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/kitti_download.py +0 -0
  560. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/model.py +0 -0
  561. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/criterions.py +0 -0
  562. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/data.py +0 -0
  563. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/model.py +0 -0
  564. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/signals.py +0 -0
  565. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/__init__.py +0 -0
  566. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/utils/__init__.py +0 -0
  567. {weightslab-1.5.0/weightslab/models → weightslab-2.0.1/weightslab/examples/utils/baseline_models}/__init__.py +0 -0
  568. {weightslab-1.5.0/weightslab/modules → weightslab-2.0.1/weightslab/examples/utils/baseline_models/pytorch}/__init__.py +0 -0
  569. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/examples/utils/baseline_models/pytorch/models.py +0 -0
  570. {weightslab-1.5.0/weightslab/proto → weightslab-2.0.1/weightslab/export/formats}/__init__.py +0 -0
  571. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/__init__.py +0 -0
  572. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/ultralytics/README.md +0 -0
  573. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/ultralytics/__init__.py +0 -0
  574. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/ultralytics/_utils.py +0 -0
  575. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/ultralytics/collate.py +0 -0
  576. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/ultralytics/dataset.py +0 -0
  577. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/ultralytics/signals.py +0 -0
  578. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/integrations/ultralytics/trainer.py +0 -0
  579. {weightslab-1.5.0/weightslab/trainer → weightslab-2.0.1/weightslab/models}/__init__.py +0 -0
  580. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/models/model_with_ops.py +0 -0
  581. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/models/monkey_patcher.py +0 -0
  582. {weightslab-1.5.0/weightslab/trainer/services → weightslab-2.0.1/weightslab/modules}/__init__.py +0 -0
  583. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/modules/modules_with_ops.py +0 -0
  584. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/modules/neuron_ops.py +0 -0
  585. {weightslab-1.5.0/weightslab/trainer/services/agent → weightslab-2.0.1/weightslab/proto}/__init__.py +0 -0
  586. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/security/__init__.py +0 -0
  587. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/security/cert_auth_manager.py +0 -0
  588. {weightslab-1.5.0/weightslab/trainer/services/utils → weightslab-2.0.1/weightslab/trainer}/__init__.py +0 -0
  589. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/experiment_context.py +0 -0
  590. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent/agent_overview/agent.png +0 -0
  591. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent/agent_overview/query_example.png +0 -0
  592. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent/agent_overview/schema.png +0 -0
  593. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/agent/notebook_prompt.py +0 -0
  594. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/data_image_utils.py +0 -0
  595. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/instance_merger.py +0 -0
  596. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/services/model_service.py +0 -0
  597. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/trainer/trainer_tools.py +0 -0
  598. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/tunnel.py +0 -0
  599. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/__init__.py +0 -0
  600. /weightslab-1.5.0/weightslab/ui/static/images/favicon.png → /weightslab-2.0.1/weightslab/ui/static/assets/favicon-BtmqMp0p.png +0 -0
  601. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/static/images/darkmode/logo.svg +0 -0
  602. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/static/images/lightmode/logo.png +0 -0
  603. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/static/images/lightmode/logo.svg +0 -0
  604. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/static/images/logo.png +0 -0
  605. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/utils/generate-certs-auth-token.ps1 +0 -0
  606. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/utils/generate-certs-auth-token.sh +0 -0
  607. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/ui/utils/sync-frontend.sh +0 -0
  608. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/__init__.py +0 -0
  609. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/computational_graph.py +0 -0
  610. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/logs.py +0 -0
  611. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/modules_dependencies.py +0 -0
  612. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/plot_graph.py +0 -0
  613. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/shape_prop.py +0 -0
  614. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/telemetry.py +0 -0
  615. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/utils/tools.py +0 -0
  616. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/watchdog/__init__.py +0 -0
  617. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/watchdog/grpc_watchdog.py +0 -0
  618. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/watchdog/lock_monitor.py +0 -0
  619. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/watchdog/log_level.py +0 -0
  620. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab/watchdog/watchdog.py +0 -0
  621. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab.egg-info/dependency_links.txt +0 -0
  622. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab.egg-info/entry_points.txt +0 -0
  623. {weightslab-1.5.0 → weightslab-2.0.1}/weightslab.egg-info/top_level.txt +0 -0
@@ -200,6 +200,11 @@ jobs:
200
200
  # Depends on the fast 3.11 install gate; `gate` is also a direct need so this
201
201
  # job can read run_ci (the matrix and main-only jobs run independently).
202
202
  needs: [ gate, install ]
203
+ # Safety net: without this, a hang falls back to GitHub's 360-minute
204
+ # default. pytest's own --timeout=600 below should already catch a stuck
205
+ # test, but this bounds the whole job even if some hang manages to dodge
206
+ # that (e.g. a shared resource -- see WEIGHTSLAB_NOTEBOOK_EXEC_TIMEOUT).
207
+ timeout-minutes: 15
203
208
  steps:
204
209
  - name: Checkout repository
205
210
  uses: actions/checkout@v4
@@ -221,8 +226,83 @@ jobs:
221
226
  - name: Run unit tests - General
222
227
  run: |
223
228
  export WEIGHTSLAB_LOG_LEVEL="DEBUG"
229
+ # Bounds EmbeddedKernelBridge's per-cell wait (default: unbounded --
230
+ # see notebook_service.py) so a dead/unresponsive embedded kernel in
231
+ # TestNotebookKernelEmbedded fails that one test fast instead of
232
+ # holding the kernel's lock forever and wedging every later test in
233
+ # the same contract-test class behind it.
234
+ export WEIGHTSLAB_NOTEBOOK_EXEC_TIMEOUT="60"
224
235
  # A per-test timeout guards against any regression that hangs a test.
225
- python -m pytest ./tests -v --timeout=600
236
+ # -m "not scale": tests/backend/test_logger_scale.py deliberately
237
+ # builds a multi-million-row DuckDB fixture to stress-test large-scale
238
+ # queries (see its module docstring) -- real, by-design heavy work,
239
+ # not a hang, but easily 600s+ on a shared/throttled runner. Its own
240
+ # marker registration (pyproject.toml) already says "deselect with
241
+ # -m 'not scale'"; this job just never actually did. Each `scale`
242
+ # test hitting the per-test timeout instead of being deselected burns
243
+ # 10 minutes AND leaves the job stuck at the same progress % across
244
+ # unrelated pushes, which read as a hang.
245
+ python -m pytest ./tests -v --timeout=600 -m "not scale"
246
+
247
+ # ── Agent smoke test on a pip-installed package ───────────────────────────
248
+ # Proves the Option-2 promise end-to-end: install weightslab into a CLEAN
249
+ # virtualenv (from the built wheel, not editable) and confirm the OpenCode
250
+ # agent works with NO manual `npm i -g opencode` / `npx` step --
251
+ # 1. the managed OpenCode binary provisions and runs (`--version`),
252
+ # 2. `weightslab start` (UI) brings the agent server up even with no
253
+ # credential configured (the user can configure it afterwards), and
254
+ # 3. `weightslab start example` boots without ever hitting the
255
+ # "no opencode/npx" path.
256
+ agent-smoke:
257
+ needs: [ gate, install ]
258
+ if: ${{ needs.gate.outputs.run_ci == 'true' }}
259
+ runs-on: ubuntu-latest
260
+ timeout-minutes: 30
261
+ name: agent smoke (pip install)
262
+ steps:
263
+ - name: Checkout repository
264
+ uses: actions/checkout@v4
265
+
266
+ - name: Set up Python 3.11
267
+ uses: actions/setup-python@v6
268
+ with:
269
+ python-version: '3.11'
270
+
271
+ - name: Create clean virtual environment and install from wheel
272
+ run: |
273
+ python -m venv .venv-smoke
274
+ . .venv-smoke/bin/activate
275
+ python -m pip install --upgrade pip build
276
+ # Build a wheel and install THAT (a real "pip install the package",
277
+ # not an editable checkout) so package-data / entry points are exercised
278
+ # exactly as an end user would get them.
279
+ python -m build --wheel
280
+ python -m pip install dist/*.whl --extra-index-url https://download.pytorch.org/whl/cpu
281
+
282
+ - name: Agent smoke — provision opencode + weightslab start
283
+ env:
284
+ WEIGHTSLAB_LOG_LEVEL: INFO
285
+ # Force the managed provisioning path (do not depend on the runner's
286
+ # preinstalled Node): the standalone binary must run on its own.
287
+ WEIGHTSLAB_OPENCODE_AUTODOWNLOAD: '1'
288
+ run: |
289
+ . .venv-smoke/bin/activate
290
+ python scripts/ci/agent_smoke.py start
291
+
292
+ - name: Agent smoke — weightslab agent init (CLI, headless)
293
+ env:
294
+ WEIGHTSLAB_LOG_LEVEL: INFO
295
+ WEIGHTSLAB_OPENCODE_AUTODOWNLOAD: '1'
296
+ run: |
297
+ . .venv-smoke/bin/activate
298
+ python scripts/ci/agent_smoke.py cli-init
299
+
300
+ - name: Agent smoke — weightslab start example (agent optional, no error)
301
+ env:
302
+ WEIGHTSLAB_LOG_LEVEL: INFO
303
+ run: |
304
+ . .venv-smoke/bin/activate
305
+ python scripts/ci/agent_smoke.py example
226
306
 
227
307
  build-and-publish-dev:
228
308
  # Only publish to TestPyPI when pushing to main (not on PRs or dev branch pushes).
@@ -8,6 +8,8 @@ agents
8
8
  dist
9
9
  static
10
10
  weightslab/ui/static/
11
+ weightslab/**/AGENTS.md
12
+ weightslab/**/opencode.json
11
13
 
12
14
  # Ignore files and directories generated by Python
13
15
  logs
@@ -49,9 +51,10 @@ htmlcov-report
49
51
  experiment_service_pb2.py
50
52
  experiment_service_pb2_grpc.py
51
53
  settings.json
52
- laumch.json
54
+ launch.json
53
55
  pkg_main.py
54
56
  _version.py
57
+ .wl_opencode.json
55
58
 
56
59
  # Ignore extensions
57
60
  *.onnx
@@ -132,6 +132,37 @@ Conventions that matter for correctness:
132
132
  supports both `hp.get("lr")` and `hp["lr"]` (subscript == `.get`), and stays
133
133
  live — reads reflect in-place updates and re-registration.
134
134
 
135
+ Recording values (pick by what the value is *about*, not by convenience):
136
+
137
+ | Value describes | Verb | Example |
138
+ |---|---|---|
139
+ | one sample | `wl.save_signals(signals={...}, batch_ids=ids, ...)` | an image's loss |
140
+ | one annotation | `wl.save_instance_signals(...)` | one box's IoU |
141
+ | a group of samples | `wl.save_group_signals(signals={...}, group_ids=[...])` | a pair's contrastive loss |
142
+ | one training **step** | `wl.save_model_signals(signals={...})` | a gradient norm |
143
+
144
+ The first three write dataframe rows (sortable/filterable in the grid); the
145
+ fourth only plots a curve. Never fake a step-level value by broadcasting it
146
+ across `batch_ids` — that writes a number onto samples it was never about.
147
+
148
+ - **Training-dynamics signals** come free with
149
+ `wl.watch_or_edit(model, flag="model", track_model_signals=True,
150
+ model_signals_every_n_steps=N)`. That emits, per step and with no call in the
151
+ training loop: `metrics/global/{grad_norm,weights_norm}` and
152
+ `metrics/layer/<layer_id>/{grad_norm,weights_norm,activation_mean,
153
+ activation_std,activation_max,activation_min}`. `<layer_id>` is the same id
154
+ architecture ops (freeze/reset) address, so a bad curve names the layer to act
155
+ on. Only collects inside `guard_training_context`, so eval never contaminates
156
+ it. Implementation: `weightslab/weightslab/components/model_signals.py`;
157
+ example: `examples/Usecases/wl-fashion-mnist-signals`.
158
+ - Diagnosing from these: early-layer `grad_norm` → 0 with healthy late layers
159
+ = vanishing gradient; `grad_norm` spiking orders of magnitude = exploding;
160
+ `activation_std` → 0 on a layer = that layer went constant (dead
161
+ ReLU/saturated BN); `weights_norm` growing while loss flattens = needs decay.
162
+ - Per-layer curves need per-layer modules: an `nn.Sequential` block resolves
163
+ to ONE layer id, so a model built out of Sequentials gets one curve for the
164
+ whole block.
165
+
135
166
  ---
136
167
 
137
168
  ## 4. Configuration (environment variables)
@@ -0,0 +1 @@
1
+ # Changelog - 2026-08-26 v2.0.1 (1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weightslab
3
- Version: 1.5.0
3
+ Version: 2.0.1
4
4
  Summary: Paving the way between black-box and white-box modeling.
5
5
  Author-email: Alexandru-Andrei Rotaru <alexandru@graybx.com>, Guillaue Pelluet <guillaue@graybx.com>
6
6
  License: BSD 2-clause
@@ -27,7 +27,7 @@ Requires-Dist: torch<=2.9,>=2.1
27
27
  Requires-Dist: torchvision<1,>=0.16
28
28
  Requires-Dist: torchmetrics>=1.9
29
29
  Requires-Dist: grpcio<2,>=1.80
30
- Requires-Dist: protobuf<8,>=5.28.1
30
+ Requires-Dist: protobuf<8,>=6.31.1
31
31
  Requires-Dist: pydantic<3,>=2.7
32
32
  Requires-Dist: Pillow<12,>=10
33
33
  Requires-Dist: graphviz<1,>=0.20
@@ -35,13 +35,13 @@ Requires-Dist: onnx<=1.20,>=1.15
35
35
  Requires-Dist: tqdm<5,>=4.66
36
36
  Requires-Dist: python-dotenv<2,>=1
37
37
  Requires-Dist: langchain-core<2,>=0.3
38
- Requires-Dist: langchain-ollama<2,>=0.2
39
- Requires-Dist: langchain-openai<2,>=0.2
40
38
  Requires-Dist: ipykernel<7,>=6.29
41
39
  Requires-Dist: jupyter_client<9,>=8.6
42
40
  Requires-Dist: notebook>=7.6.1
43
41
  Requires-Dist: ipywidgets>=8.1.8
44
42
  Requires-Dist: matplotlib<4,>=3.7
43
+ Requires-Dist: psutil<8,>=5.9
44
+ Requires-Dist: nvidia-ml-py<14,>=11
45
45
  Provides-Extra: ultralytics
46
46
  Requires-Dist: ultralytics>=8.4.16; extra == "ultralytics"
47
47
  Provides-Extra: onnx
@@ -51,6 +51,8 @@ Provides-Extra: dev
51
51
  Requires-Dist: grpcio-tools<2,>=1.62; extra == "dev"
52
52
  Requires-Dist: torchinfo<2,>=1.8; extra == "dev"
53
53
  Requires-Dist: httpx<1,>=0.27; extra == "dev"
54
+ Provides-Extra: export
55
+ Requires-Dist: opencv-python-headless<5,>=4.8; extra == "export"
54
56
  Provides-Extra: utest
55
57
  Requires-Dist: torchaudio<2.9,>=2.1; python_version < "3.13" and extra == "utest"
56
58
  Requires-Dist: torchaudio<3,>=2.9; python_version >= "3.13" and extra == "utest"
@@ -61,13 +63,11 @@ Requires-Dist: pytest>=9.0.2; extra == "utest"
61
63
  Dynamic: license-file
62
64
 
63
65
  <div align="center">
64
- <a href="https://grayboxtech.github.io/weightslab/latest/index.html">
65
- <picture>
66
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
67
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
68
- <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
69
- </picture>
70
- </a>
66
+ <picture>
67
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
68
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
69
+ <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
70
+ </picture>
71
71
  <br>
72
72
 
73
73
  </div>
@@ -107,7 +107,7 @@ WeightsLab hooks into your existing PyTorch training loop and exposes a live UI
107
107
 
108
108
  ## Weightslab in Motion
109
109
  <div align="center">
110
- <img src="https://github.com/GrayboxTech/assets/blob/main/GIF/weightslab_demo_bdd.gif" width="1280" alt="WeightsLab Studio demo" />
110
+ <img width="960" height="540" alt="Image" src="https://github.com/user-attachments/assets/2e8f8846-efcd-4188-9d60-fee0674d1105" />
111
111
  <!-- <sub><a href="https://youtu.be/GBBDDaJQLWk">▶ Watch full demo</a></sub> -->
112
112
  </div>
113
113
 
@@ -383,6 +383,20 @@ Find our documentation [online](https://grayboxtech.github.io/weightslab/latest/
383
383
 
384
384
  </details>
385
385
 
386
+ <details>
387
+ <summary><b>Agent: chat with your training run (OpenCode)</b></summary>
388
+
389
+ <br>
390
+
391
+ WeightsLab ships two distinct agent surfaces — the backend SDK agent for data-manipulation
392
+ queries, and a local [OpenCode](https://opencode.ai)-backed agent with a full bash/file
393
+ toolset that can restart training, edit your code, and run recurring `/loop` monitoring
394
+ jobs. See the [Agent docs](https://grayboxtech.github.io/weightslab/latest/agent.html) for
395
+ how the two connect, how to point either one at a local model, and the full `/loop`
396
+ reference.
397
+
398
+ </details>
399
+
386
400
  </details>
387
401
 
388
402
  <details>
@@ -1,11 +1,9 @@
1
1
  <div align="center">
2
- <a href="https://grayboxtech.github.io/weightslab/latest/index.html">
3
- <picture>
4
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
5
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
6
- <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
7
- </picture>
8
- </a>
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-product-screen.png" />
5
+ <img alt="WeightsLab Banner" src="https://raw.githubusercontent.com/GrayboxTech/.github/main/profile/weightslab-banner-light.png" width="100%" />
6
+ </picture>
9
7
  <br>
10
8
 
11
9
  </div>
@@ -45,7 +43,7 @@ WeightsLab hooks into your existing PyTorch training loop and exposes a live UI
45
43
 
46
44
  ## Weightslab in Motion
47
45
  <div align="center">
48
- <img src="https://github.com/GrayboxTech/assets/blob/main/GIF/weightslab_demo_bdd.gif" width="1280" alt="WeightsLab Studio demo" />
46
+ <img width="960" height="540" alt="Image" src="https://github.com/user-attachments/assets/2e8f8846-efcd-4188-9d60-fee0674d1105" />
49
47
  <!-- <sub><a href="https://youtu.be/GBBDDaJQLWk">▶ Watch full demo</a></sub> -->
50
48
  </div>
51
49
 
@@ -321,6 +319,20 @@ Find our documentation [online](https://grayboxtech.github.io/weightslab/latest/
321
319
 
322
320
  </details>
323
321
 
322
+ <details>
323
+ <summary><b>Agent: chat with your training run (OpenCode)</b></summary>
324
+
325
+ <br>
326
+
327
+ WeightsLab ships two distinct agent surfaces — the backend SDK agent for data-manipulation
328
+ queries, and a local [OpenCode](https://opencode.ai)-backed agent with a full bash/file
329
+ toolset that can restart training, edit your code, and run recurring `/loop` monitoring
330
+ jobs. See the [Agent docs](https://grayboxtech.github.io/weightslab/latest/agent.html) for
331
+ how the two connect, how to point either one at a local model, and the full `/loop`
332
+ reference.
333
+
334
+ </details>
335
+
324
336
  </details>
325
337
 
326
338
  <details>
@@ -0,0 +1,23 @@
1
+ # Agent Configuration
2
+ # ###################
3
+ # Variables can be defined from env. variables
4
+ # or directly in the config file.
5
+ # Config file values will override env. variables if both are set.
6
+ # If cloned, env. variables can be defined in a .env file at the root of the repository.
7
+ #
8
+ # OpenCode (opencode.ai) is the only supported agent backend: a local OpenCode
9
+ # server backs every LLM call. There is no API key here -- the credential
10
+ # lives in OpenCode's own config, entered once via `opencode auth login` or
11
+ # the Weights Studio landing page's login modal.
12
+ agent:
13
+ # URL of the local OpenCode server (can also be set as env variable
14
+ # OPENCODE_URL). Defaults to http://127.0.0.1:4096. This is the SAME shared
15
+ # root env var the frontend reads, so set it once and both sides point at
16
+ # one server.
17
+ opencode_url: http://127.0.0.1:4096
18
+
19
+ # OpenCode model, "providerID/modelID" (can also be set as env variable
20
+ # OPENCODE_MODEL). Empty string self-heals to whatever OpenCode's own
21
+ # config was last set to, or a configured provider default, falling back
22
+ # to the free-tier "opencode/deepseek-v4-flash-free" if neither resolves.
23
+ opencode_model: "opencode/deepseek-v4-flash-free"
@@ -0,0 +1,254 @@
1
+ #!/usr/bin/env python3
2
+ """Regenerate ``docs/whats_new.rst`` from the repository's GitHub releases.
3
+
4
+ The page is committed as static RST rather than fetched while Sphinx runs: a
5
+ docs build that reached out to api.github.com would fail on an offline machine,
6
+ in an air-gapped CI runner, or simply when the unauthenticated rate limit is
7
+ spent -- and it would fail at the moment someone is trying to build the docs,
8
+ which is the worst time to discover it. Regenerating is a deliberate step::
9
+
10
+ python docs/_scripts/update_whats_new.py
11
+
12
+ Only **stable** releases are listed. Every tag push also publishes a
13
+ ``vX.Y.Z.devN`` pre-release to TestPyPI for verification (see ci.yml's
14
+ ``build-and-publish-dev-release``), and those outnumber the real releases
15
+ roughly two to one -- a "What's New" page carrying them would be mostly noise
16
+ about build plumbing.
17
+
18
+ Each summary is the release body **between the "Welcome" heading and the
19
+ "What's Changed precisely:" heading**, which is where the release template puts
20
+ the human description. Two transformations make that readable:
21
+
22
+ * the boilerplate wrapping it (identical in all ten releases) is stripped;
23
+ * the template flattens every PR description onto a single line, so the
24
+ structure it had as markdown survives only as inline ``" - "`` separators and
25
+ stray ``"## Heading"`` markers -- ``_description_lines`` recovers it as real
26
+ nested bullets. Without that step the page is ten paragraphs of run-on text.
27
+ """
28
+
29
+ from __future__ import annotations
30
+
31
+ import json
32
+ import re
33
+ import urllib.request
34
+ from datetime import datetime, timezone
35
+ from pathlib import Path
36
+
37
+ REPO = "GrayboxTech/weightslab"
38
+ RELEASE_COUNT = 10
39
+ OUTPUT = Path(__file__).resolve().parents[1] / "whats_new.rst"
40
+
41
+ LEAD_IN = re.compile(
42
+ r"^Welcome to the \*\*[^*]+\*\* release of WeightsLab\.[^\n]*\n+", re.M)
43
+ TAIL = re.compile(r"\n*One platform\. Unmatched flexibility\..*\Z", re.S)
44
+
45
+ SECTION_MARKER = re.compile(r"\s*#{2,4}\s+([A-Z][^#\n]{0,40}?)\s+(?=[-*`\[A-Z])")
46
+ ITEM_SPLIT = re.compile(r"\s+-\s+(?=[\[`*\w])")
47
+ PR_BULLET = re.compile(r"^\[([^\]]+)\]\(([^)]+)\)\s*:?\s*(.*)$", re.S)
48
+
49
+
50
+ def fetch_releases() -> list:
51
+ releases, page = [], 1
52
+ while True:
53
+ url = f"https://api.github.com/repos/{REPO}/releases?per_page=100&page={page}"
54
+ req = urllib.request.Request(url, headers={"Accept": "application/vnd.github+json"})
55
+ with urllib.request.urlopen(req, timeout=30) as resp:
56
+ batch = json.load(resp)
57
+ releases += batch
58
+ if len(batch) < 100:
59
+ return releases
60
+ page += 1
61
+
62
+
63
+ def stable_releases(releases: list) -> list:
64
+ out = [r for r in releases if not r.get("prerelease") and not r.get("draft")]
65
+ out.sort(key=lambda r: r.get("published_at") or "", reverse=True)
66
+ return out[:RELEASE_COUNT]
67
+
68
+
69
+ def welcome_section(body: str) -> str:
70
+ match = re.search(
71
+ r"^#{1,4}\s*Welcome\s*$(.*?)^#{1,4}\s*What's Changed", body or "", re.M | re.S)
72
+ return (match.group(1) if match else "").strip()
73
+
74
+
75
+ def _strip_boilerplate(text: str) -> str:
76
+ return TAIL.sub("", LEAD_IN.sub("", text)).strip()
77
+
78
+
79
+ def md_inline_to_rst(text: str) -> str:
80
+ """Convert the inline markdown that turns up in PR descriptions.
81
+
82
+ Deliberately small: these are PR descriptions pasted into a release
83
+ template, so they carry links, bold, and inline code and little else.
84
+ """
85
+ text = re.sub(r"`([^`]+)`", r"``\1``", text)
86
+ text = re.sub(r"\[([^\]]+)\]\(([^)]+)\)", r"`\1 <\2>`__", text)
87
+ text = re.sub(r"_\(([^)]+)\)_", r"*(\1)*", text)
88
+ text = re.sub(r"\s{2,}", " ", text)
89
+ return text.strip()
90
+
91
+
92
+ def _sanitize(text: str) -> str:
93
+ """Repair the two things the release template's flattening leaves behind.
94
+
95
+ A GitHub task-list marker (``[ ]``) carries no meaning once the checklist
96
+ has been flattened into prose, and an unbalanced backtick is an outright
97
+ RST error -- which happens whenever the template truncates a long PR body
98
+ mid-token, as it does with an ellipsis. Closing the text at the last
99
+ balanced point is honest about the truncation and keeps the build clean;
100
+ the card links to the full release notes anyway.
101
+ """
102
+ text = re.sub(r"^[-*]\s+", "", text.strip())
103
+ text = re.sub(r"^\[[ xX]\]\s*", "", text)
104
+ for marker in ("`", "**"):
105
+ if text.count(marker) % 2:
106
+ text = text[:text.rindex(marker)].rstrip(" .") + " …"
107
+ return text.strip()
108
+
109
+
110
+ def _wrap(text: str, width: int, first: str, rest: str) -> list:
111
+ """Greedy wrap that keeps an RST bullet or indent prefix on the first line."""
112
+ words = text.split()
113
+ if not words:
114
+ return []
115
+ out, line = [], first + words[0]
116
+ for word in words[1:]:
117
+ if len(line) + 1 + len(word) > width:
118
+ out.append(line)
119
+ line = rest + word
120
+ else:
121
+ line += " " + word
122
+ out.append(line)
123
+ return out
124
+
125
+
126
+ def _description_lines(description: str, indent: str) -> list:
127
+ """Render one PR's flattened description as nested RST beneath its bullet."""
128
+ if not description.strip():
129
+ return []
130
+
131
+ marked = SECTION_MARKER.sub(
132
+ lambda m: "\n@@" + m.group(1).rstrip(":") + "@@\n", description)
133
+
134
+ lines = []
135
+ for block in marked.split("\n"):
136
+ block = block.strip()
137
+ if not block:
138
+ continue
139
+ heading = re.fullmatch(r"@@(.+)@@", block)
140
+ if heading:
141
+ lines.append("")
142
+ lines.append(indent + "**" + md_inline_to_rst(heading.group(1)) + "**")
143
+ continue
144
+ items = [i.strip() for i in ITEM_SPLIT.split(block) if i.strip()]
145
+ lines.append("")
146
+ if len(items) > 1:
147
+ for item in items:
148
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(item)), 86,
149
+ first=indent + "- ", rest=indent + " "))
150
+ else:
151
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(items[0])), 86,
152
+ first=indent, rest=indent))
153
+ return lines
154
+
155
+
156
+ def summary_to_rst(body: str) -> list:
157
+ text = _strip_boilerplate(welcome_section(body))
158
+ if not text:
159
+ return [" *No description was published with this release.*"]
160
+
161
+ lines, entries, current = [], [], None
162
+ for raw in text.splitlines():
163
+ stripped = raw.strip()
164
+ if not stripped or stripped == "---":
165
+ continue
166
+ if stripped.startswith("- "):
167
+ current = [stripped[2:]]
168
+ entries.append(current)
169
+ elif stripped.startswith(">") and current is not None:
170
+ current.append(stripped.lstrip("> ").strip())
171
+ elif current is not None:
172
+ current.append(stripped)
173
+ else:
174
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(stripped)), 86, first=" ", rest=" "))
175
+
176
+ for entry in entries:
177
+ joined = " ".join(entry).strip()
178
+ match = PR_BULLET.match(joined)
179
+ if match:
180
+ label, url, description = match.groups()
181
+ lines.append(" - `" + label.strip() + " <" + url.strip() + ">`__")
182
+ lines.extend(_description_lines(description, " "))
183
+ else:
184
+ lines.extend(_wrap(_sanitize(md_inline_to_rst(joined)), 86, first=" - ", rest=" "))
185
+ lines.append("")
186
+
187
+ while lines and not lines[-1].strip():
188
+ lines.pop()
189
+ return lines
190
+
191
+
192
+ HEADER = """.. _whats-new:
193
+
194
+ What's New
195
+ ==========
196
+
197
+ The last {count} stable releases of WeightsLab, newest first. Each card links to
198
+ its full release notes on GitHub, where the complete "What's Changed" commit
199
+ list lives.
200
+
201
+ .. note::
202
+
203
+ Only stable releases appear here. Every tag also publishes a
204
+ ``vX.Y.Z.devN`` pre-release to TestPyPI for verification; those are build
205
+ plumbing rather than user-facing changes.
206
+
207
+ .. tip::
208
+
209
+ Upgrade with ``pip install --upgrade weightslab``. Setting up for the first
210
+ time? Start at :doc:`quickstart`.
211
+
212
+ """
213
+
214
+ FOOTER = """
215
+ ----
216
+
217
+ `Every release on GitHub → <https://github.com/{repo}/releases>`__
218
+
219
+ .. This page is generated. To refresh it after a release:
220
+ .. python docs/_scripts/update_whats_new.py
221
+ .. Last generated: {generated}
222
+ """
223
+
224
+
225
+ def build_rst(releases: list) -> str:
226
+ parts = [HEADER.format(count=len(releases))]
227
+ for release in releases:
228
+ published = datetime.fromisoformat(
229
+ release["published_at"].replace("Z", "+00:00")).astimezone(timezone.utc)
230
+ date_label = f"{published.strftime('%B')} {published.day}, {published.year}"
231
+
232
+ parts.append(".. card::\n")
233
+ parts.append(f" :link: {release['html_url']}\n")
234
+ parts.append(" :class-card: wl-release-card\n\n")
235
+ parts.append(" .. rst-class:: wl-release-date\n\n")
236
+ parts.append(f" {date_label}\n\n")
237
+ parts.append(" .. rst-class:: wl-release-version\n\n")
238
+ parts.append(f" {release['tag_name']}\n\n")
239
+ parts.append("\n".join(summary_to_rst(release.get("body") or "")))
240
+ parts.append("\n\n")
241
+ parts.append(FOOTER.format(
242
+ repo=REPO, generated=datetime.now(timezone.utc).strftime("%Y-%m-%d")))
243
+ return "".join(parts)
244
+
245
+
246
+ def main() -> None:
247
+ releases = stable_releases(fetch_releases())
248
+ OUTPUT.write_text(build_rst(releases), encoding="utf-8")
249
+ print(f"wrote {OUTPUT} — {len(releases)} releases, "
250
+ f"{releases[-1]['tag_name']} … {releases[0]['tag_name']}")
251
+
252
+
253
+ if __name__ == "__main__":
254
+ main()