Skip to content

Instantly share code, notes, and snippets.

View w0nk0's full-sized avatar

Wonko w0nk0

  • Hessen, Germany
  • 23:25 (UTC +02:00)
  • X @w0nk0
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@w0nk0
w0nk0 / flatsubreddit.py
Last active August 29, 2015 14:27
A little helper class to convert a subreddit into plain, unstructured text.
BEGIN_TOKEN = "\n#b#"
DEBUG = FALSE
import praw
class FlatSubreddit:
def __init__(self, subreddit, max_posts = MAX_POSTS, cache=True ):
# if you leave cache at True, it will do some very dumb caching in a sub-folder 'cache/'
# so you can re-read reddits many times without worrying about API limits or
# access time. Nothing expires from the cache, you'll have to manually delete the files in it.
self.sub = subreddit

0.3

Sequential

Activations and the layer is the parameters of the input data. - input_dim: int >= 0. Tease is a specific input shape (stradits, ne_sequences=True, networks, nod_timesteps, output_dim)`.

  • Arguments:
@w0nk0
w0nk0 / chainer_lstm.ipynb
Last active November 18, 2016 19:16
Beefed up Chainer LSTM example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.