This file contains hidden or 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
# Import required libararies | |
import gym | |
import matplotlib.pyplot as plt | |
import random | |
import numpy as np | |
from IPython.display import clear_output | |
#Create an instance of the the Taxi-v3 environment | |
env= gym.make("Taxi-v3").env | |
# Creating the q-table |
This file contains hidden or 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
#Import required Libraries | |
import gym | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
import matplotlib.pyplot as plt | |
# Create the Actor Network |
OlderNewer