Skip to content

Instantly share code, notes, and snippets.

@TheErk
TheErk / pyproject.toml
Created January 17, 2020 10:52
Buggy sdist tests packaging with poetry
[tool.poetry]
name = "sdist-issue"
version = "0.1.0"
description = ""
authors = ["Eric Noulard <eric.noulard@gmail.com>"]
packages = [
{ include = "sdist_issue", from = "src" },
{ include = "tests", format = "sdist" }
]
@TheErk
TheErk / min-char-rnn.py
Created August 28, 2018 07:13 — forked from karpathy/min-char-rnn.py
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)