This file contains hidden or 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
from keras.layers import Dense, Dropout | |
from keras.models import Sequential | |
import numpy as np | |
import keras.backend as K | |
def model(): | |
# create model | |
model = Sequential() | |
model.add(Dense(100, input_dim=36, kernel_initializer='uniform', activation='relu')) |
This file contains hidden or 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
from keras.layers import Dense, Dropout | |
from keras.models import Sequential | |
import numpy as np | |
import keras.backend as K | |
def model(): | |
# create model | |
model = Sequential() | |
model.add(Dense(100, input_dim=36, kernel_initializer='uniform', activation='relu')) |
This file contains hidden or 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
# Create first network with Keras | |
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy | |
import threading as t | |
import tensorflow as tf | |
# create model | |
model = Sequential() | |
model.add(Dense(12, input_dim=8, init='uniform', activation='relu')) |
This file contains hidden or 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
# Create first network with Keras | |
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy | |
import threading as t | |
import tensorflow as tf | |
graph = tf.get_default_graph() | |
def t_thread(): |
This file contains hidden or 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
# Create first network with Keras | |
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy | |
import threading as t | |
import tensorflow as tf | |
def t_thread(): | |
model = Sequential() | |
model.add(Dense(12, input_dim=8, init='uniform', activation='relu')) |
This file contains hidden or 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
# Create first network with Keras | |
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy | |
import threading as t | |
import tensorflow as tf | |
graph = tf.get_default_graph() | |
def t_thread(): |
This file contains hidden or 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
# Create first network with Keras | |
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy | |
import thread | |
def t_thread(): | |
# create model | |
model = Sequential() | |
model.add(Dense(12, input_dim=8, init='uniform', activation='relu')) |
This file contains hidden or 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
let rec repeat x (s : string) : string = | |
match x with | |
| 0 -> "" | |
| x -> s + (repeat (x-1) s) | |
let roman_numeral_ordering n (one : string) (five : string) (ten : string) = | |
match n with | |
| 0 -> "" | |
| n when n < 4 -> repeat n one | |
| n when n = 4 -> one + five |