This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Copyright 2013 Gerwin Sturm, FoldedSoft e.U. | |
# www.foldedsoft.at / google.com/+GerwinSturm | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zillabyte | |
twilio_sid = "SID_HERE" | |
twilio_auth = "AUTH_HERE" | |
class TwilioEach: | |
def prepare(self, controller): | |
# Dictionary of phone numbers subscribed to cities (just for show with small sample, please use a | |
# REAL source when using a significant number of phone numbers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keras | |
from keras.models import Sequential | |
from keras.layers.core import Dense, Activation, Dropout, TimeDistributedDense | |
from keras.layers.recurrent import LSTM, SimpleRNN | |
def build_model(num_layers=2, num_units=256, maxlen_rnn=50, dim_label=50): | |
''' | |
num_layers: in [2, 3] | |
num_units: in [256, 512, 1024] |