Skip to content

Instantly share code, notes, and snippets.

View BeniaminK's full-sized avatar

Beniamin Kalinowski BeniaminK

View GitHub Profile
@BeniaminK
BeniaminK / min-char-rnn.py
Created October 6, 2018 14:55 — 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)
#include <iostream>
using namespace std;
int main()
{
double tab[10] = { 7, 8, 6, 4, 5, 9, 0, 3, 1, 2 };
double srednia = 0;
for (int i = 0; i < 10; i++)
{
cout << tab[i] << "\t";
}