Skip to content

Instantly share code, notes, and snippets.

View cove9988's full-sized avatar

paulg cove9988

  • sydney
View GitHub Profile
@tt293
tt293 / game_state.py
Last active April 13, 2022 05:27
Abstract GameState class
class GameState(ABC):
@abstractmethod
def is_terminal(self) -> bool:
pass
@abstractmethod
def get_payoffs(self) -> List[int]:
pass
@abstractmethod
@martinwicke
martinwicke / automobile.ipynb
Last active January 9, 2022 08:14
Estimator demo using Automobile dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karpathy
karpathy / min-char-rnn.py
Last active July 24, 2024 18:36
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)