shieru1214 opened a new pull request, #2615: URL: https://github.com/apache/systemds/pull/2615
This change adds test coverage for methods related to **persistence** and **results retrieval** in `UnimodalOptimizer`. ### Persistence - `store_results`:It saves the optimizer results to a file and stores execution statistics separately, including worker statistics, node reuse, and runtime. - `load_results`: It loads previously saved results and can be reused without running the search again. - `_count_results_by_modality`: It counts the existing results for each modality. This count is used as checkpoint progress when resuming the optimization. - `resume_from_checkpoint`: It can restore the previous result from a checkpoint. If no checkpoint is available, the current results remain unchanged. ### Results Retrieval - `get_k_best_results`: It selects the top `k` results according to their scores and returns both the results and their corresponding data. The tests cover using existing cached data and rebuilding the data through the result DAG when the cache is empty. - `get_dag_by_id`: It searches a list of DAGs by `dag_id`. It returns the matching DAG or `None` when the ID is not found. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
