Views
No views yet
1
2model = load_from_hub(repo_id="DarkDummo/q-FrozenLake-v1-4x4-noSlippery", filename="q-learning.pkl")
3
4# Don't forget to check if you need to add additional attributes (is_slippery=False etc)
5env = gym.make(model["env_id"])print("::::::::::::::::::::::::::::::::::::::::::::::::::::::::")
!python --version
# Update and install Python 3.7
!sudo apt update -y
!sudo apt install python3.7 python3.7-venv python3.7-dev -y
# Ensure Python 3.7 is installed
!python3.7 --version
# Install pip for Python 3.7
!sudo apt install python3-pip -y
!python3.7 -m ensurepip
!python3.7 -m pip install --upgrade pip
# Now install pickle5
!python3.7 -m pip install pickle5
# Run your script using Python 3.7
#!python3.7 your_script.py # Uncomment this if you have a script
print("::::::::::::::::::::::::::::::::::::::::::::::::::::::::")
!python --version
!pip install setuptools --upgrade
!pip3 install wheel
!pip3 install --upgrade --quiet cloudpickle pickle5
!pip3 install --no-cache-dir -r https://raw.githubusercontent.com/huggingface/deep-rl-class/main/notebooks/unit2/requirements-unit2.txt