LINYV0719
LINYV0719
# Description This PR adds a missing unit test export_saved_model_test.py to verify that ExportFileManager.clean_up correctly handles negative max_to_keep values (early return). So I added test_export_file_manager_negative_max_to_keep to verify that no files...
# Description This PR adds a new utility class `PeriodicAction` to `orbit/actions`. **Motivation:** Currently, actions in Orbit are typically executed every time the `Controller` loop completes (`steps_per_loop`). Users often need...
# Description This PR addresses the TODO in orbit/controller.py to support steps=-1 in Controller.train(), allowing training to run until the underlying dataset is exhausted. **Motivation**: Previously, Controller.train required a fixed...
# Description This PR adds a min_delta parameter to NewBestMetric. Motivation: In many training scenarios, we want to avoid saving checkpoints or triggering actions for negligible improvements (e.g., floating point...
# Description This PR adds missing type hints to orbit/utils, orbit/actions, and orbit/standard_runner.py to improve code readability, IDE autocompletion support, and static analysis. Files of changes: orbit/utils/epoch_helper.py orbit/utils/common.py orbit/actions/export_saved_model.py orbit/standard_runner.py...
…sing return types # Description The filename argument in JSONPersistedValue was annotated as str, but the implementation explicitly checks if self._filename is not None, implying it should be Optional[str] This...