Created
March 4, 2022 10:21
-
-
Save Paulescu/eb19cb583ac9f02ef1cc3df97f05686b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from src.q_agent import QAgent | |
from src.config import SAVED_AGENTS_DIR | |
# you can find the agent_id for the best run in the MLflow | |
# dashboard. | |
# 298 is the value in my case, but you need to check what is your | |
agent_id = 298 | |
path_to_saved_model = SAVED_AGENTS_DIR / 'CartPole-v1' / str(agent_id) | |
agent = QAgent.load_from_disk(env, path_to_saved_model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment