weightslab 1.4.2__tar.gz → 2.0.0__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.
- {weightslab-1.4.2 → weightslab-2.0.0}/.github/workflows/release.yml +34 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/.gitignore +4 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/AGENTS.md +32 -0
- weightslab-2.0.0/CHANGELOG.md +1 -0
- {weightslab-1.4.2/weightslab.egg-info → weightslab-2.0.0}/PKG-INFO +31 -12
- {weightslab-1.4.2 → weightslab-2.0.0}/README.md +20 -8
- weightslab-2.0.0/agent_config.yaml +23 -0
- weightslab-2.0.0/docs/_scripts/update_whats_new.py +254 -0
- weightslab-2.0.0/docs/_static/code-copy.js +124 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/custom.css +232 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/examples-gallery.js +7 -0
- weightslab-2.0.0/docs/_static/screenshots/README.md +17 -0
- weightslab-2.0.0/docs/_static/screenshots/agent-bar.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/agent-window.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/bottom-bar.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/data-grid.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/evaluate-popover.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/export-annotations.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/header-bar.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/image-detail-modal.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/landing-page.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/left-panel-details.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/left-panel-hyperparameters.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/left-panel-tags-painter.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/left-panel-training.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/list-exploration.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/media-player.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/modal-overlays.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/mode-selector.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/notebook-panel.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/plot-error-band.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/plot-merge.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/plot-search.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/plots-board.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/pointcloud-viewer.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/quick-filters.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/refresh-config.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/report-button.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/resource-signals.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/selection-context-menu.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/tagging-modal.png +0 -0
- weightslab-2.0.0/docs/_static/screenshots/training-controls.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/version-switcher.js +46 -6
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/wl-topnav.js +9 -0
- weightslab-2.0.0/docs/agent.rst +570 -0
- weightslab-2.0.0/docs/build_docs.sh +72 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/checkpointing.rst +2 -2
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/conf.py +18 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/configuration.rst +131 -79
- weightslab-2.0.0/docs/data_exploration.rst +134 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/index.rst +8 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/usecases/index.rst +2 -1
- weightslab-2.0.0/docs/examples/usecases/model_signals.rst +162 -0
- weightslab-2.0.0/docs/experiment_reports.rst +333 -0
- weightslab-2.0.0/docs/export.rst +137 -0
- weightslab-2.0.0/docs/four_way_approach.rst +144 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/grpc/audit_logger.rst +1 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/grpc/grpc_functions.rst +1 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/grpc/index.rst +1 -1
- weightslab-2.0.0/docs/hyperparameters.rst +151 -0
- weightslab-2.0.0/docs/index.rst +179 -0
- weightslab-2.0.0/docs/logger.rst +202 -0
- weightslab-2.0.0/docs/migration/from_3lc.rst +196 -0
- weightslab-2.0.0/docs/migration/from_tensorboard.rst +176 -0
- weightslab-2.0.0/docs/migration/from_voxel51.rst +197 -0
- weightslab-2.0.0/docs/migration/from_wandb.rst +193 -0
- weightslab-2.0.0/docs/migration/index.rst +70 -0
- weightslab-2.0.0/docs/model_interaction.rst +298 -0
- weightslab-2.0.0/docs/notebooks.rst +100 -0
- weightslab-2.0.0/docs/quickstart.rst +217 -0
- weightslab-2.0.0/docs/resource_monitoring.rst +196 -0
- weightslab-1.4.2/docs/usage/good_practice.rst → weightslab-2.0.0/docs/usage/good_practice/data_and_loaders.rst +6 -81
- weightslab-2.0.0/docs/usage/good_practice/index.rst +24 -0
- weightslab-2.0.0/docs/usage/good_practice/signals.rst +60 -0
- weightslab-2.0.0/docs/usage/good_practice/training_loop.rst +62 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/usage/parameters.rst +11 -20
- weightslab-2.0.0/docs/usage.rst +18 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/user_commands.rst +86 -11
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/user_functions.rst +736 -16
- weightslab-2.0.0/docs/weights_studio/agent.rst +115 -0
- weightslab-2.0.0/docs/weights_studio/cli_console.rst +42 -0
- weightslab-2.0.0/docs/weights_studio/configuration.rst +74 -0
- weightslab-2.0.0/docs/weights_studio/data_board.rst +96 -0
- weightslab-2.0.0/docs/weights_studio/deployment.rst +72 -0
- weightslab-2.0.0/docs/weights_studio/detail_modal.rst +56 -0
- weightslab-2.0.0/docs/weights_studio/header_bar.rst +96 -0
- weightslab-2.0.0/docs/weights_studio/index.rst +97 -0
- weightslab-2.0.0/docs/weights_studio/landing_page.rst +29 -0
- weightslab-2.0.0/docs/weights_studio/left_panel.rst +84 -0
- weightslab-2.0.0/docs/weights_studio/notebook.rst +119 -0
- weightslab-2.0.0/docs/weights_studio/plots.rst +69 -0
- weightslab-2.0.0/docs/weights_studio/ports.rst +243 -0
- weightslab-2.0.0/docs/weights_studio/reports.rst +72 -0
- weightslab-2.0.0/docs/weights_studio/resource_monitoring.rst +140 -0
- weightslab-2.0.0/docs/weights_studio/security.rst +47 -0
- weightslab-2.0.0/docs/weights_studio/troubleshooting.rst +13 -0
- weightslab-2.0.0/docs/whats_new.rst +248 -0
- weightslab-2.0.0/opencode.json +10 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/pyproject.toml +51 -4
- weightslab-2.0.0/resource_monitoring.yaml +39 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_cli.py +84 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_cli_additional_unit.py +8 -10
- weightslab-2.0.0/tests/backend/test_export_annotations_api.py +62 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_instance_signal_logger.py +109 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_logger_core.py +226 -12
- weightslab-2.0.0/tests/backend/test_logger_scale.py +513 -0
- weightslab-2.0.0/tests/backend/test_signal_outliers.py +574 -0
- weightslab-2.0.0/tests/data/test_video_utils.py +316 -0
- weightslab-2.0.0/tests/export/test_collect.py +247 -0
- weightslab-2.0.0/tests/export/test_exporter.py +86 -0
- weightslab-2.0.0/tests/export/test_formats.py +142 -0
- weightslab-2.0.0/tests/gRPC/test_get_media.py +434 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_get_point_cloud.py +83 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_grpc_user_actions.py +6 -3
- weightslab-2.0.0/tests/general/test_cli_export.py +141 -0
- weightslab-2.0.0/tests/general/test_four_way_standalone.py +599 -0
- weightslab-2.0.0/tests/general/test_model_signals.py +230 -0
- weightslab-2.0.0/tests/monitoring/test_resource_monitor.py +360 -0
- weightslab-2.0.0/tests/test_opencode_process.py +219 -0
- weightslab-2.0.0/tests/test_opencode_shared_server_integration.py +164 -0
- weightslab-2.0.0/tests/test_report_entrypoints.py +329 -0
- weightslab-2.0.0/tests/test_reporting.py +587 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/test_src_functions.py +80 -6
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_agent_live_prompt_evaluation.py +37 -46
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_agent_model_and_safety_unit.py +11 -70
- weightslab-2.0.0/tests/trainer/services/test_agent_opencode_provider.py +448 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_agent_prompt_unit.py +52 -78
- weightslab-2.0.0/tests/trainer/services/test_agent_service_unit.py +185 -0
- weightslab-2.0.0/tests/trainer/services/test_data_service_step_snapshot.py +110 -0
- weightslab-2.0.0/tests/trainer/services/test_notebook_service_unit.py +488 -0
- weightslab-2.0.0/tests/trainer/services/test_opencode_chat.py +448 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_trainer_services_server.py +92 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_trainer_services_unit.py +335 -3
- weightslab-2.0.0/tests/ui/fake_opencode.py +261 -0
- weightslab-2.0.0/tests/ui/test_server_agent.py +550 -0
- weightslab-2.0.0/tests/ui/test_server_data_query.py +211 -0
- weightslab-2.0.0/tests/ui/test_server_experiment_reports.py +132 -0
- weightslab-2.0.0/tests/ui/test_server_loop.py +487 -0
- weightslab-2.0.0/tests/ui/test_server_opencode_wire.py +361 -0
- weightslab-2.0.0/tests/ui/test_server_shutdown_signals.py +151 -0
- weightslab-2.0.0/tests/ui/test_server_tracked_processes.py +235 -0
- weightslab-2.0.0/weightslab/AGENTS.md +413 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/__init__.py +9 -3
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/_version.py +3 -3
- weightslab-2.0.0/weightslab/assets/chart.umd.min.js +14 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/cli.py +273 -150
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/dataloader_interface.py +19 -22
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/ledgers.py +12 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/logger.py +981 -67
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/model_interface.py +69 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/cli.py +251 -18
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/checkpoint_manager.py +112 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/experiment_hash.py +6 -2
- weightslab-2.0.0/weightslab/components/experiment_naming.py +33 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/global_monitoring.py +49 -3
- weightslab-2.0.0/weightslab/components/model_signals.py +492 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/data_samples_with_ops.py +80 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/data_utils.py +78 -3
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/dataframe_manager.py +158 -0
- weightslab-2.0.0/weightslab/data/media_store.py +219 -0
- weightslab-2.0.0/weightslab/data/video_utils.py +475 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Colab/wl-colab-quickstart.ipynb +12 -3
- weightslab-2.0.0/weightslab/examples/Notebooks/Local/wl-local-studio-quickstart.ipynb +93 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-ads-recommendation.ipynb +24 -25
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-classification.ipynb +33 -76
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-clustering.ipynb +236 -243
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-detection.ipynb +362 -358
- weightslab-2.0.0/weightslab/examples/Notebooks/PyTorch/wl-fraud-detection.ipynb +588 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/wl-segmentation.ipynb +40 -37
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-classification.ipynb +35 -30
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-clustering.ipynb +6 -24
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-detection.ipynb +6 -24
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-generation.ipynb +6 -24
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/PyTorch/ws-segmentation.ipynb +6 -24
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-brain-tumor-detection-dataset.ipynb +5 -8
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-carparts-segmentation-dataset.ipynb +377 -376
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-construction-ppe-detection-dataset.ipynb +360 -359
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-crack-segmentation-dataset.ipynb +378 -377
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-homeobjects-dataset.ipynb +360 -359
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-kitti-detection-dataset.ipynb +360 -359
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-medical-pills-dataset.ipynb +381 -380
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Ultralytics/wl-how-to-train-ultralytics-yolo-on-package-segmentation-dataset.ipynb +378 -377
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Usecases/wl-segmentation-loss-shapes-classification.ipynb +24 -17
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Notebooks/Usecases/ws-segmentation-loss-shapes-classification.ipynb +26 -24
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/main.py +10 -4
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-classification/config.yaml +8 -5
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-classification/main.py +13 -7
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/main.py +1 -2
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection/utils/data.py +226 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling/README.md +95 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling/config.yaml +29 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling/main.py +107 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/main.py +10 -4
- {weightslab-1.4.2/weightslab/examples/PyTorch/wl-generation → weightslab-2.0.0/weightslab/examples/PyTorch/wl-image-generation}/config.yaml +1 -1
- {weightslab-1.4.2/weightslab/examples/PyTorch/wl-generation → weightslab-2.0.0/weightslab/examples/PyTorch/wl-image-generation}/main.py +9 -3
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/config.yaml +1 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/main.py +1 -2
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-config/config.yaml +21 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-config/main.py +178 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-data/main.py +206 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-logger/main.py +219 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-standalone-model/main.py +277 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/README.md +147 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/config.yaml +58 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/main.py +364 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/utils/data.py +357 -0
- weightslab-2.0.0/weightslab/examples/PyTorch/wl-video-generation/utils/model.py +187 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Ultralytics/wl-detection/config.yaml +2 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/main.py +1 -2
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/config.yaml +0 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/main.py +27 -23
- weightslab-2.0.0/weightslab/examples/Usecases/wl-fashion-mnist-signals/config.yaml +44 -0
- weightslab-2.0.0/weightslab/examples/Usecases/wl-fashion-mnist-signals/main.py +446 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/ws-signals-mnist/main.py +23 -17
- weightslab-2.0.0/weightslab/export/__init__.py +16 -0
- weightslab-2.0.0/weightslab/export/collect.py +331 -0
- weightslab-2.0.0/weightslab/export/exporter.py +87 -0
- weightslab-2.0.0/weightslab/export/formats/cvat.py +56 -0
- weightslab-2.0.0/weightslab/export/formats/label_studio.py +61 -0
- weightslab-2.0.0/weightslab/export/formats/v7_darwin.py +70 -0
- weightslab-2.0.0/weightslab/export/models.py +35 -0
- weightslab-2.0.0/weightslab/monitoring/__init__.py +18 -0
- weightslab-2.0.0/weightslab/monitoring/resource_monitor.py +470 -0
- weightslab-2.0.0/weightslab/opencode.json +4 -0
- weightslab-2.0.0/weightslab/opencode_process.py +458 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/proto/experiment_service.proto +345 -2
- weightslab-2.0.0/weightslab/proto/experiment_service_pb2.py +262 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/proto/experiment_service_pb2_grpc.py +635 -0
- weightslab-2.0.0/weightslab/reporting.py +1887 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/src.py +869 -80
- weightslab-2.0.0/weightslab/trainer/services/__init__.py +0 -0
- weightslab-2.0.0/weightslab/trainer/services/agent/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent.py +378 -311
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/intent_prompt.py +72 -0
- weightslab-2.0.0/weightslab/trainer/services/agent/notebook_prompt.py +54 -0
- weightslab-2.0.0/weightslab/trainer/services/agent/opencode_chat.py +373 -0
- weightslab-2.0.0/weightslab/trainer/services/agent/report_prompt.py +65 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent_service.py +68 -7
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/data_service.py +816 -45
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/experiment_service.py +318 -53
- weightslab-2.0.0/weightslab/trainer/services/notebook_service.py +1099 -0
- weightslab-2.0.0/weightslab/trainer/services/utils/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/utils/tools.py +6 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/trainer_services.py +100 -4
- weightslab-2.0.0/weightslab/ui/server.py +2502 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- weightslab-2.0.0/weightslab/ui/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- weightslab-1.4.2/weightslab/ui/static/assets/experiment_service-DQrh-y3X.js → weightslab-2.0.0/weightslab/ui/static/assets/experiment_service-D5Hvut2A.js +1 -1
- weightslab-2.0.0/weightslab/ui/static/assets/index-DSQEvsQq.js +5518 -0
- weightslab-2.0.0/weightslab/ui/static/assets/index-fwUoZNsu.css +1 -0
- weightslab-2.0.0/weightslab/ui/static/images/darkmode/logo.png +0 -0
- weightslab-2.0.0/weightslab/ui/static/images/favicon.png +0 -0
- weightslab-2.0.0/weightslab/ui/static/images/lightmode/logo.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/index.html +253 -23
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/utils/sync-frontend.sh +1 -1
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/tools.py +20 -0
- {weightslab-1.4.2 → weightslab-2.0.0/weightslab.egg-info}/PKG-INFO +31 -12
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/SOURCES.txt +205 -7
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/requires.txt +11 -3
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/scm_file_list.json +433 -294
- weightslab-2.0.0/weightslab.egg-info/scm_version.json +8 -0
- weightslab-1.4.2/CHANGELOG.md +0 -1
- weightslab-1.4.2/agent_config.yaml +0 -28
- weightslab-1.4.2/docs/agent.rst +0 -650
- weightslab-1.4.2/docs/data_exploration.rst +0 -60
- weightslab-1.4.2/docs/four_way_approach.rst +0 -58
- weightslab-1.4.2/docs/hyperparameters.rst +0 -53
- weightslab-1.4.2/docs/index.rst +0 -164
- weightslab-1.4.2/docs/logger.rst +0 -251
- weightslab-1.4.2/docs/model_interaction.rst +0 -44
- weightslab-1.4.2/docs/quickstart.rst +0 -188
- weightslab-1.4.2/docs/usage.rst +0 -18
- weightslab-1.4.2/docs/weights_studio.rst +0 -425
- weightslab-1.4.2/tests/trainer/services/test_agent_service_unit.py +0 -104
- weightslab-1.4.2/weightslab/examples/Notebooks/PyTorch/wl-fraud-detection.ipynb +0 -232
- weightslab-1.4.2/weightslab/proto/experiment_service_pb2.py +0 -204
- weightslab-1.4.2/weightslab/ui/server.py +0 -561
- weightslab-1.4.2/weightslab/ui/static/assets/index-BL7NV5ej.css +0 -1
- weightslab-1.4.2/weightslab/ui/static/assets/index-DhU_F1Hm.js +0 -4475
- weightslab-1.4.2/weightslab.egg-info/scm_version.json +0 -8
- {weightslab-1.4.2 → weightslab-2.0.0}/.coverage +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/.gitattributes +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/.github/workflows/ci.yml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/.github/workflows/docs-pages.yml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/LICENSE +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/.gitkeep +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/favicon.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/github-stars.js +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/logo-dark.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/logo-light.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/weights_studio_architecture.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_static/wl-ribbon.js +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_templates/.gitkeep +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/_templates/sidebar/brand.html +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/lightning/classification.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/lightning/index.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/classification.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/clustering.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/detection.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/generation.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/index.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/pytorch/segmentation.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/ultralytics/detection.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/ultralytics/index.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/usecases/lidar_detection.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/examples/usecases/loss_shape_classification.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/pytorch_lightning.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/requirements.txt +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/segmentation_usecase.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/ultralytics.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/docs/usecases.rst +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/setup.cfg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_audit_logger.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_compare_dataloaders.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_data_loader_interface.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_ledgers.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_model_interface_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_optimizer_interface.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_optimizer_interface_additional_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_tunnel.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_write_dataframe.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/backend/test_write_history.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/chaos_monkeys_utests/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/chaos_monkeys_utests/test_grpc_chaos_monkey_robustness.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/test_checkpoint_workflow.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/test_experiment_hash_and_art.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/components/test_global_monitoring_unit.py +0 -0
- {weightslab-1.4.2/tests/gRPC → weightslab-2.0.0/tests/export}/__init__.py +0 -0
- {weightslab-1.4.2/tests/general → weightslab-2.0.0/tests/gRPC}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_grpc_histogram_categorical.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/gRPC/test_grpc_tag_operations.py +0 -0
- {weightslab-1.4.2/tests/integrations → weightslab-2.0.0/tests/general}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_auditor_mode.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_cli.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_hyperparams.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_signal_refinements.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_signals.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/general/test_signals_wrapping.py +0 -0
- {weightslab-1.4.2/tests/model → weightslab-2.0.0/tests/integrations}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/integrations/test_pytorch_lightning_integration.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/integrations/ultralytics/ddp/ddp_ablation.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/integrations/ultralytics/ddp/ddp_test_suite.py +0 -0
- {weightslab-1.4.2/tests/modules → weightslab-2.0.0/tests/model}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_constraint_generation.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_dependency_patterns.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_logger.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_model_with_ops.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_model_with_ops_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/model/test_tracking.py +0 -0
- {weightslab-1.4.2/tests/trainer → weightslab-2.0.0/tests/modules}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/modules/test_modules_with_ops.py +0 -0
- {weightslab-1.4.2/tests/trainer/services → weightslab-2.0.0/tests/monitoring}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/test_secure_communication.py +0 -0
- {weightslab-1.4.2/tests/utils → weightslab-2.0.0/tests/trainer}/__init__.py +0 -0
- {weightslab-1.4.2/tests/watchdog → weightslab-2.0.0/tests/trainer/services}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_data_service_sample_id_query.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_data_service_tabular_task_type.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_data_service_text_predictions.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/services/test_signal_trajectory.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/trainer/test_trainer_tools.py +0 -0
- {weightslab-1.4.2/weightslab/backend → weightslab-2.0.0/tests/utils}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_computational_graph_utils_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_logs_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_modules_dependencies_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_plot_graph_render_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_plot_graph_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_shape_prop_unit.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_telemetry.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/utils/test_utils_tools_unit.py +0 -0
- {weightslab-1.4.2/weightslab/data → weightslab-2.0.0/tests/watchdog}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/watchdog/test_lock_monitor.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/tests/watchdog/test_watchdog.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/art.py +0 -0
- /weightslab-1.4.2/weightslab/ui/static/assets/favicon-BtmqMp0p.png → /weightslab-2.0.0/weightslab/assets/icon.png +0 -0
- /weightslab-1.4.2/weightslab/ui/static/images/darkmode/logo.png → /weightslab-2.0.0/weightslab/assets/logo-dark.png +0 -0
- {weightslab-1.4.2/weightslab/ui/static/images/lightmode → weightslab-2.0.0/weightslab/assets}/logo.png +0 -0
- {weightslab-1.4.2/weightslab/examples/PyTorch/wl-ads-recommendation/utils → weightslab-2.0.0/weightslab/backend}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/audit_logger.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/backend/optimizer_interface.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/evaluation_controller.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/parallel_primitives.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/components/tracking.py +0 -0
- {weightslab-1.4.2/weightslab/examples/PyTorch/wl-clustering/face → weightslab-2.0.0/weightslab/data}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/array_proxy.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/h5_array_store.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/h5_dataframe_store.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/point_cloud_utils.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/data/sample_stats.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/docker/docker/utils/test-deployment.sh +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Lightning/wl-classification/config.yaml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Lightning/wl-classification/main.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/README.md +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/config.yaml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/test_ads_recommendation.py +0 -0
- {weightslab-1.4.2/weightslab/examples/PyTorch/wl-fraud-detection → weightslab-2.0.0/weightslab/examples/PyTorch/wl-ads-recommendation}/utils/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/utils/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/utils/model.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-ads-recommendation/verify_integration.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/config.yaml +0 -0
- {weightslab-1.4.2/weightslab/examples/utils/baseline_models → weightslab-2.0.0/weightslab/examples/PyTorch/wl-clustering/face}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/model.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/signals.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/face/utils.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-clustering/main.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/README.md +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/config.yaml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/utils/criterions.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-detection/utils/model.py +0 -0
- {weightslab-1.4.2/weightslab/examples/PyTorch/wl-detection → weightslab-2.0.0/weightslab/examples/PyTorch/wl-detection-relabeling}/utils/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/README.md +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/config.yaml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/test_fraud_detection.py +0 -0
- {weightslab-1.4.2/weightslab/examples/utils/baseline_models/pytorch → weightslab-2.0.0/weightslab/examples/PyTorch/wl-fraud-detection/utils}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/utils/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/utils/kaggle_data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/utils/model.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-fraud-detection/verify_integration.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0000f77c-6257be58.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/000f8d37-d4c09a0f.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00a0f008-a315437f.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00c12bd0-bb46e479.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00c29c52-f9524f1e.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00ce6f6d-50bbee62.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00d1bafa-1b47b41c.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00d7268f-fd4487be.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/00f0dd0f-5e9c9557.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a0d7f4c-ac5c3c8f.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a1f4fce-f9cac880.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/train/0a3bb2d8-c195d91e.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1cac6a7-04e33135.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1ceb32e-3f481b43.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d10d08-5b108225.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d22449-15fb948f.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1d7b3ac-5af8623b.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1dce572-c6a8cb5e.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1e1a7b8-0aec80e8.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1e8ad72-c3c79240.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1ee702d-0ae1fc10.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b1f0efd9-37a14dda.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b2a0648b-d8e126bc.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/images/val/b2b70230-bad4ff6e.jpg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0000f77c-6257be58.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/000f8d37-d4c09a0f.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00a0f008-a315437f.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00c12bd0-bb46e479.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00c29c52-f9524f1e.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00ce6f6d-50bbee62.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00d1bafa-1b47b41c.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00d7268f-fd4487be.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/00f0dd0f-5e9c9557.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a0d7f4c-ac5c3c8f.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a1f4fce-f9cac880.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/train/0a3bb2d8-c195d91e.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1cac6a7-04e33135.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1ceb32e-3f481b43.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d10d08-5b108225.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d22449-15fb948f.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1d7b3ac-5af8623b.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1dce572-c6a8cb5e.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1e1a7b8-0aec80e8.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1e8ad72-c3c79240.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1ee702d-0ae1fc10.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b1f0efd9-37a14dda.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b2a0648b-d8e126bc.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/BDD_subset/labels/val/b2b70230-bad4ff6e.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/utils/criterions.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/utils/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/PyTorch/wl-segmentation/utils/model.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Ultralytics/wl-detection/main.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/README.md +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/config.yaml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/main.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/criterions.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-2d-lidar-detection/utils/model.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/README.md +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/config.yaml +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/criterions.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/kitti_download.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-3d-lidar-detection/utils/model.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/criterions.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/data.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/model.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/Usecases/wl-classification-signals_shape_classification/utils/signals.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/utils/__init__.py +0 -0
- {weightslab-1.4.2/weightslab/models → weightslab-2.0.0/weightslab/examples/utils/baseline_models}/__init__.py +0 -0
- {weightslab-1.4.2/weightslab/modules → weightslab-2.0.0/weightslab/examples/utils/baseline_models/pytorch}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/examples/utils/baseline_models/pytorch/models.py +0 -0
- {weightslab-1.4.2/weightslab/proto → weightslab-2.0.0/weightslab/export/formats}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/README.md +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/_utils.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/collate.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/dataset.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/signals.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/integrations/ultralytics/trainer.py +0 -0
- {weightslab-1.4.2/weightslab/trainer → weightslab-2.0.0/weightslab/models}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/models/model_with_ops.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/models/monkey_patcher.py +0 -0
- {weightslab-1.4.2/weightslab/trainer/services → weightslab-2.0.0/weightslab/modules}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/modules/modules_with_ops.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/modules/neuron_ops.py +0 -0
- {weightslab-1.4.2/weightslab/trainer/services/agent → weightslab-2.0.0/weightslab/proto}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/security/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/security/cert_auth_manager.py +0 -0
- {weightslab-1.4.2/weightslab/trainer/services/utils → weightslab-2.0.0/weightslab/trainer}/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/experiment_context.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent_overview/agent.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent_overview/query_example.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/agent/agent_overview/schema.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/data_image_utils.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/instance_merger.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/services/model_service.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/trainer/trainer_tools.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/tunnel.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/__init__.py +0 -0
- /weightslab-1.4.2/weightslab/ui/static/images/favicon.png → /weightslab-2.0.0/weightslab/ui/static/assets/favicon-BtmqMp0p.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/images/darkmode/logo.svg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/images/lightmode/logo.svg +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/static/images/logo.png +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/utils/generate-certs-auth-token.ps1 +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/ui/utils/generate-certs-auth-token.sh +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/computational_graph.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/logs.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/modules_dependencies.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/plot_graph.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/shape_prop.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/utils/telemetry.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/__init__.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/grpc_watchdog.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/lock_monitor.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/log_level.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab/watchdog/watchdog.py +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/dependency_links.txt +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/entry_points.txt +0 -0
- {weightslab-1.4.2 → weightslab-2.0.0}/weightslab.egg-info/top_level.txt +0 -0
|
@@ -177,8 +177,38 @@ jobs:
|
|
|
177
177
|
- name: Install build tools
|
|
178
178
|
run: python -m pip install --upgrade pip build twine
|
|
179
179
|
|
|
180
|
+
# This job always publishes to TestPyPI ONLY (never real PyPI -- that's
|
|
181
|
+
# build-and-publish-main, below, which is untouched by this and always
|
|
182
|
+
# builds the tag's own clean version). So the version published HERE is
|
|
183
|
+
# always commit-decorated, regardless of whether the pushed tag name
|
|
184
|
+
# itself contains "-devN" -- a dev-branch pre-release tag and a real
|
|
185
|
+
# main-branch release tag both go through this same TestPyPI pre-check,
|
|
186
|
+
# and an exact tag match otherwise carries no commit-specific info of
|
|
187
|
+
# its own (every push of the same tag name would resolve to the exact
|
|
188
|
+
# same version, colliding on a re-run/retag).
|
|
189
|
+
#
|
|
190
|
+
# TestPyPI/PyPI reject a literal "+sha" local version (see local_scheme
|
|
191
|
+
# = "no-local-version" in pyproject.toml), and PEP 440's devN segment
|
|
192
|
+
# must be a plain integer -- so the short hex commit sha is encoded as
|
|
193
|
+
# a decimal integer inside devN instead, mirroring ci.yml's
|
|
194
|
+
# build-and-publish-dev job (which solves the exact same constraint for
|
|
195
|
+
# its own, non-tag-based, publish-on-push-to-main version).
|
|
196
|
+
- name: Compute decorated TestPyPI version
|
|
197
|
+
id: compute_version
|
|
198
|
+
run: |
|
|
199
|
+
BASE_VERSION="$(echo "${GITHUB_REF_NAME#v}" | sed -E 's/[-\.]?dev[0-9]*$//')"
|
|
200
|
+
SHORT_SHA_HEX="$(git rev-parse --short=8 HEAD)"
|
|
201
|
+
SHA_DEC="$((16#${SHORT_SHA_HEX}))"
|
|
202
|
+
PUBLISH_VERSION="${BASE_VERSION}.dev${SHA_DEC}"
|
|
203
|
+
echo "publish_version=${PUBLISH_VERSION}" >> $GITHUB_OUTPUT
|
|
204
|
+
echo "Tag ${GITHUB_REF_NAME} @ ${SHORT_SHA_HEX} -> TestPyPI version ${PUBLISH_VERSION}"
|
|
205
|
+
|
|
180
206
|
- name: Build distributions
|
|
181
|
-
|
|
207
|
+
env:
|
|
208
|
+
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_WEIGHTSLAB: ${{ steps.compute_version.outputs.publish_version }}
|
|
209
|
+
run: |
|
|
210
|
+
echo "Building with version ${SETUPTOOLS_SCM_PRETEND_VERSION_FOR_WEIGHTSLAB}"
|
|
211
|
+
python -m build
|
|
182
212
|
|
|
183
213
|
- name: Capture version from wheel
|
|
184
214
|
id: version
|
|
@@ -188,6 +218,9 @@ jobs:
|
|
|
188
218
|
VERSION="$(basename "${WHEEL}" | sed -E 's/^weightslab-([^-]+)-.*/\1/')"
|
|
189
219
|
echo "published_version=${VERSION}" >> $GITHUB_OUTPUT
|
|
190
220
|
echo "Dev release version: ${VERSION}"
|
|
221
|
+
if [ "${VERSION}" != "${{ steps.compute_version.outputs.publish_version }}" ]; then
|
|
222
|
+
echo "::warning::Built wheel version (${VERSION}) does not match the intended decorated version (${{ steps.compute_version.outputs.publish_version }})."
|
|
223
|
+
fi
|
|
191
224
|
|
|
192
225
|
- name: Check distributions
|
|
193
226
|
run: python -m twine check dist/*
|
|
@@ -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
|
-
|
|
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)
|
|
@@ -166,6 +197,7 @@ ones when debugging:
|
|
|
166
197
|
| `ENABLE_DATA_EXPLORATION` | `1` | `0`/`false` removes the data grid + metadata/details panel and stops the data/metadata auto-refresh. |
|
|
167
198
|
| `ENABLE_HYPERPARAMETERS_OPTIMIZATION` | `1` | `0`/`false` removes the Hyperparameters section, makes HP inputs read-only, and stops the HP poll. |
|
|
168
199
|
| `ENABLE_AGENT` | `1` | `0`/`false` removes the agent chat bar + history panel and stops the agent health poll. |
|
|
200
|
+
| `ENABLE_NOTEBOOK` | `1` | `0`/`false` removes the notebook button (left of the logo) + notebook window. The notebook runs Python in a shared in-process kernel against the live experiment (`df`, model, checkpoints), persisted as `notebook.ipynb` under `root_log_dir`; `>`-prefixed cells ask the agent to propose code. |
|
|
169
201
|
|
|
170
202
|
> **VITE_ vs WS_/BB_/ENABLE_:** `VITE_*` variables are baked at **build time**
|
|
171
203
|
> (changing them needs a frontend rebuild). `WS_*` / `BB_*` / `ENABLE_*` are
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Changelog - 2026-08-21 v2.0.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: weightslab
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
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,>=
|
|
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,8 +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:
|
|
39
|
-
Requires-Dist:
|
|
38
|
+
Requires-Dist: ipykernel<7,>=6.29
|
|
39
|
+
Requires-Dist: jupyter_client<9,>=8.6
|
|
40
|
+
Requires-Dist: notebook>=7.6.1
|
|
41
|
+
Requires-Dist: ipywidgets>=8.1.8
|
|
42
|
+
Requires-Dist: matplotlib<4,>=3.7
|
|
43
|
+
Requires-Dist: psutil<8,>=5.9
|
|
44
|
+
Requires-Dist: nvidia-ml-py<14,>=11
|
|
40
45
|
Provides-Extra: ultralytics
|
|
41
46
|
Requires-Dist: ultralytics>=8.4.16; extra == "ultralytics"
|
|
42
47
|
Provides-Extra: onnx
|
|
@@ -46,6 +51,8 @@ Provides-Extra: dev
|
|
|
46
51
|
Requires-Dist: grpcio-tools<2,>=1.62; extra == "dev"
|
|
47
52
|
Requires-Dist: torchinfo<2,>=1.8; extra == "dev"
|
|
48
53
|
Requires-Dist: httpx<1,>=0.27; extra == "dev"
|
|
54
|
+
Provides-Extra: export
|
|
55
|
+
Requires-Dist: opencv-python-headless<5,>=4.8; extra == "export"
|
|
49
56
|
Provides-Extra: utest
|
|
50
57
|
Requires-Dist: torchaudio<2.9,>=2.1; python_version < "3.13" and extra == "utest"
|
|
51
58
|
Requires-Dist: torchaudio<3,>=2.9; python_version >= "3.13" and extra == "utest"
|
|
@@ -56,13 +63,11 @@ Requires-Dist: pytest>=9.0.2; extra == "utest"
|
|
|
56
63
|
Dynamic: license-file
|
|
57
64
|
|
|
58
65
|
<div align="center">
|
|
59
|
-
<
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</picture>
|
|
65
|
-
</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>
|
|
66
71
|
<br>
|
|
67
72
|
|
|
68
73
|
</div>
|
|
@@ -102,7 +107,7 @@ WeightsLab hooks into your existing PyTorch training loop and exposes a live UI
|
|
|
102
107
|
|
|
103
108
|
## Weightslab in Motion
|
|
104
109
|
<div align="center">
|
|
105
|
-
<img src="https://github.com/
|
|
110
|
+
<img width="960" height="540" alt="Image" src="https://github.com/user-attachments/assets/2e8f8846-efcd-4188-9d60-fee0674d1105" />
|
|
106
111
|
<!-- <sub><a href="https://youtu.be/GBBDDaJQLWk">▶ Watch full demo</a></sub> -->
|
|
107
112
|
</div>
|
|
108
113
|
|
|
@@ -378,6 +383,20 @@ Find our documentation [online](https://grayboxtech.github.io/weightslab/latest/
|
|
|
378
383
|
|
|
379
384
|
</details>
|
|
380
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
|
+
|
|
381
400
|
</details>
|
|
382
401
|
|
|
383
402
|
<details>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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/
|
|
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()
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
function detectLineKind(text) {
|
|
2
|
+
const trimmed = text.replace(/\u00a0/g, " ").trimStart();
|
|
3
|
+
if (trimmed.startsWith("+")) return "wl-line-added";
|
|
4
|
+
if (trimmed.startsWith("-")) return "wl-line-removed";
|
|
5
|
+
return "";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function isMarkedDiffBlock(block) {
|
|
9
|
+
return Boolean(block.closest(".wl-diff-lines"));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function decoratePrefixedDiffRows(block) {
|
|
13
|
+
if (!isMarkedDiffBlock(block)) return;
|
|
14
|
+
const pre = block.querySelector("pre");
|
|
15
|
+
if (!pre || pre.dataset.wlDiffDecorated === "1") return;
|
|
16
|
+
|
|
17
|
+
const nodes = Array.from(pre.childNodes);
|
|
18
|
+
const rows = [];
|
|
19
|
+
let current = null;
|
|
20
|
+
|
|
21
|
+
for (const node of nodes) {
|
|
22
|
+
if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains("linenos")) {
|
|
23
|
+
current = { lineno: node, nodes: [] };
|
|
24
|
+
rows.push(current);
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
if (current) current.nodes.push(node);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
for (const row of rows) {
|
|
31
|
+
if (row.nodes.length === 0) continue;
|
|
32
|
+
const kind = detectLineKind(row.nodes.map((n) => n.textContent || "").join(""));
|
|
33
|
+
if (!kind) continue;
|
|
34
|
+
|
|
35
|
+
row.lineno.classList.add(kind);
|
|
36
|
+
|
|
37
|
+
for (const node of row.nodes) {
|
|
38
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
39
|
+
node.classList.add("wl-line-segment", kind);
|
|
40
|
+
} else if (node.nodeType === Node.TEXT_NODE && node.textContent) {
|
|
41
|
+
const segment = document.createElement("span");
|
|
42
|
+
segment.className = `wl-line-segment ${kind}`;
|
|
43
|
+
segment.textContent = node.textContent;
|
|
44
|
+
pre.replaceChild(segment, node);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
pre.dataset.wlDiffDecorated = "1";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function isDiffLikeBlock(block) {
|
|
53
|
+
return (
|
|
54
|
+
isMarkedDiffBlock(block) ||
|
|
55
|
+
block.classList.contains("highlight-diff") ||
|
|
56
|
+
block.querySelector(".gd, .gi, .wl-line-added, .wl-line-removed")
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
61
|
+
const blocks = document.querySelectorAll("div.highlight");
|
|
62
|
+
for (const block of blocks) {
|
|
63
|
+
decoratePrefixedDiffRows(block);
|
|
64
|
+
if (block.querySelector(".wl-copy-btn")) continue;
|
|
65
|
+
|
|
66
|
+
const pre = block.querySelector("pre");
|
|
67
|
+
if (!pre) continue;
|
|
68
|
+
|
|
69
|
+
const button = document.createElement("button");
|
|
70
|
+
button.type = "button";
|
|
71
|
+
button.className = "wl-copy-btn";
|
|
72
|
+
button.textContent = "Copy";
|
|
73
|
+
|
|
74
|
+
button.addEventListener("click", async () => {
|
|
75
|
+
try {
|
|
76
|
+
const lines = pre.querySelectorAll(".linenos");
|
|
77
|
+
const previous = [];
|
|
78
|
+
for (const line of lines) {
|
|
79
|
+
previous.push(line.textContent);
|
|
80
|
+
line.textContent = "";
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let text = pre.innerText.replace(/\u00a0/g, " ");
|
|
84
|
+
if (isDiffLikeBlock(block)) {
|
|
85
|
+
const cleanedLines = text
|
|
86
|
+
.split(/\r?\n/)
|
|
87
|
+
.filter((line) => {
|
|
88
|
+
const trimmed = line.trimStart();
|
|
89
|
+
return !(trimmed.startsWith("-") && !trimmed.startsWith("--"));
|
|
90
|
+
})
|
|
91
|
+
.map((line) => line.replace(/^(\s*)\+\s{0,2}/, "$1"));
|
|
92
|
+
|
|
93
|
+
const compacted = [];
|
|
94
|
+
for (const line of cleanedLines) {
|
|
95
|
+
const isBlank = line.trim() === "";
|
|
96
|
+
if (isBlank && compacted.length > 0 && compacted[compacted.length - 1].trim() === "") {
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
compacted.push(line);
|
|
100
|
+
}
|
|
101
|
+
text = compacted.join("\n");
|
|
102
|
+
}
|
|
103
|
+
text = text.trimEnd();
|
|
104
|
+
|
|
105
|
+
lines.forEach((line, i) => {
|
|
106
|
+
line.textContent = previous[i];
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
await navigator.clipboard.writeText(text);
|
|
110
|
+
button.textContent = "Copied";
|
|
111
|
+
setTimeout(() => {
|
|
112
|
+
button.textContent = "Copy";
|
|
113
|
+
}, 1200);
|
|
114
|
+
} catch (_err) {
|
|
115
|
+
button.textContent = "Failed";
|
|
116
|
+
setTimeout(() => {
|
|
117
|
+
button.textContent = "Copy";
|
|
118
|
+
}, 1200);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
block.appendChild(button);
|
|
123
|
+
}
|
|
124
|
+
});
|