comet-ml 3.58.0__tar.gz → 3.58.2__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 (436) hide show
  1. {comet_ml-3.58.0 → comet_ml-3.58.2}/PKG-INFO +2 -2
  2. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/config_map.py +5 -0
  3. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/console.py +51 -5
  4. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment.py +12 -1
  5. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/git_logging.py +32 -6
  6. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/callback.py +128 -44
  7. comet_ml-3.58.2/comet_ml/integration/ray/callback_helpers.py +40 -0
  8. comet_ml-3.58.2/comet_ml/integration/ray/controller_flush_patcher.py +153 -0
  9. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/flatten_dictionary.py +1 -1
  10. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/trainer_logger.py +5 -2
  11. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/trial_result_logger.py +11 -2
  12. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/trial_save_logger.py +4 -3
  13. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/worker_decorator.py +6 -3
  14. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/worker_logger.py +16 -8
  15. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml.egg-info/PKG-INFO +2 -2
  16. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml.egg-info/SOURCES.txt +1 -0
  17. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml.egg-info/requires.txt +1 -1
  18. {comet_ml-3.58.0 → comet_ml-3.58.2}/setup.py +6 -2
  19. comet_ml-3.58.0/comet_ml/integration/ray/callback_helpers.py +0 -18
  20. {comet_ml-3.58.0 → comet_ml-3.58.2}/MANIFEST.in +0 -0
  21. {comet_ml-3.58.0 → comet_ml-3.58.2}/README.rst +0 -0
  22. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/__init__.py +0 -0
  23. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/_jupyter.py +0 -0
  24. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/_logging.py +0 -0
  25. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/_online.py +0 -0
  26. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/_reporting.py +0 -0
  27. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/_typing.py +0 -0
  28. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/_ui.py +0 -0
  29. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/annotations.py +0 -0
  30. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/announcements/__init__.py +0 -0
  31. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/announcements/api.py +0 -0
  32. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/announcements/checkers.py +0 -0
  33. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/announcements/view.py +0 -0
  34. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api.py +0 -0
  35. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_helpers/__init__.py +0 -0
  36. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_helpers/experiment_key.py +0 -0
  37. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_helpers/metric_dataframes.py +0 -0
  38. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_key/__init__.py +0 -0
  39. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_key/base64_helper.py +0 -0
  40. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_key/comet_api_key.py +0 -0
  41. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/__init__.py +0 -0
  42. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/api_objects_helpers.py +0 -0
  43. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/model/__init__.py +0 -0
  44. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/model/assets_list.py +0 -0
  45. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/model/model.py +0 -0
  46. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/model/model_helpers.py +0 -0
  47. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/model/remote_model.py +0 -0
  48. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/model/status_configuration.py +0 -0
  49. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/setup_client.py +0 -0
  50. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/api_objects/view.py +0 -0
  51. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/__init__.py +0 -0
  52. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/artifact.py +0 -0
  53. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/artifact_asset.py +0 -0
  54. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/artifact_assets_downloader.py +0 -0
  55. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/artifact_getter.py +0 -0
  56. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/artifact_logger.py +0 -0
  57. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/artifact_name.py +0 -0
  58. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/helpers.py +0 -0
  59. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/hf_dataset/__init__.py +0 -0
  60. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/hf_dataset/dataset_factory.py +0 -0
  61. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/hf_dataset/helpers.py +0 -0
  62. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/hf_dataset/metadata.py +0 -0
  63. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/logged_artifact.py +0 -0
  64. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/artifacts/logged_artifact_asset.py +0 -0
  65. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/assets/__init__.py +0 -0
  66. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/assets/asset_item.py +0 -0
  67. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/assets/assets_helper.py +0 -0
  68. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/assets/data_writers.py +0 -0
  69. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/assets/preprocess.py +0 -0
  70. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/atexit_hooks/__init__.py +0 -0
  71. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/atexit_hooks/api.py +0 -0
  72. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/atexit_hooks/conditional_callable.py +0 -0
  73. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/authhook/__init__.py +0 -0
  74. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/authhook/aws_sagemaker.py +0 -0
  75. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/backend_response_helper.py +0 -0
  76. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/batch_utils.py +0 -0
  77. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/bootstrap/__init__.py +0 -0
  78. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/bootstrap/sitecustomize.py +0 -0
  79. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/__init__.py +0 -0
  80. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/_base.py +0 -0
  81. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/_fastai.py +0 -0
  82. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/_keras.py +0 -0
  83. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/_lgbm.py +0 -0
  84. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/_tensorflow_estimator.py +0 -0
  85. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/_tensorflow_keras.py +0 -0
  86. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/callbacks/_xgboost.py +0 -0
  87. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/cli_args_parse.py +0 -0
  88. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/cloud_storage_utils.py +0 -0
  89. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/__init__.py +0 -0
  90. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/comet_start.py +0 -0
  91. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/config_manager.py +0 -0
  92. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/experiment_config.py +0 -0
  93. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/experiment_factory.py +0 -0
  94. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/experiment_status.py +0 -0
  95. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/experiments_matcher.py +0 -0
  96. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/init_parameters.py +0 -0
  97. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/comet_start/start_modes.py +0 -0
  98. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/common_experiment.py +0 -0
  99. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/__init__.py +0 -0
  100. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/config_api.py +0 -0
  101. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/config_class.py +0 -0
  102. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/config_constants.py +0 -0
  103. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/config_helper.py +0 -0
  104. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/config_init.py +0 -0
  105. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/config_io.py +0 -0
  106. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/config/streamlit_config.py +0 -0
  107. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/confusion_matrix.py +0 -0
  108. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/__init__.py +0 -0
  109. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/ca_certs.py +0 -0
  110. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/connection_api.py +0 -0
  111. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/connection_factory.py +0 -0
  112. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/connection_helpers.py +0 -0
  113. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/connection_monitor.py +0 -0
  114. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/connection_upload.py +0 -0
  115. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/connection_url_helpers.py +0 -0
  116. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/http_adapters.py +0 -0
  117. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/http_session.py +0 -0
  118. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/offset_counter.py +0 -0
  119. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/connection/retry_with_full_jitter.py +0 -0
  120. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/constants.py +0 -0
  121. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/convert_utils.py +0 -0
  122. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/data_structure.py +0 -0
  123. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/dataclasses/__init__.py +0 -0
  124. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/dataclasses/experiment_info.py +0 -0
  125. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/dataclasses/hidden_api_key.py +0 -0
  126. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/debug/__init__.py +0 -0
  127. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/debug/debug_helpers.py +0 -0
  128. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/debug/debug_options.py +0 -0
  129. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/env_logging.py +0 -0
  130. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/__init__.py +0 -0
  131. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/api.py +0 -0
  132. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/before_send.py +0 -0
  133. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/environment_details.py +0 -0
  134. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/error_filtering/__init__.py +0 -0
  135. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/error_filtering/filter_chain.py +0 -0
  136. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/error_filtering/filter_count_handler.py +0 -0
  137. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/error_filtering/filter_invalid_api_key_handler.py +0 -0
  138. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/error_filtering/filter_throttling_handler.py +0 -0
  139. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/error_filtering/handler.py +0 -0
  140. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/error_filtering/sentry_filtering.py +0 -0
  141. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/logger_setup.py +0 -0
  142. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/shutdown.py +0 -0
  143. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/types.py +0 -0
  144. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/error_tracking/user_details.py +0 -0
  145. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/event_tracker.py +0 -0
  146. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/exceptionhook.py +0 -0
  147. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/exceptions.py +0 -0
  148. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_loggers/__init__.py +0 -0
  149. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_loggers/optimization.py +0 -0
  150. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_loggers/points_3d/__init__.py +0 -0
  151. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_loggers/points_3d/log.py +0 -0
  152. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_loggers/points_3d/math_3d.py +0 -0
  153. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_loggers/points_3d/randomize.py +0 -0
  154. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_loggers/points_3d/thumbnail.py +0 -0
  155. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/experiment_storage.py +0 -0
  156. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/feature_toggles.py +0 -0
  157. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/file_downloader.py +0 -0
  158. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/file_upload_limits_guard.py +0 -0
  159. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/file_upload_manager.py +0 -0
  160. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/file_upload_size_monitor.py +0 -0
  161. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/file_uploader.py +0 -0
  162. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/file_utils.py +0 -0
  163. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/flatten_dict/__init__.py +0 -0
  164. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/flatten_dict/exclusions.py +0 -0
  165. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/flatten_dict/flattener.py +0 -0
  166. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/flatten_dict/key_reducer.py +0 -0
  167. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/generalized_equality.py +0 -0
  168. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/gs_bucket_info.py +0 -0
  169. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/handshake.py +0 -0
  170. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/heartbeat.py +0 -0
  171. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/inspect.py +0 -0
  172. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/__init__.py +0 -0
  173. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/gymnasium/__init__.py +0 -0
  174. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/gymnasium/comet_logger.py +0 -0
  175. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/kubeflow/__init__.py +0 -0
  176. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/metaflow/__init__.py +0 -0
  177. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/metaflow/comet_decorator.py +0 -0
  178. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/metaflow/logging_messages.py +0 -0
  179. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/metaflow/single_card_list.py +0 -0
  180. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/__init__.py +0 -0
  181. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/constants.py +0 -0
  182. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/model_loading_helpers.py +0 -0
  183. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/model_logging_helpers.py +0 -0
  184. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/model_metadata.py +0 -0
  185. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/public_api.py +0 -0
  186. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/types.py +0 -0
  187. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/watch/__init__.py +0 -0
  188. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/watch/api.py +0 -0
  189. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/watch/parameter_after_backward_hook.py +0 -0
  190. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/pytorch/watch/tensor_helpers.py +0 -0
  191. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/__init__.py +0 -0
  192. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/ray/_version_compat.py +0 -0
  193. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sagemaker/__init__.py +0 -0
  194. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sagemaker/log_to_experiment.py +0 -0
  195. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sagemaker/public_api.py +0 -0
  196. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sagemaker/types.py +0 -0
  197. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sanitation/__init__.py +0 -0
  198. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sanitation/kubeflow.py +0 -0
  199. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sanitation/metaflow.py +0 -0
  200. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sanitation/vertex.py +0 -0
  201. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sanitation/vertex_kubeflow.py +0 -0
  202. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/__init__.py +0 -0
  203. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/api.py +0 -0
  204. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/comet_metadata.py +0 -0
  205. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/load_from.py +0 -0
  206. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/log_to_experiment.py +0 -0
  207. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/model_processor.py +0 -0
  208. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/persistence/__init__.py +0 -0
  209. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/persistence/dispatcher.py +0 -0
  210. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/persistence/dumper.py +0 -0
  211. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/persistence/loader.py +0 -0
  212. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/sklearn/persistence/module_metadata.py +0 -0
  213. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/snowflake/__init__.py +0 -0
  214. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/snowflake/load_from.py +0 -0
  215. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/snowflake/log_to_experiment.py +0 -0
  216. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/spacy/__init__.py +0 -0
  217. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/vertex/__init__.py +0 -0
  218. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/vertex/api.py +0 -0
  219. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/vertex/environment_creator.py +0 -0
  220. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/vertex/key_sharing.py +0 -0
  221. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/vertex/version_utils.py +0 -0
  222. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/integration/vertex/vertex_logger.py +0 -0
  223. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/json_encoder.py +0 -0
  224. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/__init__.py +0 -0
  225. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/fastai_logger.py +0 -0
  226. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/keras_logger.py +0 -0
  227. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/lightgbm_logger.py +0 -0
  228. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/logger_utils.py +0 -0
  229. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/mlflow_logger.py +0 -0
  230. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/prophet_logger.py +0 -0
  231. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/pytorch_logger.py +0 -0
  232. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/pytorch_tensorboard/__init__.py +0 -0
  233. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/pytorch_tensorboard/logger.py +0 -0
  234. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/pytorch_tensorboard/summary_writer_arg_parsers.py +0 -0
  235. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/shap_logger.py +0 -0
  236. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/sklearn_logger.py +0 -0
  237. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/tensorboard_logger.py +0 -0
  238. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/tensorflow_logger.py +0 -0
  239. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/tfma_logger.py +0 -0
  240. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/loggers/xgboost_logger.py +0 -0
  241. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/__init__.py +0 -0
  242. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/callback/__init__.py +0 -0
  243. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/callback/base_callback.py +0 -0
  244. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/callback/callback_factory.py +0 -0
  245. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/callback/throttling_error_callback.py +0 -0
  246. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/filters/__init__.py +0 -0
  247. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/filters/log_filter.py +0 -0
  248. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/filters/log_filter_helpers.py +0 -0
  249. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/filters/log_filter_setup.py +0 -0
  250. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/filters/log_record_types.py +0 -0
  251. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/filters/log_rules.py +0 -0
  252. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/formatters/__init__.py +0 -0
  253. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/formatters/console.py +0 -0
  254. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/formatters/file.py +0 -0
  255. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/formatters/url.py +0 -0
  256. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/level_shifter.py +0 -0
  257. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/rich_decoration/__init__.py +0 -0
  258. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/rich_decoration/api.py +0 -0
  259. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/rich_decoration/environment.py +0 -0
  260. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/rich_decoration/loglevel_colors.py +0 -0
  261. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_extensions/rich_decoration/rich_api_importer.py +0 -0
  262. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/logging_messages.py +0 -0
  263. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/messages.py +0 -0
  264. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/messages_utils.py +0 -0
  265. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/metrics.py +0 -0
  266. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/__init__.py +0 -0
  267. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/downloader/__init__.py +0 -0
  268. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/downloader/api.py +0 -0
  269. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/downloader/dispatch.py +0 -0
  270. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/downloader/request_handlers.py +0 -0
  271. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/uri/__init__.py +0 -0
  272. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/uri/parse.py +0 -0
  273. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/uri/request_types.py +0 -0
  274. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/model_downloader/uri/scheme.py +0 -0
  275. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/monkey_patching.py +0 -0
  276. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/offline.py +0 -0
  277. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/offline_utils.py +0 -0
  278. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/optimizer.py +0 -0
  279. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/__init__.py +0 -0
  280. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/cgroup_subsystem.py +0 -0
  281. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/cgroup_v2_subsystem.py +0 -0
  282. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/cgroups.py +0 -0
  283. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/constants.py +0 -0
  284. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/errors.py +0 -0
  285. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/os_container.py +0 -0
  286. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/scanf.py +0 -0
  287. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/oscontainer/utils.py +0 -0
  288. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/papi.py +0 -0
  289. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/parallel_utils.py +0 -0
  290. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/py.typed +0 -0
  291. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/query.py +0 -0
  292. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/rate_limiter/__init__.py +0 -0
  293. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/rate_limiter/bucket.py +0 -0
  294. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/rate_limiter/duration.py +0 -0
  295. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/rate_limiter/exceptions.py +0 -0
  296. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/rate_limiter/limiter.py +0 -0
  297. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/rate_limiter/rate.py +0 -0
  298. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/replay_manager.py +0 -0
  299. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/reporter.py +0 -0
  300. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/rpc.py +0 -0
  301. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/__init__.py +0 -0
  302. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/__init__.py +0 -0
  303. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/assets_helper.py +0 -0
  304. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/base_helper.py +0 -0
  305. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/file_parts_strategy.py +0 -0
  306. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/multipart_upload_options.py +0 -0
  307. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/rest_api_assets_helper.py +0 -0
  308. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/retry_strategy.py +0 -0
  309. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/upload_error.py +0 -0
  310. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/upload_types.py +0 -0
  311. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/uploader.py +0 -0
  312. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3/multipart_upload/visualizations_helper.py +0 -0
  313. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/s3_bucket_info.py +0 -0
  314. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/3d-points-bounding-box.schema.json +0 -0
  315. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-cloud-3d-msg.schema.json +0 -0
  316. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-cloud-details-msg.schema.json +0 -0
  317. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-experiment.schema.json +0 -0
  318. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-file-name-msg.schema.json +0 -0
  319. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-file-upload-msg.schema.json +0 -0
  320. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-git-metadata-msg.schema.json +0 -0
  321. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-gpu-static-info-msg.schema.json +0 -0
  322. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-graph-msg.schema.json +0 -0
  323. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-html-msg.schema.json +0 -0
  324. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-html-override-msg.schema.json +0 -0
  325. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-installed-packages-msg.schema.json +0 -0
  326. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-log-dependency-msg.schema.json +0 -0
  327. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-log-other-msg.schema.json +0 -0
  328. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-metric-msg.schema.json +0 -0
  329. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-os-packages-msg.schema.json +0 -0
  330. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-parameter-msg.schema.json +0 -0
  331. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-register-model-msg.schema.json +0 -0
  332. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-remote-file-msg.schema.json +0 -0
  333. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-remote-model-msg.schema.json +0 -0
  334. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-standard-output-msg.schema.json +0 -0
  335. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-system-details-msg.schema.json +0 -0
  336. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-system-info-msg.schema.json +0 -0
  337. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas/offline-ws-msg.schema.json +0 -0
  338. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/schemas.py +0 -0
  339. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/__init__.py +0 -0
  340. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet.py +0 -0
  341. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_check.py +0 -0
  342. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_init.py +0 -0
  343. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_login.py +0 -0
  344. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_models.py +0 -0
  345. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_offline.py +0 -0
  346. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_optimize.py +0 -0
  347. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_python.py +0 -0
  348. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/scripts/comet_upload.py +0 -0
  349. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/__init__.py +0 -0
  350. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/aws/__init__.py +0 -0
  351. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/aws/aws_api_importer.py +0 -0
  352. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/aws/config.py +0 -0
  353. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/aws/instruction_details.py +0 -0
  354. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/aws/public_api.py +0 -0
  355. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/aws/secret_manager.py +0 -0
  356. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/codec.py +0 -0
  357. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/gcp/__init__.py +0 -0
  358. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/gcp/google_api_importer.py +0 -0
  359. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/gcp/public_api.py +0 -0
  360. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/gcp/secret_manager.py +0 -0
  361. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/interpreter.py +0 -0
  362. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/secrets/secret_managers_dispatch.py +0 -0
  363. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/semantic_version.py +0 -0
  364. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/__init__.py +0 -0
  365. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/base.py +0 -0
  366. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/fallback.py +0 -0
  367. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/handlers/__init__.py +0 -0
  368. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/handlers/base_handler.py +0 -0
  369. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/handlers/handler_context.py +0 -0
  370. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/handlers/offline_handler.py +0 -0
  371. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/handlers/online_handler.py +0 -0
  372. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/offline.py +0 -0
  373. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/online.py +0 -0
  374. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/progress_helpers.py +0 -0
  375. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/retry/__init__.py +0 -0
  376. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/retry/retry_helpers.py +0 -0
  377. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/streamer/retry/retry_incidents_manager.py +0 -0
  378. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/summary.py +0 -0
  379. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/synchronization/__init__.py +0 -0
  380. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/synchronization/model_upload/__init__.py +0 -0
  381. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/synchronization/model_upload/callbacks.py +0 -0
  382. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/synchronization/model_upload/status_handler.py +0 -0
  383. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/__init__.py +0 -0
  384. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/base_metrics_data_logger.py +0 -0
  385. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/cpu/__init__.py +0 -0
  386. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/cpu/cpu_metrics_data_logger.py +0 -0
  387. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/cpu/utilization.py +0 -0
  388. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/disk/__init__.py +0 -0
  389. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/disk/disk_io.py +0 -0
  390. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/disk/disk_metrics_data_logger.py +0 -0
  391. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/disk/disk_usage.py +0 -0
  392. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/gpu/__init__.py +0 -0
  393. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/gpu/cuda.py +0 -0
  394. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/gpu/devices.py +0 -0
  395. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/gpu/gpu_logging.py +0 -0
  396. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/gpu/gpu_metrics_data_logger.py +0 -0
  397. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/gpu/identifiers.py +0 -0
  398. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/network/__init__.py +0 -0
  399. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/network/network_metrics_data_logger.py +0 -0
  400. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/network/network_rates.py +0 -0
  401. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/processes.py +0 -0
  402. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/system_metrics_logging_thread.py +0 -0
  403. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/system/system_metrics_types.py +0 -0
  404. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/testlib/__init__.py +0 -0
  405. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/testlib/dummy.py +0 -0
  406. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/testlib/predicates.py +0 -0
  407. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/testlib/test_experiment.py +0 -0
  408. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/tf_utils.py +0 -0
  409. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/thread_pool.py +0 -0
  410. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/upload_callback/__init__.py +0 -0
  411. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/upload_callback/callback.py +0 -0
  412. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/upload_callback/s3_uploader.py +0 -0
  413. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/upload_options.py +0 -0
  414. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/utils.py +0 -0
  415. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/__init__.py +0 -0
  416. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/curve_data_validator.py +0 -0
  417. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/error.py +0 -0
  418. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/helpers.py +0 -0
  419. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/image/__init__.py +0 -0
  420. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/image/annotation_validator.py +0 -0
  421. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/image/annotation_validator_helpers.py +0 -0
  422. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/metadata_validator.py +0 -0
  423. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/method_parameters_validator.py +0 -0
  424. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/parameter.py +0 -0
  425. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/result.py +0 -0
  426. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/tag_validator.py +0 -0
  427. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/validation/validator.py +0 -0
  428. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/vendor/__init__.py +0 -0
  429. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/vendor/nvidia_ml/__init__.py +0 -0
  430. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml/vendor/nvidia_ml/pynvml.py +0 -0
  431. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml.egg-info/dependency_links.txt +0 -0
  432. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml.egg-info/entry_points.txt +0 -0
  433. {comet_ml-3.58.0 → comet_ml-3.58.2}/comet_ml.egg-info/top_level.txt +0 -0
  434. {comet_ml-3.58.0 → comet_ml-3.58.2}/setup.cfg +0 -0
  435. {comet_ml-3.58.0 → comet_ml-3.58.2}/tests/test_constants.py +0 -0
  436. {comet_ml-3.58.0 → comet_ml-3.58.2}/tests/testlib.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comet_ml
3
- Version: 3.58.0
3
+ Version: 3.58.2
4
4
  Summary: Supercharging Machine Learning
5
5
  Home-page: https://www.comet.com
6
6
  Author: Comet ML Inc.
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Requires-Python: >=3.8
18
18
  Description-Content-Type: text/x-rst
19
- Requires-Dist: dulwich!=0.20.33,<1.0.0,>=0.20.6
19
+ Requires-Dist: dulwich!=0.20.33,>=0.20.6
20
20
  Requires-Dist: everett[ini]<3.2.0,>=1.0.1
21
21
  Requires-Dist: importlib-metadata; python_version < "3.8"
22
22
  Requires-Dist: jsonschema!=3.1.0,>=2.6.0
@@ -71,6 +71,11 @@ CONFIG_MAP = {
71
71
  "comet.logging.file_overwrite": {"type": bool, "default": False},
72
72
  "comet.logging.hide_api_key": {"type": bool, "default": True},
73
73
  "comet.logging.console": {"type": str},
74
+ "comet.logging.console_strip_inplace_updates": {"type": bool, "default": True},
75
+ "comet.logging.console_inplace_update_min_interval": {
76
+ "type": float,
77
+ "default": 0.25,
78
+ },
74
79
  "comet.logging.metrics_ignore": {
75
80
  "type": list,
76
81
  "default": "keras:batch_size,keras:batch_batch",
@@ -28,6 +28,7 @@ import select
28
28
  import signal
29
29
  import sys
30
30
  import threading
31
+ import time
31
32
 
32
33
  from .logging_messages import (
33
34
  CONSOLE_CONSUMER_THREAD_DID_NOT_FINISH_WARNING,
@@ -529,9 +530,19 @@ except ImportError:
529
530
 
530
531
 
531
532
  class StdLogger(object):
532
- def __init__(self, streamer, wrapper_class):
533
+ def __init__(
534
+ self,
535
+ streamer,
536
+ wrapper_class,
537
+ strip_inplace_updates=True,
538
+ inplace_update_min_interval=0.25,
539
+ ):
533
540
  self.streamer = streamer
534
541
  self.experiment = None
542
+ self.strip_inplace_updates = strip_inplace_updates
543
+ self.inplace_update_min_interval = inplace_update_min_interval
544
+ self._inplace_last_ts = {"stdout": 0.0, "stderr": 0.0}
545
+ self._inplace_lock = threading.Lock()
535
546
  self.wrapper = wrapper_class(
536
547
  stdout=True,
537
548
  stdout_handler=self.stdout_handler,
@@ -577,6 +588,21 @@ class StdLogger(object):
577
588
  else:
578
589
  raise NotImplementedError()
579
590
 
591
+ # Debounce in-place progress updates (e.g. tqdm \r frames). Forward
592
+ # at most one CR-only frame per `inplace_update_min_interval` seconds
593
+ # per stream — enough for the UI to keep showing live progress via
594
+ # `escapeCarriageReturn` overlay, without flooding the streamer batch.
595
+ # A frame containing \n is always forwarded (it's a real log line).
596
+ if self.strip_inplace_updates and "\r" in data and "\n" not in data:
597
+ now = time.monotonic()
598
+ with self._inplace_lock:
599
+ if (
600
+ now - self._inplace_last_ts[std_name]
601
+ < self.inplace_update_min_interval
602
+ ):
603
+ return
604
+ self._inplace_last_ts[std_name] = now
605
+
580
606
  message = StandardOutputMessage(
581
607
  output=data,
582
608
  stderr=stderr,
@@ -586,17 +612,32 @@ class StdLogger(object):
586
612
  self.streamer.put_message_in_q(message)
587
613
 
588
614
 
589
- def get_std_logger(wrapper_spec, streamer):
615
+ def get_std_logger(
616
+ wrapper_spec,
617
+ streamer,
618
+ strip_inplace_updates=True,
619
+ inplace_update_min_interval=0.25,
620
+ ):
590
621
  """A factory that pass the right wrapper class to the StdLogger"""
591
622
  if wrapper_spec is None or wrapper_spec is False:
592
623
  return None
593
624
 
594
625
  elif wrapper_spec == "simple":
595
- return StdLogger(streamer, BaseStdWrapper)
626
+ return StdLogger(
627
+ streamer,
628
+ BaseStdWrapper,
629
+ strip_inplace_updates,
630
+ inplace_update_min_interval,
631
+ )
596
632
 
597
633
  elif wrapper_spec == "native":
598
634
  if HAS_WURLITZER is True:
599
- return StdLogger(streamer, PipeMultiprocessingStdWrapper)
635
+ return StdLogger(
636
+ streamer,
637
+ PipeMultiprocessingStdWrapper,
638
+ strip_inplace_updates,
639
+ inplace_update_min_interval,
640
+ )
600
641
 
601
642
  else:
602
643
  LOGGER.warning(NATIVE_STD_WRAPPER_NOT_AVAILABLE)
@@ -604,4 +645,9 @@ def get_std_logger(wrapper_spec, streamer):
604
645
  else:
605
646
  LOGGER.warning(UNKNOWN_STD_WRAPPER_SPEC, wrapper_spec)
606
647
 
607
- return StdLogger(streamer, BaseStdWrapper)
648
+ return StdLogger(
649
+ streamer,
650
+ BaseStdWrapper,
651
+ strip_inplace_updates,
652
+ inplace_update_min_interval,
653
+ )
@@ -1479,7 +1479,18 @@ class CometExperiment(CommonExperiment):
1479
1479
 
1480
1480
  def _setup_std_logger(self) -> None:
1481
1481
  # Override default sys.stdout and feed to streamer.
1482
- self.logger = get_std_logger(self.auto_output_logging, self.streamer)
1482
+ strip_inplace_updates = self.config.get_bool(
1483
+ None, "comet.logging.console_strip_inplace_updates"
1484
+ )
1485
+ inplace_update_min_interval = self.config[
1486
+ "comet.logging.console_inplace_update_min_interval"
1487
+ ]
1488
+ self.logger = get_std_logger(
1489
+ self.auto_output_logging,
1490
+ self.streamer,
1491
+ strip_inplace_updates=strip_inplace_updates,
1492
+ inplace_update_min_interval=inplace_update_min_interval,
1493
+ )
1483
1494
  if self.logger is not None:
1484
1495
  self.logger.set_experiment(self)
1485
1496
 
@@ -24,6 +24,8 @@ from io import BytesIO
24
24
  from urllib.parse import urlparse
25
25
 
26
26
  import dulwich.errors
27
+ import dulwich.index
28
+ import dulwich.object_store
27
29
  import dulwich.objects
28
30
  import dulwich.patch
29
31
  import dulwich.porcelain
@@ -121,13 +123,21 @@ def get_git_commit(repo):
121
123
 
122
124
  def git_status(repo):
123
125
  # Monkey-patch a dulwich method, see
124
- # https://github.com/dulwich/dulwich/pull/601 for an explanation why
125
- original = dulwich.porcelain.path_to_tree_path
126
- try:
126
+ # https://github.com/dulwich/dulwich/pull/601 for an explanation why.
127
+ # Guarded with hasattr so we stay compatible across the dulwich versions
128
+ # we support: the helper exists in both the 0.x and 1.x lines, but it has
129
+ # been relocated several times and may eventually disappear. When it is not
130
+ # there we simply rely on dulwich's own (now fixed) behaviour.
131
+ should_patch = hasattr(dulwich.porcelain, "path_to_tree_path")
132
+ if should_patch:
133
+ original = dulwich.porcelain.path_to_tree_path
127
134
  dulwich.porcelain.path_to_tree_path = _patched_path_to_tree_path
128
135
 
136
+ try:
129
137
  status = dulwich.porcelain.status(repo)
130
138
 
139
+ # dulwich >= 0.25.1 returns regular strings from porcelain.status while
140
+ # older versions return bytes; to_utf8 normalizes both to str.
131
141
  staged = {
132
142
  key: [to_utf8(path) for path in items]
133
143
  for (key, items) in status.staged.items()
@@ -138,7 +148,8 @@ def git_status(repo):
138
148
  return {"staged": staged, "unstaged": unstaged, "untracked": untracked}
139
149
 
140
150
  finally:
141
- dulwich.porcelain.path_to_tree_path = original
151
+ if should_patch:
152
+ dulwich.porcelain.path_to_tree_path = original
142
153
 
143
154
 
144
155
  def get_origin_url(repo):
@@ -256,10 +267,25 @@ def get_git_patch(repo, unstaged=True):
256
267
  # Merges names from the index and from the store as some files can be only
257
268
  # on index or only on the store
258
269
  names = set()
259
- for name, _, _ in object_store.iter_tree_contents(tree_id):
270
+ # dulwich >= 0.21 exposes a module-level iter_tree_contents(store, tree_id),
271
+ # while the 0.20.x line (down to our 0.20.6 floor) only provides the
272
+ # ObjectStore.iter_tree_contents(tree_id) method. Prefer the module-level
273
+ # function where it exists (the method is deprecated in the 1.x line) and
274
+ # fall back to the method on old dulwich so we never rely on either alone.
275
+ module_iter_tree_contents = getattr(
276
+ dulwich.object_store, "iter_tree_contents", None
277
+ )
278
+ if module_iter_tree_contents is not None:
279
+ tree_entries = module_iter_tree_contents(object_store, tree_id)
280
+ else:
281
+ tree_entries = object_store.iter_tree_contents(tree_id)
282
+ for name, _, _ in tree_entries:
260
283
  names.add(name)
261
284
 
262
- names.update(index._byname.keys())
285
+ # Iterating the Index yields its entry paths via the public __iter__
286
+ # protocol, avoiding the private ``index._byname`` attribute. ``names`` is
287
+ # a set, so the iteration order is irrelevant here.
288
+ names.update(index)
263
289
 
264
290
  final_changes = dulwich.index.changes_from_tree(
265
291
  names, lookup_entry, repo.object_store, tree_id, want_unchanged=False
@@ -21,8 +21,14 @@ import ray.tune.experiment
21
21
  import ray.tune.logger
22
22
 
23
23
  from ...constants import OTHER_KEY_CREATED_FROM
24
- from . import callback_helpers, trial_result_logger, trial_save_logger
24
+ from . import (
25
+ callback_helpers,
26
+ controller_flush_patcher,
27
+ trial_result_logger,
28
+ trial_save_logger,
29
+ )
25
30
  from ._version_compat import USE_USER_CALLBACK
31
+ from .callback_helpers import strip_injected_keys
26
32
 
27
33
  if USE_USER_CALLBACK:
28
34
  from ray.train import UserCallback as _RayCallbackBase
@@ -112,12 +118,12 @@ class CometTrainLoggerCallback(_RayCallbackBase):
112
118
  experiment_key: Optional[str] = None,
113
119
  mode: Optional[str] = None,
114
120
  online: Optional[bool] = None,
115
- **experiment_kwargs # fmt: skip
116
- ):
121
+ **experiment_kwargs: Any # fmt: skip
122
+ ) -> None:
117
123
  self._save_checkpoints = save_checkpoints
118
- self._trial = None
124
+ self._trial: Optional[Trial] = None
119
125
  self._experiment: Any = None
120
- self._experiment_ended = False
126
+ self._experiment_ended: bool = False
121
127
 
122
128
  self._setup_shared_comet_experiment(
123
129
  api_key=api_key,
@@ -130,7 +136,18 @@ class CometTrainLoggerCallback(_RayCallbackBase):
130
136
  experiment_name=experiment_name,
131
137
  **experiment_kwargs,
132
138
  )
133
- self._push_info_into_ray_configuration(ray_config, share_api_key_to_workers)
139
+ self._push_info_into_ray_configuration(
140
+ ray_config,
141
+ share_api_key_to_workers,
142
+ offline_directory=experiment_kwargs.get("offline_directory"),
143
+ )
144
+
145
+ if save_checkpoints and not self._online:
146
+ LOGGER.warning(
147
+ "CometTrainLoggerCallback(save_checkpoints=True) has no effect for "
148
+ "offline experiments: Comet artifacts require an online experiment, "
149
+ "so checkpoints will not be logged."
150
+ )
134
151
 
135
152
  if share_api_key_to_workers:
136
153
  LOGGER.warning(
@@ -139,7 +156,7 @@ class CometTrainLoggerCallback(_RayCallbackBase):
139
156
  )
140
157
 
141
158
  @property
142
- def experiment_key(self):
159
+ def experiment_key(self) -> str:
143
160
  return self._experiment_key
144
161
 
145
162
  def _setup_shared_comet_experiment(
@@ -152,9 +169,9 @@ class CometTrainLoggerCallback(_RayCallbackBase):
152
169
  online: Optional[bool],
153
170
  tags: Optional[List[str]],
154
171
  experiment_name: Optional[str],
155
- **experiment_kwargs
156
- ):
157
- experiment_config_kwargs = {
172
+ **experiment_kwargs: Any
173
+ ) -> None:
174
+ experiment_config_kwargs: Dict[str, Any] = {
158
175
  "log_env_gpu": False,
159
176
  "log_env_cpu": False,
160
177
  "log_env_disk": False,
@@ -182,20 +199,31 @@ class CometTrainLoggerCallback(_RayCallbackBase):
182
199
  experiment.add_tags(tags)
183
200
  experiment._log_other(OTHER_KEY_CREATED_FROM, "Ray", include_context=False)
184
201
 
185
- self._experiment_key = experiment.id
186
- self._api_key = experiment.api_key
187
- self._online = callback_helpers.is_online_experiment(experiment)
202
+ self._experiment_key: str = experiment.id
203
+ # ``api_key`` exists on the online ``Experiment`` but not on the
204
+ # ``CometExperiment`` base; read defensively for offline handles.
205
+ self._api_key: Optional[str] = getattr(experiment, "api_key", None)
206
+ self._online: bool = callback_helpers.is_online_experiment(experiment)
188
207
 
189
208
  def _push_info_into_ray_configuration(
190
- self, config: Dict[str, Any], share_api_key_to_workers: bool
191
- ):
209
+ self,
210
+ config: Dict[str, Any],
211
+ share_api_key_to_workers: bool,
212
+ offline_directory: Optional[str] = None,
213
+ ) -> None:
192
214
  config["_comet_experiment_key"] = self._experiment_key
193
215
  if share_api_key_to_workers:
194
216
  config["_comet_api_key"] = hidden_api_key.HiddenApiKey(value=self._api_key)
195
217
 
196
218
  config["_comet_online"] = self._online
197
219
 
198
- def _connect_to_shared_experiment(self):
220
+ # Share the offline directory so worker archives land alongside the
221
+ # driver's instead of scattering into Ray's per-session temp dir.
222
+ # Only relevant offline; workers may still override via their own kwargs.
223
+ if not self._online and offline_directory is not None:
224
+ config["_comet_offline_directory"] = offline_directory
225
+
226
+ def _connect_to_shared_experiment(self) -> Any:
199
227
  """Re-attach to the shared experiment created in ``__init__``.
200
228
 
201
229
  The controller process that fires the Ray callback hooks can be a
@@ -222,7 +250,7 @@ class CometTrainLoggerCallback(_RayCallbackBase):
222
250
  # Ray Train V1 / Tune-style hooks (inert when USE_USER_CALLBACK).
223
251
  # ------------------------------------------------------------------
224
252
 
225
- def log_trial_start(self, trial: Trial):
253
+ def log_trial_start(self, trial: Trial) -> None:
226
254
  # Different trial than the one already running — this callback is
227
255
  # single-trial only. Raise before any state is touched.
228
256
  if self._trial is not None and trial.trial_id != self._trial.trial_id:
@@ -257,21 +285,32 @@ class CometTrainLoggerCallback(_RayCallbackBase):
257
285
  experiment = self._connect_to_shared_experiment()
258
286
  self._log_parameters_from_config(experiment, config)
259
287
  self._experiment = experiment
288
+ # Note: these parameters are logged once from the controller process and
289
+ # sent lazily, so they would be dropped when Ray hard-kills the
290
+ # controller. They are NOT flushed here — the controller-shutdown drain
291
+ # installed in ``after_report`` (controller_flush_patcher) flushes the
292
+ # experiment once at the end of the run, covering parameters, the final
293
+ # metrics, and async checkpoint uploads in a single drain.
260
294
 
261
295
  @staticmethod
262
- def _log_parameters_from_config(experiment, config: Dict[str, Any]) -> None:
263
- config = config.copy()
264
- for internal_key in (
265
- "_comet_experiment_key",
266
- "_comet_api_key",
267
- "_comet_online",
268
- "callbacks",
269
- ):
270
- config.pop(internal_key, None)
296
+ def _log_parameters_from_config(experiment: Any, config: Dict[str, Any]) -> None:
297
+ # Ray Train V1 hands us ``trial.config``, which nests the user's
298
+ # ``train_loop_config`` under a ``"train_loop_config"`` key; the V2
299
+ # ``after_report`` path already passes the inner dict. Unwrap it so the
300
+ # individual hyperparameters (``lr``, ``batch_size``, ...) are logged
301
+ # one-per-parameter and identically on both Ray Train versions —
302
+ # otherwise V1 logs a single opaque ``train_loop_config`` parameter.
303
+ inner_config = config.get("train_loop_config")
304
+ if isinstance(inner_config, dict):
305
+ config = inner_config
306
+ # Drop the connection details the callback injected to reach the workers
307
+ # (not user hyperparameters) and Ray's own ``callbacks`` entry.
308
+ config = strip_injected_keys(config)
309
+ config.pop("callbacks", None)
271
310
  if config:
272
311
  experiment.log_parameters(config, nested_support=False)
273
312
 
274
- def log_trial_result(self, iteration: int, trial: Trial, result: Dict):
313
+ def log_trial_result(self, iteration: int, trial: Trial, result: Dict) -> None:
275
314
  if self._trial is None:
276
315
  self.log_trial_start(trial)
277
316
 
@@ -281,27 +320,60 @@ class CometTrainLoggerCallback(_RayCallbackBase):
281
320
  result_logger = trial_result_logger.TrialResultLogger(self._experiment, result)
282
321
  result_logger.process()
283
322
 
284
- def log_trial_save(self, trial: Trial):
285
- if self._save_checkpoints and trial.checkpoint is not None:
323
+ def log_trial_save(self, trial: Trial) -> None:
324
+ if not (self._save_checkpoints and trial.checkpoint is not None):
325
+ return
326
+ # Artifacts are online-only; skip offline (warned once at construction).
327
+ # Wrap so a checkpoint-logging failure never aborts the training run.
328
+ if not self._online:
329
+ return
330
+ try:
286
331
  trial_save_logger.go(self._experiment, trial)
332
+ except Exception:
333
+ LOGGER.warning(
334
+ "Failed to log Ray checkpoint to Comet; continuing training",
335
+ exc_info=True,
336
+ )
287
337
 
288
- def log_trial_end(self, trial: Trial, failed: bool = False):
338
+ def log_trial_end(self, trial: Trial, failed: bool = False) -> None:
289
339
  # self._experiment.end()
290
340
  pass
291
341
 
292
- def on_experiment_end(self, trials: List["Trial"], **info):
293
- # if this is a worker mode -> end experiment manually to avoid losing any changes
342
+ def on_experiment_end(self, trials: List["Trial"], **info: Any) -> None:
343
+ if self._experiment is None:
344
+ return
345
+ # On a worker, end the experiment to avoid losing changes. On the driver
346
+ # (Ray Train V1), flush so lazily-sent parameters and metrics reach the
347
+ # backend before ``fit()`` returns — without an explicit drain they are
348
+ # delivered only at interpreter exit (atexit), which races any
349
+ # post-``fit()`` reads. (V2's equivalent drain is controller_flush_patcher.)
294
350
  if worker.global_worker.mode == worker.WORKER_MODE:
295
351
  self._experiment.end()
352
+ else:
353
+ self._experiment.flush()
296
354
 
297
355
  # ------------------------------------------------------------------
298
356
  # Ray Train V2 ``UserCallback`` hooks (inert when not USE_USER_CALLBACK).
299
357
  # ------------------------------------------------------------------
300
358
 
301
- def after_report(self, run_context, metrics, checkpoint):
359
+ def after_report(
360
+ self,
361
+ run_context: Any,
362
+ metrics: List[Dict[str, Any]],
363
+ checkpoint: Any,
364
+ ) -> None:
302
365
  if self._experiment is None:
303
366
  self._attach_shared_experiment(self._train_loop_config(run_context))
304
367
 
368
+ # This hook runs in the controller process with the live controller on
369
+ # the call stack. Wrap its shutdown to flush the experiment (and its
370
+ # async checkpoint uploads) before Ray hard-kills the controller.
371
+ # ``ensure_drain`` is idempotent, so it is called on every report rather
372
+ # than only on the attach branch — that way an experiment attached
373
+ # earlier (e.g. by ``after_exception``) still gets the drain installed.
374
+ if self._experiment is not None:
375
+ controller_flush_patcher.ensure_drain(self._experiment)
376
+
305
377
  if metrics and metrics[0] is not None:
306
378
  # Ray Train hands us one metrics dict per worker; rank 0 is the
307
379
  # canonical source for the driver-level experiment. Per-worker
@@ -314,7 +386,7 @@ class CometTrainLoggerCallback(_RayCallbackBase):
314
386
  if self._save_checkpoints and checkpoint is not None:
315
387
  self._log_checkpoint_v2(run_context, checkpoint)
316
388
 
317
- def after_exception(self, run_context, worker_exceptions):
389
+ def after_exception(self, run_context: Any, worker_exceptions: Any) -> None:
318
390
  # The shared Comet experiment is created on the driver in ``__init__``;
319
391
  # without a prior ``after_report`` the controller process has no handle
320
392
  # to it yet, so attach lazily before ending so failures are recorded
@@ -353,20 +425,32 @@ class CometTrainLoggerCallback(_RayCallbackBase):
353
425
  self._experiment_ended = True
354
426
 
355
427
  @staticmethod
356
- def _train_loop_config(run_context) -> Dict[str, Any]:
428
+ def _train_loop_config(run_context: Any) -> Dict[str, Any]:
357
429
  return getattr(run_context, "train_loop_config", None) or {}
358
430
 
359
- def _log_checkpoint_v2(self, run_context, checkpoint) -> None:
360
- name = self._checkpoint_artifact_name(run_context)
361
- # ``Checkpoint.as_directory`` materialises remote checkpoints locally
362
- # for the duration of the context manager, mirroring how the legacy
363
- # path consumed ``trial.checkpoint.dir_or_data``.
364
- with checkpoint.as_directory() as local_dir:
365
- trial_save_logger.log_checkpoint(
366
- self._experiment, name=name, directory=local_dir
431
+ def _log_checkpoint_v2(self, run_context: Any, checkpoint: Any) -> None:
432
+ # Artifacts are online-only; skip offline (warned once at construction).
433
+ # Wrap so a checkpoint-logging failure never aborts the training run —
434
+ # on Ray Train V2 an exception here propagates out of after_report and
435
+ # is raised as a ControllerError that kills the whole run.
436
+ if not self._online:
437
+ return
438
+ try:
439
+ name = self._checkpoint_artifact_name(run_context)
440
+ # ``Checkpoint.as_directory`` materialises remote checkpoints locally
441
+ # for the duration of the context manager, mirroring how the legacy
442
+ # path consumed ``trial.checkpoint.dir_or_data``.
443
+ with checkpoint.as_directory() as local_dir:
444
+ trial_save_logger.log_checkpoint(
445
+ self._experiment, name=name, directory=local_dir
446
+ )
447
+ except Exception:
448
+ LOGGER.warning(
449
+ "Failed to log Ray checkpoint to Comet; continuing training",
450
+ exc_info=True,
367
451
  )
368
452
 
369
- def _checkpoint_artifact_name(self, run_context) -> str:
453
+ def _checkpoint_artifact_name(self, run_context: Any) -> str:
370
454
  try:
371
455
  run_config = run_context.get_run_config()
372
456
  name = getattr(run_config, "name", None)
@@ -0,0 +1,40 @@
1
+ # -*- coding: utf-8 -*-
2
+ # *******************************************************
3
+ # ____ _ _
4
+ # / ___|___ _ __ ___ ___| |_ _ __ ___ | |
5
+ # | | / _ \| '_ ` _ \ / _ \ __| | '_ ` _ \| |
6
+ # | |__| (_) | | | | | | __/ |_ _| | | | | | |
7
+ # \____\___/|_| |_| |_|\___|\__(_)_| |_| |_|_|
8
+ #
9
+ # Sign up for free at https://www.comet.com
10
+ # Copyright (C) 2015-2024 Comet ML INC
11
+ # This source code is licensed under the MIT license.
12
+ # *******************************************************
13
+
14
+ from typing import Any, Dict
15
+
16
+ import comet_ml
17
+
18
+ # Connection details the callback injects into the user's ``ray_config`` so each
19
+ # worker can reach the shared experiment. They are not user hyperparameters and
20
+ # must be stripped before logging the config as parameters. Matched exactly (not
21
+ # by ``_comet_`` prefix) so a user hyperparameter that happens to start with
22
+ # ``_comet_`` is preserved.
23
+ INJECTED_CONFIG_KEYS = (
24
+ "_comet_experiment_key",
25
+ "_comet_api_key",
26
+ "_comet_online",
27
+ "_comet_offline_directory",
28
+ )
29
+
30
+
31
+ def is_online_experiment(experiment: Any) -> bool:
32
+ return isinstance(experiment, comet_ml.Experiment)
33
+
34
+
35
+ def strip_injected_keys(config: Dict[str, Any]) -> Dict[str, Any]:
36
+ """Return a copy of ``config`` without the connection details the callback
37
+ injected into ``ray_config`` to reach the workers."""
38
+ return {
39
+ key: value for key, value in config.items() if key not in INJECTED_CONFIG_KEYS
40
+ }