Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / min-char-rnn.py
Last active November 29, 2025 15:04
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)
@samoturk
samoturk / Dockerfile-rdkit
Last active August 23, 2022 01:29
Docker file that installs docker container with rdkit, ipython notebook and matplotlib
# Docker file that installs docker container with rdkit, ipython notebook and matplotlib
#
# rename this file to "Dockerfile"
# build with: "sudo docker build -t rdkit ."
# run with: "sudo docker run -p 127.0.0.1:8889:8888 rdkit "
# NOTE that here port 8888 gets mapped to 8889.
# point your browser to http://127.0.0.1:8889/
FROM saltstack/ubuntu-13.10
# Add universe repository