ethicalgardeners.algorithms.save_model¶
- ethicalgardeners.algorithms.save_model(model, algorithm_name: str)[source]¶
Save the trained model with a timestamped filename.
- Parameters:
model – The trained model to save.
env – The environment instance.
algorithm_name – The algorithm name (e.g., “maskable_ppo”, “dqn”). It is used in the saved file’s name.