ethicalgardeners.algorithms.get_latest_policy

ethicalgardeners.algorithms.get_latest_policy(algorithm_name: str)[source]

Retrieve the most recently saved policy file for the given environment and algorithm.

Parameters:

algorithm_name – The algorithm name (e.g., “maskable_ppo”, “dqn”). It is used in the search pattern for the saved file.