Skip to content

Instantly share code, notes, and snippets.

@mirqwa
mirqwa / gridworld.py
Created May 25, 2024 09:27
4 by 4 grid environment
import typing
import numpy as np
class GridWorld:
def __init__(
self,
rows: int,
columns: int,
@mirqwa
mirqwa / exploration_exploitation_bandit_stationary.py
Last active January 9, 2024 00:03
10-armed bandit stationary
import numpy as np
import matplotlib.pyplot as plt
VARIANCES = [1, 0, 5, 10]
EPSILONS = {
0: {"color": "-g"},
0.1: {"color": "-b"},
0.01: {"color": "-r"},